# RabbitMQ processes (for each host)

define service {
  host_name             rabbitmq01.iad2.fedoraproject.org
  service_description   Check bus server processes
  check_command         check_by_nrpe!check_rabbitmq_server
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq02.iad2.fedoraproject.org
  service_description   Check bus server processes
  check_command         check_by_nrpe!check_rabbitmq_server
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq03.iad2.fedoraproject.org
  service_description   Check bus server processes
  check_command         check_by_nrpe!check_rabbitmq_server
  use                   defaulttemplate
}

# RabbitMQ alarms (for each host)

define service {
  host_name             rabbitmq01.iad2.fedoraproject.org
  service_description   Check bus server alarms
  check_command         check_by_nrpe!check_rabbitmq_watermark
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq02.iad2.fedoraproject.org
  service_description   Check bus server alarms
  check_command         check_by_nrpe!check_rabbitmq_watermark
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq03.iad2.fedoraproject.org
  service_description   Check bus server alarms
  check_command         check_by_nrpe!check_rabbitmq_watermark
  use                   defaulttemplate
}

# The following results are cluster-wide, no need to run them on each cluster member

define service {
  host_name             rabbitmq01.iad2.fedoraproject.org
  service_description   Check bus cluster
  check_command         check_by_nrpe!check_rabbitmq_cluster
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq01.iad2.fedoraproject.org
  service_description   Check bus cluster connections
  check_command         check_by_nrpe!check_rabbitmq_connections
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq01.iad2.fedoraproject.org
  service_description   Check bus cluster overview
  check_command         check_by_nrpe!check_rabbitmq_overview
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq01.iad2.fedoraproject.org
  service_description   Check bus exchanges in /pubsub
  check_command         check_by_nrpe!check_rabbitmq_exchange_pubsub
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq01.iad2.fedoraproject.org
  service_description   Check bus exchanges in /public_pubsub
  check_command         check_by_nrpe!check_rabbitmq_exchange_public_pubsub
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq01.iad2.fedoraproject.org
  service_description   Check bus queues in /pubsub
  check_command         check_by_nrpe!check_rabbitmq_queue_pubsub
  use                   defaulttemplate
}

define service {
  host_name             rabbitmq01.iad2.fedoraproject.org
  service_description   Check bus queues in /public_pubsub
  check_command         check_by_nrpe!check_rabbitmq_queue_public_pubsub
  use                   defaulttemplate
}