Hello Every body, <br><br>In my nagios architector I heve to use n ssh proxy since I'm not able to login from my nagios server on monitored servers <br>The only way possible is to use check_by_ssh (for security reasons, nrpe is not possible). I encapsulate an check_by_ssh in an other one <br>
<br>I have a problem with this command :<br>/usr/local/nagios/check_by_ssh -H nagios3 -i /usr/local/nagios/.ssh/id_rsa -C "/usr/local/nagios/check_by_ssh -H nagios2 -i usr/local/nagios/.ssh/id_rsa -C '/usr/local/nagios/check_load -w 15,10,5 -c 30,25,20' " <br>
<br><br>this command has the following output<br><br>/usr/local/nagios/check_by_ssh : option invalide --w<br><br>if I do<br> /usr/local/nagios/check_by_ssh -H nagios3 -i
/usr/local/nagios/.ssh/id_rsa -C "/usr/local/nagios/check_by_ssh -H
nagios2 -i usr/local/nagios/.ssh/id_rsa -C 'uname -a ' "<br>I have <br>/usr/local/nagios/check_by_ssh : option invalide --a <br><br>but the following commands work well <br>/usr/local/nagios/check_by_ssh -H nagios3 -i
/usr/local/nagios/.ssh/id_rsa -C "/usr/local/nagios/check_load -w
15,10,5 -c 30,25,20"<br>and<br>/usr/local/nagios/check_by_ssh -H
nagios3 -i /usr/local/nagios/.ssh/id_rsa -C 'uname -a ' <br><br>work well <br><br>Do you have an idea please <br><br>Many thanks <br>Kaouther <br><br><br>