<nagios-users@lists.sourceforge.net>Hi Guys,

I just installed & configured nagios on a RHEL4 U4 64bit 2.6.9-34.ELsmp
[EMAIL PROTECTED] dist]# rpm -qa | grep nagios
nagios-2.9-1.el4.rf
nagios-plugins-1.4.8-2.el4.rf
nagios-plugins-nrpe-2.5.2-1.el4.rf
nagios-nrpe-2.5.2-1.el4.rf

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.
I saw on http://www.nagios.org/faqs/viewfaq.php?faq_id=17 that this was most
likely a problem with the path to the executable.
but if that was so I wouldn't be able to do this:
[EMAIL PROTECTED] services]# /usr/lib64/nagios/plugins/check_nrpe -H localhost
-c check_users
USERS OK - 3 users currently logged in |users=3;5;10;0
which proves it executes and in the right place. Right?

some more info:

[EMAIL PROTECTED] services]# ls -l /usr/lib64/nagios/plugins/check_users
-rwxr-xr-x  1 root root 32138 Apr 20 22:06
/usr/lib64/nagios/plugins/check_users

[EMAIL PROTECTED] services]# ls -l /etc/nagios/nrpe.cfg
-rw-r--r--  1 root root 8514 May 11 10:44 /etc/nagios/nrpe.cfg

[EMAIL PROTECTED] services]# cat /etc/nagios/nrpe.cfg | grep users
command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
#command[check_users]=/usr/lib64/nagios/plugins/check_users -w $ARG1$ -c
$ARG2$
command[unix_users]=/usr/bin/perl /usr/lib64/cactiscripts/unix_users.pl
command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
command[unix_users]=/usr/bin/perl /usr/lib64/cactiscripts/unix_users.pl


nagios.log
[1178875845] Nagios 2.9 starting... (PID=29283)
[1178875845] LOG VERSION: 2.0
[1178875845] Warning: Duplicate definition found for host 'generic-host'
(config file '/etc/nagios/hosts.cfg', starting on line 21)
[1178875845] Warning: Duplicate definition found for service
'generic-service' (config file '/etc/nagios/services/services.cfg', starting
on line 2)
[1178875845] Finished daemonizing... (New PID=29284)
[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.
[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.


I've spend many hours on this error.....
So if someone can point me in the right direction?

Thanks in advance,
Jan Lenaerts
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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

Reply via email to