[Nagiosplug-help] Remote command execution failed: Permission denied (publickey, keyboard-interactive).
J4
junk4 at klunky.co.uk
Thu Dec 17 14:58:29 CET 2009
Dear Nagios oracles,
I have added two services to a Nagios test server. I would like to
know roughly what misconfiguration I have.
These two errors messages pop up:
[1261054866] SERVICE NOTIFICATION: nagiosadmin;dd52;Swap
Usage;UNKNOWN;notify-service-by-sms;Remote command execution failed:
Permission denied (publickey,keyboard-interactive).
[1261054866] SERVICE NOTIFICATION: nagiosadmin;dd52;Total
Processes;UNKNOWN;notify-service-by-sms;Remote command execution failed:
Permission denied (publickey,keyboard-interactive).
On the Nagios server I can ssh into the target server without a password
(dd52) using the public key. The user on the Nagios server is nagios,
and the target server is nagios. Thus, SSH works well.
These are the two services I have in the config file that rests in
/usr/local/nagios/etc/servers/dd52.cfg
# dd52.cfg
define service{
use remote-service ; Name of
service template to use
host_name dd52
service_description Total Processes
check_command check_remote_procs!22!250!400!RSZDT
#check_command check_remote_procs!250!400!RSZDT
}
define service{
use remote-service ; Name of
service template to use
host_name dd52
service_description Swap Usage
check_command check_remote_swap!22!20!10
}
The keys are readable by nagios:
root at abc:/usr/local/nagios/etc/keys# ls -l
total 8
-rw------- 1 nagios nagios 1675 2009-12-17 11:56 dd52
root at abc:/usr/local/nagios/etc/keys# ls -ld
drwxr-x--- 2 nagios nagios 4096 2009-12-17 11:56 .
Of course, if these keys were unreadable then I should have seen an
error message like this, but I have not:
Remote command execution failed: Warning: Identity file
/usr/local/nagios/etc/keys/dd52 inaccessible: No such file or directory.
Has anybody got an idea?
Best wishes.
PS. uname -a : Linux abc 2.6.28-17-generic #58-Ubuntu SMP Tue Dec 1
18:57:07 UTC 2009 i686 GNU/Linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20091217/e376a0e2/attachment.html>
More information about the Help
mailing list