nagios: Make and use a "rabbitmq-consumer-service" template service.

This commit is contained in:
Alex Vandiver 2022-06-13 17:23:44 -07:00 committed by Alex Vandiver
parent 775a084d0f
commit f48d543d9b
1 changed files with 23 additions and 55 deletions

View File

@ -358,102 +358,70 @@ define service {
} }
define service { define service {
name rabbitmq-consumer-service
use generic-service use generic-service
service_description Check RabbitMQ notify_tornado consumers service_description RabbitMQ consumer check template
hostgroup_name frontends hostgroup_name frontends
check_command check_rabbitmq_consumers!notify_tornado
# Workaround weird checks 40s after first error causing alerts # Workaround weird checks 40s after first error causing alerts
# from a single failure because cron hasn't run again yet # from a single failure because cron hasn't run again yet
max_check_attempts 3 max_check_attempts 3
contact_groups admins
register 0
}
define service {
use rabbitmq-consumer-service
service_description Check RabbitMQ notify_tornado consumers
check_command check_rabbitmq_consumers!notify_tornado
contact_groups page_admins contact_groups page_admins
} }
define service { define service {
use generic-service use rabbitmq-consumer-service
service_description Check RabbitMQ user_activity_interval consumers service_description Check RabbitMQ user_activity_interval consumers
hostgroup_name frontends
check_command check_rabbitmq_consumers!user_activity_interval check_command check_rabbitmq_consumers!user_activity_interval
# Workaround weird checks 40s after first error causing alerts
# from a single failure because cron hasn't run again yet
max_check_attempts 3
contact_groups admins
} }
define service { define service {
use generic-service use rabbitmq-consumer-service
service_description Check RabbitMQ user_presence consumers service_description Check RabbitMQ user_presence consumers
hostgroup_name frontends
check_command check_rabbitmq_consumers!user_presence check_command check_rabbitmq_consumers!user_presence
# Workaround weird checks 40s after first error causing alerts
# from a single failure because cron hasn't run again yet
max_check_attempts 3
contact_groups admins
} }
define service { define service {
use generic-service use rabbitmq-consumer-service
service_description Check RabbitMQ invites consumers service_description Check RabbitMQ invites consumers
hostgroup_name frontends
check_command check_rabbitmq_consumers!invites check_command check_rabbitmq_consumers!invites
# Workaround weird checks 40s after first error causing alerts
# from a single failure because cron hasn't run again yet
max_check_attempts 3
contact_groups admins
} }
define service { define service {
use generic-service use rabbitmq-consumer-service
service_description Check RabbitMQ digest email consumers service_description Check RabbitMQ digest digest_emails consumers
hostgroup_name frontends
check_command check_rabbitmq_consumers!digest_emails check_command check_rabbitmq_consumers!digest_emails
# Workaround weird checks 40s after first error causing alerts
# from a single failure because cron hasn't run again yet
max_check_attempts 3
contact_groups admins
} }
define service { define service {
use generic-service use rabbitmq-consumer-service
service_description Check RabbitMQ email mirror consumers service_description Check RabbitMQ email_mirror consumers
hostgroup_name frontends
check_command check_rabbitmq_consumers!email_mirror check_command check_rabbitmq_consumers!email_mirror
# Workaround weird checks 40s after first error causing alerts
# from a single failure because cron hasn't run again yet
max_check_attempts 3
contact_groups admins
} }
define service { define service {
use generic-service use rabbitmq-consumer-service
service_description Check RabbitMQ missedmessage mobile notifications consumers service_description Check RabbitMQ missedmessage_mobile_notifications consumers
hostgroup_name frontends
check_command check_rabbitmq_consumers!missedmessage_mobile_notifications check_command check_rabbitmq_consumers!missedmessage_mobile_notifications
# Workaround weird checks 40s after first error causing alerts
# from a single failure because cron hasn't run again yet
max_check_attempts 3
contact_groups admins
} }
define service { define service {
use generic-service use rabbitmq-consumer-service
service_description Check RabbitMQ missedmessage email consumers service_description Check RabbitMQ missedmessage_emails consumers
hostgroup_name frontends
check_command check_rabbitmq_consumers!missedmessage_emails check_command check_rabbitmq_consumers!missedmessage_emails
# Workaround weird checks 40s after first error causing alerts
# from a single failure because cron hasn't run again yet
max_check_attempts 3
contact_groups admins
} }
define service { define service {
use generic-service use rabbitmq-consumer-service
service_description Check RabbitMQ user activity consumers service_description Check RabbitMQ user_activity consumers
hostgroup_name frontends
check_command check_rabbitmq_consumers!user_activity check_command check_rabbitmq_consumers!user_activity
# Workaround weird checks 40s after first error causing alerts
# from a single failure because cron hasn't run again yet
max_check_attempts 3
contact_groups admins
} }
define service { define service {