Quantcast
Channel: Zenoss Community: Message List
Viewing all articles
Browse latest Browse all 783

Re: Rabbit MQ Device Not able to Model but able to connect via putty

$
0
0

Hi would suggest you to use a user as zenmonitor to run rabbitmqctl

 

 

1.Install the sudo package on your server.

2.Make sudo not require a TTY. This allows sudo to be run via ssh.

 

1.Run visudo as root.
2.Find a line containing Defaults requiretty and comment it out by prefixing the line with a #.
3.Type ESC then :wq to save the sudo configuration.
3.Allow the zenmonitor user to run rabbitmqctl.

1.Run visudo as root.

2.Add the following line to the bottom of the file.

zenmonitor ALL=(ALL) NOPASSWD: /usr/sbin/rabbitmqctl
3.Type ESC then :wq to save the sudo configuration.

4.Alias rabbitmqctl for the zenmonitor user.

1.Add the following lines to /home/zenmonitor/.bashrc.

shopt -s expand_aliases
alias rabbitmqctl="sudo /usr/sbin/rabbitmqctl"

 

Do not use the keys, ,rather use the use the username and password in the configuration properties, I have done this to monitor rabbit mq queues.



Viewing all articles
Browse latest Browse all 783

Trending Articles