Add more RabbitMQ checks

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2019-08-02 11:51:39 +02:00 committed by Pierre-Yves Chibon
parent c5b01f6d30
commit 963ff9586b
7 changed files with 46 additions and 4 deletions

View file

@ -253,6 +253,9 @@
mode: 0644
with_items:
- check_rabbitmq_server.cfg
- check_rabbitmq_cluster.cfg
- check_rabbitmq_connections.cfg
- check_rabbitmq_overview.cfg
when: inventory_hostname.startswith('rabbitmq')
notify:
- restart nrpe

View file

@ -0,0 +1 @@
command[check_rabbitmq_cluster]=/usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_cluster --extra-opts=common@/etc/nrpe.d/rabbitmq_args.ini -n rabbit@rabbitmq01.phx2.fedoraproject.org,rabbit@rabbitmq02.phx2.fedoraproject.org,rabbit@rabbitmq03.phx2.fedoraproject.org

View file

@ -0,0 +1 @@
command[check_rabbitmq_connections]=/usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_connections --extra-opts=common@/etc/nrpe.d/rabbitmq_args.ini

View file

@ -0,0 +1 @@
command[check_rabbitmq_overview]=/usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_overview --extra-opts=common@/etc/nrpe.d/rabbitmq_args.ini

View file

@ -1 +1 @@
command[check_nrpe_check_rabbitmq_server]=/usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_server --extra-opts=common@/etc/nrpe.d/rabbitmq_args.ini
command[check_rabbitmq_server]=/usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_server --extra-opts=common@/etc/nrpe.d/rabbitmq_args.ini --node={{ inventory_hostname }}

View file

@ -1,5 +1,4 @@
[common]
hostname = localhost
username = nagios-monitoring
password = {{ (env == 'production')|ternary(rabbitmq_monitoring_password_production, rabbitmq_monitoring_password_staging) }}
node = {{ inventory_hostname }}
password = {{ (env == 'production')|ternary(rabbitmq_monitoring_password_production, rabbitmq_monitoring_password_staging) }}

View file

@ -1,6 +1,43 @@
define service {
host_name rabbitmq01.phx2.fedoraproject.org
service_description Check bus server processes
check_command check_by_nrpe!check_nrpe_check_rabbitmq_server
check_command check_by_nrpe!check_rabbitmq_server
use defaulttemplate
}
define service {
host_name rabbitmq02.phx2.fedoraproject.org
service_description Check bus server processes
check_command check_by_nrpe!check_rabbitmq_server
use defaulttemplate
}
define service {
host_name rabbitmq03.phx2.fedoraproject.org
service_description Check bus server processes
check_command check_by_nrpe!check_rabbitmq_server
use defaulttemplate
}
# The following results are cluster-wide, no need to run them on each cluster member
define service {
host_name rabbitmq01.phx2.fedoraproject.org
service_description Check bus cluster
check_command check_by_nrpe!check_rabbitmq_cluster
use defaulttemplate
}
define service {
host_name rabbitmq01.phx2.fedoraproject.org
service_description Check bus cluster connections
check_command check_by_nrpe!check_rabbitmq_connections
use defaulttemplate
}
define service {
host_name rabbitmq01.phx2.fedoraproject.org
service_description Check bus cluster overview
check_command check_by_nrpe!check_rabbitmq_overview
use defaulttemplate
}