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: [EMAIL PROTECTED]
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
-------------------------------------------------------------------------
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=/
_______________________________________________
Nagios-users mailing list
[email protected]
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