2009/9/3 Ciro Iriarte <cyru...@gmail.com>: > 2009/9/3 Ciro Iriarte <cyru...@gmail.com>: >> 2009/9/3 Morris, Patrick <patrick.mor...@hp.com>: >>> On Thu, 03 Sep 2009, Ciro Iriarte wrote: >>> >>>> Hi, i'm trying to monitor a Solaris box using NRPE. The thing is >>>> nagios sees always an EXIT_CODE=0. >>>> >>>> Running the check by hand on the Solaris host works as expected: >>>> >>>> -------------- >>>> [solaris ~]$ /usr/local/nagios/libexec/check_disk -w 50% -c 10% -p /kml_ >>>> DISK WARNING - free space: /kml_inst2 101125 MB (28% inode=100%);| >>>> /kml_inst2=248599MB;174862;314752;0;349725 >>>> [solaris ~]$ echo $? >>>> 1 >>>> -------------- >>>> >>>> But running it from the nagios host I get: >>>> ------------- >>>> spmon:~ # /usr/lib/nagios/plugins/check_nrpe -H solaris -c check_disk >>>> -a 50% 10% /test >>>> DISK WARNING - free space: /test 101125 MB (28% inode=100%);| >>>> /test=248599MB;174862;314752;0;349725 >>>> spmon:~ # echo $? >>>> 0 >>>> ------------- >>> >>> How is check_disk defined in your nrpe config and is it configured to >>> allow arguments? >>> >> >> I have: >> >> -------- >> dont_blame_nrpe=1 >> command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c >> $ARG2$ -p $ARG3$ >> -------- >> >> Regards, >> > > It's weird, if I restart the daemon it works, but just for the first > execution. > > --------- > spmon:/etc/nagios/objects/services # > /usr/lib/nagios/plugins/check_nrpe -H billbd2 -c check_disk -a 90% 80% > /kml_inst2 > DISK CRITICAL - free space: /kml_inst2 76172 MB (21% inode=100%);| > /kml_inst2=273552MB;34972;69944;0;349725 > spmon:/etc/nagios/objects/services # echo $? > 2 > spmon:/etc/nagios/objects/services # > /usr/lib/nagios/plugins/check_nrpe -H billbd2 -c check_disk -a 90% 80% > /kml_inst2 > DISK CRITICAL - free space: /kml_inst2 76172 MB (21% inode=100%);| > /kml_inst2=273552MB;34972;69944;0;349725 > spmon:/etc/nagios/objects/services # echo $? > 0 > ---------- > > Regards, >
Any ideas?. -- Ciro Iriarte http://cyruspy.wordpress.com -- ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagios-users mailing list Nagios-users@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