Re: [Nagios-users] Command execution failed

2010-01-26 Thread ReynierPM
On 1/26/2010 12:01 AM, Marc Powell wrote: Can you run check_bacula.pl as the nagios user on the remote machine? If not, read any documentation you received with the plugin to see what other changes you need to make. I'm guessing that other programs it calls are not executable by the nagios

[Nagios-users] Command execution failed

2010-01-25 Thread ReynierPM
Hi every: Some time ago I wrote a message to this list for get help in how to check Bacula over Nagios. As bacula nagios plugins use check_host_by_ssh command I configure shared key between client (monitoring server, where nagios reside) and server(bacula - server to check) and it works because

Re: [Nagios-users] Command execution failed

2010-01-25 Thread Gary Every
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. The problem with shared keys and check-by-ssh is

Re: [Nagios-users] Command execution failed

2010-01-25 Thread Marc Powell
On Jan 25, 2010, at 4:27 PM, Gary Every wrote: 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 . . .. or better, use sudo... -- Marc

Re: [Nagios-users] Command execution failed

2010-01-25 Thread ReynierPM
On 1/25/2010 5:33 PM, Marc Powell wrote: or better, use sudo... Any guide to do this with sudo? I not know how to -- Cheers ReynierPM -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay

Re: [Nagios-users] Command execution failed

2010-01-25 Thread ReynierPM
On 1/25/2010 5:27 PM, Gary Every wrote: 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. It have

Re: [Nagios-users] Command execution failed

2010-01-25 Thread Marc Powell
On Jan 25, 2010, at 5:12 PM, ReynierPM wrote: It have permissions: -rwxr-x--- 1 nagios nagios 5020 2009-09-22 00:01 check_bacula.pl* Any other idea? Can you run check_bacula.pl as the nagios user on the remote machine? If not, read any documentation you received with the plugin to see