ssh error in nagios plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rman
Posts: 1
Joined: Fri Jan 18, 2013 4:56 pm

ssh error in nagios plugin

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: ssh error in nagios plugin

Post by slansing »

What are you using to call the plugin? I am assuming you are trying to remotely activate it from nagios.
Locked