On Jan 15, 2009, at 4:35 PM, rlindell wrote: > I have a check_by_ssh command that runs from the command line, and > via the 'Test' button; however, is collecting no data and giving log > entries: > > 2009-01-15 13:29:02 WARNING zen.zencommand: Command timed out on > device IOI-MX1: /opt/zenoss/libexec/check_by_ssh -l root -H > 10.7.4.11 -C 'postqueue -p | wc -l' > > However, this runs fine as the 'zenoss' user: > > [zen...@zenoss ~]$ /opt/zenoss/libexec/check_by_ssh -l root -H > 10.7.4.11 -C 'postqueue -p | wc -l' > 1853
This really should work, but you really don't need to be using the check_by_ssh to do this kind of thing in Zenoss. When you're creating a COMMAND type data source you'll see that there is a "Use SSH" box that will cause Zenoss to run the comand over ssh for you. All you have to do is setup the zCommandUser and zKeyPath (since it looks like you're relying on pubkey authentication) then enter only the postqueue ... part of the command in the command template. _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
