check_by_ssh anomaly
Daniel Tandowski
dtandowski at electusdistribution.com.au
Fri Jun 1 13:10:20 CEST 2007
Ahh yes, thankyou both! For reference, the offending host_key was living
in /var/spool/nagios/.ssh/known_hosts (as the nagios user has nologin).
Thanks again!
On Friday 01 June 2007 01:08, Patrick Morris wrote:
> 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