you need to specify the path to sudo in your command or change the
zCommandPath variable in the zProperties tab of your device to reflect
that path where sudo lives.
e.g.
/usr/bin/sudo /home/zencmd/bin/check_megaraid.pl -m /home/zencmd/bin/ -c
1 -w 1
Jason
The place where you made your stand never mattered,
only that you were there... and still on your feet
Brandon Leach wrote:
Zencommand is adding a prefix (/usr/local/libexec/) to the command I
am trying to run on a remote machine via ssh.
zencommand.log:
2007-05-16 18:00:28 DEBUG zen.zencommand: Next command in 1.012441 seconds
2007-05-16 18:00:29 DEBUG zen.zencommand: Closing connection to srv0101-09
2007-05-16 18:00:29 ERROR zen.zencommand: Command timed out on device
srv0101-09: /usr/local/zenoss/libexec/sudo
/home/zencmd/bin/check_megaraid.pl -m /home/zencmd/bin/ -c 1 -w 1
As you can see, the command I am trying to run is “sudo
/home/zencmd/bin/check_megaraid.pl -m /home/zencmd/bin/ -c 1 -w 1”,
but zencommand is adding the libexec path before my specified command.
This worked correctly in 1.1.1.
------------------------------------------------------------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users