<div class="gmail_quote">Hi list,<div><br></div><div>I have some issues with the plugin "check_by_ssh". In particular, there is one error:</div>
<div><br></div><div>When I run a shell script located in another server, from the Nagios server using the check_by_ssh plugin, I don't have any errors and I can see the result of the script, like this:</div>
<div><br></div><div><b><a href="mailto:root@TSM-SRV-V-114#" style="vertical-align:baseline;line-height:20px;font-size:12px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;margin:0px;outline:none 0px;padding:0px" target="_blank">root@nagioserver#</a><span style="line-height:20px;font-size:12px;font-family:Helvetica,Arial,sans-serif"> /usr/lib/nagios/plugins/check_by_ssh -l root -H "ipxenserver" -C /usr/lib/nagios/plugins/check_Xencpu</span><br style="line-height:20px;font-size:12px;font-family:Helvetica,Arial,sans-serif">


<span style="line-height:20px;font-size:12px;font-family:Helvetica,Arial,sans-serif">“OK:CPU%= 3”</span></b></div><div><font color="#5e6066" face="Helvetica, Arial, sans-serif"><span style="font-size:12px;line-height:20px"><b><br>


</b></span></font></div><div><font color="#5e6066" face="Helvetica, Arial, sans-serif"><span style="font-size:12px;line-height:20px">But, by any strange reason, when I configure the check for Nagios presents the results in its interface, I have the error:</span></font></div>


<div><font color="#5e6066" face="Helvetica, Arial, sans-serif"><span style="font-size:12px;line-height:20px"><img src="cid:ii_1392ae52d400ab37" alt="Imágenes integradas 1"><br></span></font></div><div><font color="#5e6066" face="Helvetica, Arial, sans-serif"><span style="font-size:12px;line-height:20px"><br>


</span></font></div><div><font color="#5e6066" face="Helvetica, Arial, sans-serif"><span style="font-size:12px;line-height:20px">I have made the ssh authorization keys in both servers (Nagios and Xen), I configured the users, permissions,etc. And I can't to do this work it.</span></font></div>


<div><font color="#5e6066" face="Helvetica, Arial, sans-serif"><span style="font-size:12px;line-height:20px"><br></span></font></div><div><font color="#5e6066" face="Helvetica, Arial, sans-serif"><span style="font-size:12px;line-height:20px">Could someone help me solve this problem????</span></font></div>


<div><br></div><div><br></div><div><font color="#5e6066" face="Helvetica, Arial, sans-serif"><span style="font-size:12px;line-height:20px">This is a part of my definition files:</span></font></div><div><b style="font-size:12px;line-height:20px;font-family:Helvetica,Arial,sans-serif"><div style="display:inline!important">


#XENServer</div></b></div><div><font face="Helvetica, Arial, sans-serif"><span style="font-size:12px;line-height:20px"><b><div>define command {</div><div>               command_name check_by_ssh_xentop</div><div>               command_line /usr/lib/nagios/plugins/check_by_ssh -l '$ARG1$' -H '$HOSTADDRESS$' -C '$ARG2$' -i '$ARG3$'</div>


<div>               }</div></b></span></font><div><div><b>#Hypervisor check</b></div><div><b>        define service{</b></div><div><b>                use                              generic-service</b></div><div><b>                host_name                  ORLANDO </b></div>


<div><b>                service_description     Hypervisor CPU</b></div><div><b>                check_command         check_by_ssh_xentop!root!ipxenserver!/usr/lib/nagios/plugins/check_Xencpu.sh!/root/.ssh/id_rsa!</b></div>


<div><b>                }</b></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Regards!</div><span><font color="#888888"><div><br></div><div><br></div><div>-- </div><div><b style="font-family:Tahoma;font-size:13px"><font face="Franklin Gothic Medium">IC.</font></b><font face="Franklin Gothic Medium" style="font-size:13px"><font face="Franklin Gothic Medium"><b> Eduardo Montes de Oca Sánchez<br>


</b></font></font><span style="font-family:Tahoma;font-size:13px">Skype: edrendar</span><br style="font-family:Tahoma;font-size:13px"><span style="font-family:Tahoma;font-size:13px">Gmail: <a href="mailto:edrendar@gmail.com" target="_blank">edrendar@gmail.com</a></span><br style="font-family:Tahoma;font-size:13px">


<span style="font-family:Tahoma;font-size:13px">MSN: <a href="mailto:ed_montesdeoca@hotmail.com" target="_blank">ed_montesdeoca@hotmail.com</a></span><br style="font-family:Tahoma;font-size:13px"><span style="font-family:Tahoma;font-size:13px">Movil: 5523419886</span><br>


</div><a href="https://linuxcounter.net/cert/549074.png" target="_blank">https://linuxcounter.net/cert/549074.png</a></font></span></div></div>