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
|
||||
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
|
||||
|
|
|
@ -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 }}
|
|
@ -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) }}
|
|
@ -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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue