zenoss/ZenPacks.zenoss.RabbitMQ — Issue #5: Zenmodeler doesn't find nodes
Author: ju55i
Created: 2012-02-08 10:05:26+00:00
State: open

I'm running the zenpack with RabbitMQ 2.2.0 on RHEL5. Rabbitmqctl command is run as a rabbitmq user on the server. Zenpack provides data to the device graphs correctly but doesn't populate the components. I had to customize the monitoring templates by removing the -n {here/title} switch because there was no node withe same name as the device FQDN. When running command manually on the RabbitMQ server data comes out just fine.

When running zenmodeler manually I see in the logs:
2012-02-08 11:53:32,416 DEBUG zen.SshClient: x.x.x.x channel 1 CommandChannel exit code for rabbitmqctl status 2>&1 && (echo __COMMAND__ ; for vhost in $(rabbitmqctl -q list_vhosts) ; do echo "VHOST: $vhost" ; echo "__SPLIT__" ; rabbitmqctl -q list_exchanges -p $vhost name type durable auto_delete arguments ; echo "__SPLIT__" ; rabbitmqctl -q list_queues -p $vhost name durable auto_delete arguments ; echo "__VHOST__" ; done) is 127: Command not found

I guess it can't find the rabbitmqctl command. It is located in /usr/sbin and I've set that path to zCommandPath. I don't wish to access the RabbitMQ server as a root. How can I get the path right?