[Nagios-users] different check_command output on host than on server

2007-01-23 Thread De Wetenschapper

hi guys,

when I execute a certain command on the client itself it is OK, but when
executed from the server I get an other output.
I have no idea where to look for this, What is different from executing it
from the server or on the client itself, or that I'm forgetting?

I thought the output on the nagios server should be the same as the output
of the script in the client??

script executed on the client (GD6):
[EMAIL PROTECTED] a125507]# /usr/lib/nagios/plugins/check_dell_sensors.pl
OK -- Fans=Ok; Hardware Log=Ok; Intrusion=Ok; Memory=Ok; Power Supplies=Ok;
Processors=Ok; Temperatures=Ok; Voltages=Ok;

script ran from the server with nrpe:
[EMAIL PROTECTED] a125507]# /usr/lib/nagios/plugins/check_nrpe -H beevsgd6 -c
check_omchassis
ALARM: omreport could not obtain user name. -- omreport could not obtain
user name.=Error!**;

same script ran from the server but on an other machine(GD5) here it does
work.
[EMAIL PROTECTED] a125507]# /usr/lib/nagios/plugins/check_nrpe -H beevsgd5 -c
check_omchassis
OK -- Fans=Ok; Hardware Log=Ok; Intrusion=Ok; Memory=Ok; Power Supplies=Ok;
Processors=Ok; Temperatures=Ok; Voltages=Ok;

I don't know where to look. Can someone point me in the right direction?

Thanks in Advance,
Jan Lenaerts
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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

[Nagios-users] Strange Return code Error

2007-05-11 Thread De Wetenschapper

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