Page 1 of 1

ssh error in nagios plugin

Posted: Fri Jan 18, 2013 5:02 pm
by rman
Hi,

I made a plugin to check unused files in remote server.
The script is working fine when I am using it alone. But when nagios is calling the function, I am getting error:

2013-0-18 16:56:14 ------ debugging
cmd=[/usr/lib64/nagios/plugins/check_unused_file '--host' '1.1.1.1 ''/tmp']
output=[Host key verification failed.
OK: There is no file where size is greater than 1 bytes that have last modified 1 day(s) ago

I checked everything to ensure that the ssh host key verification is working fine.

Is there any other reason for this error?

Thanks.

Re: ssh error in nagios plugin

Posted: Tue Jan 22, 2013 2:15 pm
by slansing
What are you using to call the plugin? I am assuming you are trying to remotely activate it from nagios.