check_by_ssh anomaly

Patrick Morris patrick.morris at hp.com
Fri Jun 1 03:08:08 CEST 2007


On Fri, 01 Jun 2007, Daniel Tandowski wrote:

> I appreciate your quick response, ssh known_hosts / authorized_keys was my 
> first culprit also... unfortunately, this doesn't explain why it would work 
> correctly when I run the same command nagios is running from the CLI (using 
> the same key)!? 
> 
> #/usr/lib/nagios/plugins/check_by_ssh -t 60 -H <IP-Address> -l root -i
> <RSA Key> -C /usr/lib/nagios/plugins/check_backup_log

It's the host key, not the private key, so if you're checking as root
(and it looks like you are), you're not looking at the same known_hosts
as Nagios is.

Log in as the Nagios user or store the host's key in the known_hosts
file Nagios looks at when it logs in.

-------------------------------------------------------------------------
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 at 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





More information about the Users mailing list