Hello<div><br></div><div>the problem does not occur when logging with simple nagios user </div><div>it only occurs when trying with check_by_ssh. </div><div><br></div><div>edit: </div><div>I managed to get it to work.. but i do not really know which solution worked..</div>
<div><br></div><div>i edited sshd_onfig and disabled PAM </div><div>on the bluecoat I created a nagios users, gave it a home dir and assigned it a password... restarted the ssh daemon, logged off and logged back in.. </div>
<div><br></div><div>does check_by_ssh triggers some PAM authentication requirements? </div><div><br></div><div>thank you for your support. </div><div><br><div class="gmail_quote">On 17 July 2013 18:49, MAHONEY, DANIEL <span dir="ltr"><<a href="mailto:dm572j@att.com" target="_blank">dm572j@att.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If the bluecoat is configured to allow root login, then make sure that the nagios machine’s nagios user’s public key is in the bluecoat machine’s root user’s
authorized_keys file. Otherwise just log in as the nagios user. For security reasons it’s most likely a better idea to work as a noon-root user anyway.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Mario Garcia [mailto:<a href="mailto:mariog@absi.be" target="_blank">mariog@absi.be</a>]
<br>
<b>Sent:</b> Wednesday, July 17, 2013 11:10 AM<br>
<b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
<b>Subject:</b> [Nagios-users] check_by_ssh from nagios user<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hello <u></u><u></u></p>
<div>
<p class="MsoNormal">i want to monitor a bluecoat reporter with check_by_ssh as nrpe or snmp are not available. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">when i loggin from nagios user using simple ssh I can login <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">when i execute check_by_ssh from root user and execute a command it does work <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">when i execute check_by_ssh from the nagios user on the nagios server it does not work.. the public key is not taken into account as it request the password despite the fact that i add -i option to check_by_ssh.. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">do you have an idea what could this be? is it the bluecoat reporter which is refusing check_by_ssh, why does not refuse when i just use ssh ..<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">note I am conneciting from nagios user on nagios server to root user on bluecoat reporter..maybe i should try to login to nagios user on the remote system? <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">i am out of ideas<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">thanks <br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <span style="font-family:"Arial","sans-serif";color:#888888">
<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif";color:#888888">--<br>
Mario Garcia</span></b><span style="font-family:"Arial","sans-serif";color:#888888"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#888888">ABSI SA<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#888888">224 Bd de l'Humanité<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#888888">1190 Brussels Belgium<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#888888"><a href="http://www.absi.be" target="_blank">www.absi.be</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#888888">Tel 00 322 333 40 00<u></u><u></u></span></p>
</div>
</div>
</div></div></div>
</div>
<br>------------------------------------------------------------------------------<br>
See everything from the browser to the database with AppDynamics<br>
Get end-to-end visibility with application monitoring from AppDynamics<br>
Isolate bottlenecks and diagnose root cause in seconds.<br>
Start your free trial of AppDynamics Pro today!<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#888888" face="arial, sans-serif"><span style="border-collapse:collapse"><div>
<b>--<br>Mario Garcia</b></div><div>ABSI SA</div><div>224 Bd de l'Humanité</div><div>1190 Brussels Belgium</div><div><a href="http://www.absi.be" target="_blank">www.absi.be</a></div><div>Tel 00 322 333 40 00<br></div>
</span></font>
</div>