check_by_ssh -> Hostkey verification failed
Andreas Ericsson
ae at op5.se
Thu May 27 15:10:34 CEST 2004
Nicki Messerschmidt, Linksystem Muenchen GmbH wrote:
> Hi list,
> I just setup a service check with check_by_ssh this has the "oddity",
> that it checks a host behind a nat, but the ssh port is forwarded. The
> check command has the following syntax:
>
> define command {
> command_name check_nrpe_by_ssh_nat
> command_line $USER1$/check_by_ssh -p 2022 -H
> $HOSTADDRESS$ -C '$USER1$/check_nrpe -H localhost -c $ARG1$'
> }
>
Checking localhost via nrpe doesn't really seem to make sense. You could
just run the plugin manually, you know.
> define service {
> use theisen-service
> host_name linux-doc.theisen-muc.de
> service_description NRPE-ZOMBIES-THEISEN-DOC
> check_command check_nrpe_by_ssh_nat!check_zombie_procs
> }
>
> If I manually enter this command as the user nagios after a "sudo su -
> nagios" it works flawlessly. Have I overlooked something?
>
What is $USER1$ set to on the nagios server?
Are the plugins in the same directory on the monitored server?
>
> Thanks
You're welcome.
> Nicki
>
--
Sourcerer / Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
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