Problem with checking a process status on a remote host


#1

Hi,

I would like to check if a process is running on a remote host via ssh.
I defined a corresponding command in a commands.cfg

define command {
command_name check_proc_by_ssh
command_line /usr/local/nagios/libexec/check_by_ssh -H $HOSTADDRESS$ -C “/misc/hadaq/nagios/nagios-plugins-1.4.5/plugins-scripts/my_check_process.pl $ARG1$”
}

Unfortunately I do not have root access to /usr on a remote host, therefore I can not install my plugins in proper directory /usr/local/nagios/libexec/. However, nagios does not like a plugin being placed in /misc/hadaq/nagios/nagios-plugins-1.4.5/plugins-scripts/
on a remote host. The error message is:
Error: Invalid command object directive '"/misc/hadaq/nagios/nagios-plugins-1.4.5/plugins/my_check_process.pl
Error: Could not add object property in file ‘/usr/local/nagios/etc/commands.cfg’ on line 283.

Do you have an idea how I can make nagios take my plugin
from /misc/hadaq/nagios/nagios-plugins-1.4.5/plugins/
on a remote host?

Thanks,
mess.