Looks like either the execute permissions are improperly set on the script you're trying to run - via ssh - on the remote (not nagios) server, or the user that you've set up shared keys with doesn't have permission to run the command or script. <br>
<br>The problem with shared keys and check-by-ssh is that either you've got to set up your scripts to be able to be run by a non-priveleged user, or you've got to share the root users keys . . .. <br><br>g.;<br><br>
<br><div class="gmail_quote">On Mon, Jan 25, 2010 at 3:03 PM, ReynierPM <span dir="ltr"><<a href="mailto:rperezm@uci.cu">rperezm@uci.cu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi every:<br>
Some time ago I wrote a message to this list for get help in how to<br>
check Bacula over Nagios. As bacula nagios plugins use check_host_by_ssh<br>
command I configure shared key between client (monitoring server, where<br>
nagios reside) and server(bacula - server to check) and it works because<br>
I can login from Nagios Server to Bacula Server without enter any<br>
password. Now Nagios is reporting this error:<br>
<br>
Remote command execution failed: Permission denied, please try again.<br>
<br>
How I can fix this now?<br>
--<br>
Saludos<br>
ReynierPM<br>
<br>
------------------------------------------------------------------------------<br>
The Planet: dedicated and managed hosting, cloud storage, colocation<br>
Stay online with enterprise data centers and the best network in the business<br>
Choose flexible plans and management services without long-term contracts<br>
Personal 24x7 support from experience hosting pros just a phone call away.<br>
<a href="http://p.sf.net/sfu/theplanet-com" target="_blank">http://p.sf.net/sfu/theplanet-com</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"><br>-- <br>Gary Every<br>"Pay it Forward!"<br><br>