<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffff99" text="#000000">
<font face="Helvetica, Arial">Dear Nagios oracles,<br>
<br>
I have </font><font face="Helvetica, Arial">added </font><font
face="Helvetica, Arial">two services to a </font><font
face="Helvetica, Arial">Nagios </font><font face="Helvetica, Arial">test
server. I would like to know roughly what misconfiguration I have.<br>
<br>
These two errors messages pop up:<br>
<small><small><font face="Courier New, Courier, monospace"><br>
[1261054866] SERVICE NOTIFICATION: nagiosadmin;dd52;Swap
Usage;UNKNOWN;notify-service-by-sms;Remote command execution failed:
Permission denied (publickey,keyboard-interactive).<br>
<br>
[1261054866] SERVICE NOTIFICATION: nagiosadmin;dd52;Total
Processes;UNKNOWN;notify-service-by-sms;Remote command execution
failed: Permission denied (publickey,keyboard-interactive).</font></small></small><br>
<br>
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.<br>
<br>
These are the two services I have in the config file that rests in<font
face="Courier New, Courier, monospace"> <small>/usr/local/nagios/etc/servers/</small></font></font><small><font
face="Courier New, Courier, monospace">dd52.cfg</font></small><br>
<font face="Helvetica, Arial"><br>
<small><small><font face="Courier New, Courier, monospace"># dd52.cfg<br>
define service{<br>
use remote-service ; Name
of service template to use<br>
host_name dd52<br>
service_description Total Processes<br>
check_command
check_remote_procs!22!250!400!RSZDT<br>
#check_command check_remote_procs!250!400!RSZDT<br>
}<br>
<br>
define service{<br>
use remote-service ; Name
of service template to use<br>
host_name dd52<br>
service_description Swap Usage<br>
check_command check_remote_swap!22!20!10<br>
}</font></small></small><br>
<br>
<br>
The keys are readable by nagios: <br>
<small><font face="Courier New, Courier, monospace">root@abc:/usr/local/nagios/etc/keys#
ls -l<br>
total 8<br>
-rw------- 1 nagios nagios 1675 2009-12-17 11:56 dd52<br>
root@abc:/usr/local/nagios/etc/keys# ls -ld<br>
drwxr-x--- 2 nagios nagios 4096 2009-12-17 11:56 .<br>
<br>
</font></small></font><font face="Helvetica, Arial">Of course, if these
keys were unreadable then I should have seen an error message like
this, but I have not:<br>
<small><small><font face="Courier New, Courier, monospace">Remote
command execution failed: Warning: Identity file
/usr/local/nagios/etc/keys/dd52 inaccessible: No such file or
directory.</font></small></small> </font><br>
<font face="Helvetica, Arial"><small><font
face="Courier New, Courier, monospace"><br>
</font></small></font><font face="Helvetica, Arial">Has anybody got an
idea?<br>
<br>
Best wishes.<br>
<br>
<br>
PS. uname -a : Linux abc 2.6.28-17-generic #58-Ubuntu SMP Tue Dec 1
18:57:07 UTC 2009 i686 GNU/Linux<br>
</font>
</body>
</html>