[Nagiosplug-devel] Potential bug in nagios plugin check_by_ssh 1.39

Sebastian Wolfgarten sebastian at wolfgarten.com
Thu Jun 7 16:51:03 CEST 2007


Hi,

I think I have bug a bug in the nagios plugin check_by_ssh v1.39. I have
successfully configured SSH public key-based logins between two of my
servers and on the command-line it works absolutely fine:

nagios at db01:~$ /usr/lib/nagios/plugins/check_by_ssh -l nagcheck -H
10.0.0.30 -C id
uid=10001(nagcheck) gid=100(users) groups=100(users)

As you can see, the plugin successfully shows the output of the "id"
command. However when I try to cat a file I do not get any output at all:

nagios at db01:~$ /usr/lib/nagios/plugins/check_by_ssh -l nagcheck -H
10.0.0.30 -C '/bin/cat /tmp/tw_cli.txt'

I think this is rather strange, because when I use ssh to manually
perform this operation I don't get any error at all (the cat command is
run without any problems):

nagios at db01:~$ ssh -l nagcheck 10.0.0.30 "/bin/cat /tmp/tw_cli.txt"

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache
AVrfy
------------------------------------------------------------------------------
u0    RAID-1    OK             -       -       -       74.5294   ON     -

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     74.53 GB    156301488     9QZ07S6M
p1     OK               u0     74.53 GB    156301488     9QZ08CRC

Any ideas on this? Did I maybe discover a bug in the script?

Thank you very much.

Best regards,
Sebastian Wolfgarten




More information about the Devel mailing list