Add more RabbitMQ checks
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
c5b01f6d30
commit
963ff9586b
7 changed files with 46 additions and 4 deletions
|
@ -253,6 +253,9 @@
|
||||||
mode: 0644
|
mode: 0644
|
||||||
with_items:
|
with_items:
|
||||||
- check_rabbitmq_server.cfg
|
- check_rabbitmq_server.cfg
|
||||||
|
- check_rabbitmq_cluster.cfg
|
||||||
|
- check_rabbitmq_connections.cfg
|
||||||
|
- check_rabbitmq_overview.cfg
|
||||||
when: inventory_hostname.startswith('rabbitmq')
|
when: inventory_hostname.startswith('rabbitmq')
|
||||||
notify:
|
notify:
|
||||||
- restart nrpe
|
- restart nrpe
|
||||||
|
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
command[check_rabbitmq_connections]=/usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_connections --extra-opts=common@/etc/nrpe.d/rabbitmq_args.ini
|
|
@ -0,0 +1 @@
|
||||||
|
command[check_rabbitmq_overview]=/usr/lib64/nagios/plugins-rabbitmq/check_rabbitmq_overview --extra-opts=common@/etc/nrpe.d/rabbitmq_args.ini
|
|
@ -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 }}
|
|
@ -2,4 +2,3 @@
|
||||||
hostname = localhost
|
hostname = localhost
|
||||||
username = nagios-monitoring
|
username = nagios-monitoring
|
||||||
password = {{ (env == 'production')|ternary(rabbitmq_monitoring_password_production, rabbitmq_monitoring_password_staging) }}
|
password = {{ (env == 'production')|ternary(rabbitmq_monitoring_password_production, rabbitmq_monitoring_password_staging) }}
|
||||||
node = {{ inventory_hostname }}
|
|
|
@ -1,6 +1,43 @@
|
||||||
define service {
|
define service {
|
||||||
host_name rabbitmq01.phx2.fedoraproject.org
|
host_name rabbitmq01.phx2.fedoraproject.org
|
||||||
service_description Check bus server processes
|
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
|
use defaulttemplate
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue