[Nagiosplug-devel] check_disk

Ben O'Hara bohara at gmail.com
Wed Nov 24 08:22:25 CET 2004


Hi All,
        Great to see the plugin development back on track...ill send
you some patches/fixes/plugins later on this week.

Anyways, im changing my monitoring system to use nrpe instead of
netsaint_statd and ive run accross a problem although im certain its
not nrpe!

So, im calling check_disk as show below (directly on the "remote" box)

Notice the -x, /backup is always fairly full so im not too bothered
about monitoring it...now, anyone explain why /tmp (with 99% free
space) has sent the status critical?

bash-2.03# /apps/nagios/libexec/check_disk -w 15% -c 10% -x /dev/dsk/c0t0d0s6 -e

DISK CRITICAL - free space: /tmp 4412 MB (99%);|
/=1283MB;1706;1807;0;2008 /var=548MB;844;894;0;994
/usr/local=536MB;844;894;0;994 /apps=2884MB;4285;4537;0;5042
/tmp=4411MB;4454;4454;0;4454


Remove the -x and correctly its now reporting that /backup only has
11% free and status is warning.

bash-2.03# /apps/nagios/libexec/check_disk -w 15% -c 10% -e
DISK WARNING - free space: /backup 664 MB (11%);|
/=1283MB;1706;1807;0;2008 /var=548MB;844;894;0;994
/usr/local=536MB;844;894;0;994 /apps=2884MB;4285;4537;0;5042
/backup=663MB;5015;5310;0;5901 /tmp=4411MB;3785;4008;0;4454

And trying with the mount point it still does the same and thinks /tmp
is critical.

bash-2.03# /apps/nagios/libexec/check_disk -w 15% -c 10% -x /backup -e
DISK CRITICAL - free space: /tmp 4412 MB (99%);|
/=1283MB;1706;1807;0;2008 /var=548MB;844;894;0;994
/usr/local=536MB;844;894;0;994 /apps=2884MB;4285;4537;0;5042
/tmp=4411MB;4454;4454;0;4454

One this, this is a solaris box with /tmp mounted on swap, could this
be the cause?

Regards

Ben




More information about the Devel mailing list