[Nagiosplug-devel] Mac OS X support
Ton Voon
tonvoon at mac.com
Sat Dec 7 09:50:03 CET 2002
Hi!
Nagios has been a huge time saver for me! So here's my contribution
back...
Here are the changes I think are required to get Mac OS X support for
the plugins. This has been tested on Mac OS 10.2.2 (gcc 3.1 automake
1.6.1, autconf 2.52).
Files:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_procs.c.patch
Type: application/octet-stream
Size: 667 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20021207/98b199cc/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_vsz.c.patch
Type: application/octet-stream
Size: 2190 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20021207/98b199cc/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.in.patch
Type: application/octet-stream
Size: 1497 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20021207/98b199cc/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugins-Makefile.am.patch
Type: application/octet-stream
Size: 248 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20021207/98b199cc/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: depcomp
Type: application/octet-stream
Size: 12123 bytes
Desc: not available
URL: <http://nagios-plugins.org/archive/devel/attachments/20021207/98b199cc/attachment-0004.obj>
-------------- next part --------------
depcomp was taken from the gd distribution. It is probably not required
in a distribution, but was needed for automake to work.
To run:
cd nagios-plugins-200212071100-snapshot
cp ../depcomp .
patch configure.in ../configure.in.patch
patch plugins/Makefile.am ../plugins-Makefile.am.patch
patch plugins/check_procs.c ../check_procs.c.patch
patch plugins/check_vsz.c ../check_vsz.c.patch
aclocal
autoconf
automake
./configure
make
The fixes are:
add Max OS X ps command
ranlib required for libgetopt.a (this needs to be tested for other OSes)
check_procs -p 1 (bus error)
check_procs -p 1 -u 0 (wrong output)
check_vsz (no error reported)
check_vsz -A (two invalid option messages)
check_vsz 1000 (bus error)
check_vsz 100000 (always gives critical error - now highest alert is
warn)
check_vsz -C init (no error reported)
check_vsz -c 100000 (always gives warning)
Still outstanding:
if a process name has a space in it, check_procs and check_vsz will not
read it correctly
check_disk fails on Mac OS X because of spaces in the Filesystem column
(same problem as above)
Ton
More information about the Devel
mailing list