NRPE mystery

farhan ahmed farhhanahmed at hotmail.com
Thu Nov 20 14:13:24 CET 2008


Hi Sascha, You are exactly right, echo $? returns 0 in all cases  check_nrpe 1- /usr/local/sys/nrpe/libexec/check_nrpe -H 127.0.0.1 -c check_users USERS CRITICAL - 7 users currently logged in |users=7;2;3;0 bash-3.00#echo $?0 2- /usr/local/sys/nrpe/libexec/check_nrpe -H 127.0.0.1 -c check_remote Connection refused bash-3.00#echo $?0 doesn't matter how many times you execute it returns 0 all the times but interesting when I run simeple plugin commands it returns right values simple plugins bash-3.00#/usr/local/sys/nrpe/libexec/check_users -w 2 -c 3 USERS CRITICAL - 7 users currently logged in |users=7;2;3;0 bash-3.00#echo $?2 bash-3.00#/usr/local/sys/nrpe/libexec/check_tcp -p 1250 Connection refused bash-3.00#echo $?2   All simple plugins are returning right exit values but only check_nrpe is having issue. bash-3.00#cat /etc/passwd|grep nagiosnagios:x:262:262:nagios user:/usr/local/sys/nrpe:/bin/sh chown -R nagios:nagios /usr/local/sys/nrpe bash-3.00#ps -ef|grep nrpe nagios 3184 677 0 23:30:39 ? 0:00 /usr/local/sys/nrpe/bin/nrpe -c /usr/local/sys/nrpe/etc/nrpe.cfg -d Its good that we have at least know where is the problem. Thanks for your help. Any idea how can we fix itThanks, 

-- 
Regards,
Farhan Ahmed

-- 
Regards,
Farhan Ahmed
Senior Systems Engineer
Soul Australia
Level 14, 201 Kent Streen
Sydney  NSW 2000
Phone(Office): 61 2 8220 6119
Fax(Office): 61 2 9252 6864
Mobile: 61 432 156906
Email: fahmed at soulaustralia.com.au
URL: www.soulaustralia.com.au
 
_________________________________________________________________
Time for change? Find your ideal job with SEEK.
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2F%3Ftracking%3Dsk%3Atl%3Ask%3Anine%3A0%3Ahottag%3Achange&_t=757263783&_r=SEEK_tagline&_m=EXT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20081121/f1a214fe/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
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