<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Helvetica;
        panose-1:2 11 5 4 2 2 2 2 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor="#FFFF99" lang=IT link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Seems like the plugin is
not executable… </span></font><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>(chmod 755), did you
already check this?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 color=black face=Verdana><span style='font-size:10.0pt;font-family:Verdana'>Valerio
Fabrizio<b><span style='font-weight:bold'> </span></b></span></font><font
face="Comic Sans MS"><span style='font-family:"Comic Sans MS"'><o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>Da:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> J4 [mailto:junk4@klunky.co.uk] <br>
<b><span style='font-weight:bold'>Inviato:</span></b> giovedì 17 dicembre 2009
14.58<br>
<b><span style='font-weight:bold'>A:</span></b>
nagiosplug-help@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Oggetto:</span></b> [Nagiosplug-help] Remote
command execution failed: Permissiondenied (publickey, keyboard-interactive).</span></font><font
color=black><span style='color:windowtext'><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=black face=Helvetica><span
style='font-size:12.0pt;font-family:Helvetica'>Dear Nagios oracles,<br>
<br>
    I have added two services to a Nagios test server.  I
would like to know roughly what misconfiguration I have.<br>
<br>
These two errors messages pop up:<br>
</span></font><font size=1 face="Courier New"><span style='font-size:7.5pt;
font-family:"Courier New"'><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).</span></font><font
face=Helvetica><span style='font-family:Helvetica'><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</span></font><font
face="Courier New"><span style='font-family:"Courier New"'> </span></font><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>/usr/local/nagios/etc/servers/dd52.cfg</span></font><br>
<font face=Helvetica><span style='font-family:Helvetica'><br>
</span></font><font size=1 face="Courier New"><span style='font-size:7.5pt;
font-family:"Courier New"'># 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>
        }</span></font><font face=Helvetica><span
style='font-family:Helvetica'><br>
<br>
<br>
The keys are readable by nagios:  <br>
</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>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>
</span></font><font face=Helvetica><span style='font-family:Helvetica'>Of
course, if these keys were unreadable then I should have seen an error message
like this, but I have not:<br>
</span></font><font size=1 face="Courier New"><span style='font-size:7.5pt;
font-family:"Courier New"'>Remote command execution failed: Warning: Identity
file /usr/local/nagios/etc/keys/dd52 inaccessible: No such file or directory.</span></font><font
face=Helvetica><span style='font-family:Helvetica'> </span></font><br>
<font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
</span></font><font face=Helvetica><span style='font-family:Helvetica'>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</span></font><o:p></o:p></p>

</div>

</body>

</html>