On Apr 24, 2009, at 4:44 PM, coyote wrote:
> I am trying to run a command remotely.  I have set up a SSH key and  
> tested, the zenoss use can access the remote system w/o a password.
>
> I have set zCommandUsername to the user name of the remote user and  
> added a template and a command to it, below are the setting I have
>
> name: check_procs_ypserv
> source type: command
> enable: True
> use SSH: True
> component: Nagios
> Event Class: /Cmd/Fail
> event key: ypserv
> severity: warning
> cycle time: 300
> command template:
> /opt/nagios/check_procs -c 1:1 -C ypserv
>
>
> What is get is an event with a summary of:
>
> Command timed out on device somehost.domain: /opt/nagios/check_procs  
> -c 1:1 -C ypserv
>
> I have searched the forum and found several references to this  
> problem but no solution.  I don't want disable SNMP on the system  
> because SNMP works for the most part.   I keep getting a "OID not  
> increasing" error on HPUX and have not found a way to address it so  
> I trying a different path.  I know I can get this to work using  
> Nagios' NRPE but would rather not have to use it since Zenoss can do  
> it out of the box.
>
> I would rather fix the "OID not increasing"  problem but after two  
> days I just don't have the time.
>
> Thank you in advance for you response.

In addition to the zCommandUsername, be sure to verify that the  
zKeyPath is pointing to the private key file that should be used to  
SSH into the target system. Also, I think you already got this part,  
but you need to make sure that /opt/nagios/check_procs exist on the  
target system.
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to