DISK UNKNOWN - free space

Dennis Jenkins djenkins at istreamimaging.com
Fri Jan 11 17:32:13 CET 2008


Jake Solid wrote:
> *When I run the command from the machine, it outputs the correct 
> information. The problem is when using NRPE from the nagios server.*
>
> [root at my_monitored_server ~]# /usr/lib64/nagios/plugins/check_disk -w 
> 20% -c 10% -p /dev/mapper/VolGroup01-fredVol00
> DISK CRITICAL - free space: /vservers/fred/data 5798 MB (5% 
> inode=99%);| /vservers/fred/data=109009MB;96760;108855;0;120951

It looks like it is working (it is returning CRITICAL instead of 
UNKNOWN) to me on the command line, but I think that you stated that in 
a previous posting.

The next step is to modify your nrpe.cfg file to run "check_disk" 
through strace when invoked from nrpe.

So change the line in nrpe.cfg to be like this (using whichever paths 
you need).

command[check_disk4]=/usr/bin/strace -o /tmp/strace.log  
/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p  /vservers/fred/data

Then invoke the command from your nagios server (by hand is fine).  The 
post the BOTTOM section of the strace.log file.  No need to see all of 
the crap (loading dynamic libraries) at the top.




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list