<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:nagios-users@lists.sourceforge.net"></a>Hi Guys,<br><br>I just installed & configured nagios on a RHEL4 U4 64bit 2.6.9-34.ELsmp<br>[root@fisdb01 dist]# rpm -qa | grep nagios
<br>nagios-2.9-1.el4.rf<br>nagios-plugins-1.4.8-2.el4.rf<br>nagios-plugins-nrpe-2.5.2-1.el4.rf<br>nagios-nrpe-2.5.2-1.el4.rf<br><br>And I get a "Return code of 127 for check of service 'n-users' on host 'fisdb01' was out of bounds" Message on all services on all hosts.
<br>I saw on <a href="http://www.nagios.org/faqs/viewfaq.php?faq_id=17">http://www.nagios.org/faqs/viewfaq.php?faq_id=17</a> that this was most likely a problem with the path to the executable.<br>but if that was so I wouldn't be able to do this: 
<br>[root@fisdb01 services]# /usr/lib64/nagios/plugins/check_nrpe -H localhost -c check_users<br>USERS OK - 3 users currently logged in |users=3;5;10;0<br>which proves it executes and in the right place. Right?<br><br><span style="font-weight: bold;">
some more info:</span><br><br>[root@fisdb01 services]# ls -l /usr/lib64/nagios/plugins/check_users<br>-rwxr-xr-x  1 root root 32138 Apr 20 22:06 /usr/lib64/nagios/plugins/check_users<br><br>[root@fisdb01 services]# ls -l /etc/nagios/nrpe.cfg
<br>-rw-r--r--  1 root root 8514 May 11 10:44 /etc/nagios/nrpe.cfg<br><br>[root@fisdb01 services]# cat /etc/nagios/nrpe.cfg | grep users<br>command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10<br>#command[check_users]=/usr/lib64/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
<br>command[unix_users]=/usr/bin/perl /usr/lib64/cactiscripts/unix_users.pl<br>command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10<br>command[unix_users]=/usr/bin/perl /usr/lib64/cactiscripts/unix_users.pl
<br><br><br>nagios.log<br>[1178875845] Nagios 2.9 starting... (PID=29283)<br>[1178875845] LOG VERSION: 2.0<br>[1178875845] Warning: Duplicate definition found for host 'generic-host' (config file '/etc/nagios/hosts.cfg', starting on line 21)
<br>[1178875845] Warning: Duplicate definition found for service 'generic-service' (config file '/etc/nagios/services/services.cfg', starting on line 2)<br>[1178875845] Finished daemonizing... (New PID=29284)
<br>[1178876155] Warning: Return code of 127 for check of service 'n-users' on host 'fisdb01' was out of bounds. Make sure the plugin you're trying to run actually exists.<br>[1178876305] Warning: Return code of 127 for check of service 'n-users' on host 'fisdev01' was out of bounds. Make sure the plugin you're trying to run actually exists.
<br><br><br>I've spend many hours on this error.....<br>So if someone can point me in the right direction?<br><br>Thanks in advance,<br>Jan Lenaerts<br>