Document how to remove monitoring of a rabbitmq queue
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
581f19d9c7
commit
0e1529b040
1 changed files with 33 additions and 0 deletions
33
remove_monitoring_rabbitmq_queue.md
Normal file
33
remove_monitoring_rabbitmq_queue.md
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# How to remove the monitoring of a rabbitmq queue
|
||||||
|
|
||||||
|
The monitoring of queue sizes of rabbitmq queue is done by nagios using two
|
||||||
|
small configuration file.
|
||||||
|
|
||||||
|
To remove that monitoring, you simply need to remove these two files.
|
||||||
|
|
||||||
|
On the rabbitmq server (rabbitmq01):
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
|
* Remove the local nagios configuration file
|
||||||
|
|
||||||
|
rm /etc/nrpe.d/check_rabbitmq_queue_<queue_name>.cfg
|
||||||
|
|
||||||
|
* Then restart the local nagios plugin
|
||||||
|
|
||||||
|
systemctl restart nrpe
|
||||||
|
|
||||||
|
On the nagios server (noc01):
|
||||||
|
-----------------------------
|
||||||
|
|
||||||
|
* Remove the nagios configuration file
|
||||||
|
|
||||||
|
rm /etc/nagios/services/rabbitmq-queue-<queue_name>.cfg
|
||||||
|
|
||||||
|
* Ensure the configuration is still valid:
|
||||||
|
|
||||||
|
nagios -v /etc/nagios/nagios.cfg
|
||||||
|
|
||||||
|
|
||||||
|
* If and only **if** the check above passed, restart nagios on the nagios server
|
||||||
|
|
||||||
|
systemctl restart nagios
|
Loading…
Add table
Add a link
Reference in a new issue