[Nagiosplug-help] check_by_ssh

Andreas Ericsson ae at op5.se
Thu Nov 18 01:12:09 CET 2004

Thusitha Dassanyake wrote:
> Hi,
> I 'm trying to use check_by_ssh to monitor remote host's disk space
> using check_disk command. But when nagios monitors it throws out the
> error message "ssh: connect to host <ipaddress> port 22: Connection
> refused".
> /etc/hosts files in both the hosts (where nagios running on & the
> remote machine) were updated accordingly.
> When I try the command manually giving the parameters it asks to enter
> the password of the remote machine. When I apply the password it
> succesfully runs & execute the plugin.
> Can anyone help me sloving this matter?

It's been discussed and solved about 20 times before. Read the FAQ, the 
manual, any other documentation you can find, and then the mail 
archives. You want to look for passphraseless ssh keys for passwordless 

Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer

More information about the Help mailing list