check_by_ssh and Nagios communication

VEGH Karoly karoly.vegh at uta.at
Wed Jan 22 10:08:13 CET 2003


Hi all,

Im still having the same problme, by hand executed it works just fine, but
i dont know how to strace nagios's actions. How to search the error?

On Mon, 20 Jan 2003, VEGH Karoly wrote:

> 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
Cynics says that Hungarians created America's Hollywood before
other Hungarians less destructively created America's A-bomb.
http://www.mek.iif.hu/kiallit/tudtor/tudos1/martians.html


-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp




More information about the Users mailing list