[Nagiosplug-help] check_by_ssh issue
holger at CIS.FU-Berlin.DE
Fri Jun 15 20:23:55 UTC 2007
* Robert Cole <robert.cole at support4linux.com> [2007-06-15 11:17]:
> I'm not sure if I found a bug or what but I can login to the remote
> system I'm trying to check with key based authentication I can even do a
> "ssh -i ~/.ssh/id_dsa remotecomputer "/usr/nagios/plugins/check_swap -w
> 50% -c 10%" and it works just fine but when I use:
> nagios at ms1 ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i
> ~/.ssh/id_dsa -C "/usr/nagios/plugins/check_swap -w 50% -c 10%"
> Enter passphrase for key '/home/nagios/.ssh/id_dsa':
1) Please don't post the same question to two different mailing lists.
2) Always use this list for plugin related questions.
3) Always mention which Nagios Plugins release you're using.
In your followup post to the Nagios list, you wrote:
| $ nagios at ms1 ~ $ /usr/nagios/libexec/check_by_ssh -H remotecomputer -i -vvvv ~/.ssh/id_dsa -C "/usr/nagios/plugins/check_swap -w 50% -c 10%"
| Enter passphrase for key '/home/nagios/.ssh/id_dsa':
| nagios at ocmp0's password:
| Didn't give me anymore output
If I call check_by_ssh with "-i -vvvv ~/.ssh/id_dsa" (and appropriate
host/command flags), I get the following error message:
| Remote command execution failed: Warning: Identity file -vvvv does not exist.
So, I'm pretty sure the command you quoted is not the exact command you
used. Please always copy'n'paste any commands you tried and the output
you got. If you use check_by_ssh's "-v" flag, the plugin should spit
out the actual ssh(1) command which it executes. That is, please try
$ check_by_ssh -v -H remotecomputer -i $HOME/.ssh/id_dsa -C "/usr/nagios/plugins/check_swap -w 50% -c 10%"
If you copy'n'paste the exact command which is used by check_by_ssh and
try to execute it manually (as the same user who called check_by_ssh),
does it really work?
PGP fingerprint: F1F0 9071 8084 A426 DD59 9839 59D3 F3A1 B8B5 D3DE
More information about the Nagiosplugin-help