check_by_ssh and Nagios communication

VEGH Karoly karoly.vegh at uta.at
Mon Jan 20 14:30:57 CET 2003


Hi,

I run Nagios on a debian linux, and up to now i could solve all my
problems, but one: the check_by_ssh plugin works just perfect, if i call
it by hand, but in the webfrontend i see an errormessage, just like in the
log.

Executed by hand:

newmx4:/opt/nagios# su - nagios
nagios at newmx4:~$ /opt/nagios/libexec/check_by_ssh -H newmx4 -C \
'/opt/nagios/libexec/check_disk -w 15% -c 5%'
DISK OK - [6951632 kB (95%) free on /dev/md0] [17208 kB (78%) free on
/dev/md1] [2301668 kB (91%) free on /dev/md2]
nagios at newmx4:~$

in my checkommands.cfg file is:

# 'ssh_disk' command definition
        command_name    ssh_disk
        command_line    command[ssh_disk]=/opt/nagios/libexec/check_by_ssh
-H $HOSTADDRESS$ -C '/opt/nagios/libexec/check_disk -w 15% -c 5%'
newmx4:/opt/nagios#

but in /opt/nagios/var/log/nagios.log:

[1043069066] Warning: Return code of 127 for check of service
'REMOTE-DISK' on host 'newmx4' was out of bounds. Make sure the plugin
you're trying to run actually exists.

I use:

nagios-1.0
nagios-plugins-1.3.0-beta2
kernel 2.4.18-ac3
OpenSSH3.4p1

the nagios user can authenticate itself between the machines wit RSA
public key.

what do i do wrong?

any help is appreciated.

tia

charlie

-- 
Vegh Karoly -  System Engineer - UTA - TIS.SAS.SDI

	/* no comment */


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en




More information about the Users mailing list