# you can disable an alarm notification by setting the 'to' line to: silent

 template: rabbitmq_node_avail_status_down
       on: rabbitmq.node_avail_status
    class: Errors
     type: Messaging
component: RabbitMQ
     calc: $down
    every: 10s
    units: status
     crit: $this > 0
  summary: RabbitMQ node is down (node ${label:node} cluster ${label:cluster_id})
     info: RabbitMQ node is down (node ${label:node} cluster ${label:cluster_id})
    delay: down 1m
       to: sysadmin

 template: rabbitmq_node_network_partition_status
       on: rabbitmq.node_network_partition_status
    class: Errors
     type: Messaging
component: RabbitMQ
     calc: $detected
    every: 10s
    units: status
     crit: $this > 0
  summary: RabbitMQ network partition detected (node ${label:node} cluster ${label:cluster_id})
     info: RabbitMQ network partition detected (node ${label:node} cluster ${label:cluster_id})
    delay: down 1m
       to: sysadmin

 template: rabbitmq_node_mem_alarm_status_triggered
       on: rabbitmq.node_mem_alarm_status
    class: Errors
     type: Messaging
component: RabbitMQ
     calc: $triggered
    every: 10s
    units: status
     warn: $this > 0
  summary: RabbitMQ mem alarm triggered (node ${label:node} cluster ${label:cluster_id})
     info: RabbitMQ mem alarm triggered (node ${label:node} cluster ${label:cluster_id})
    delay: down 1m
       to: sysadmin

 template: rabbitmq.node_disk_free_alarm_status_triggered
       on: rabbitmq.node_disk_free_alarm_status
    class: Errors
     type: Messaging
component: RabbitMQ
     calc: $triggered
    every: 10s
    units: status
     warn: $this > 0
  summary: RabbitMQ disk free alarm triggered (node ${label:node} cluster ${label:cluster_id})
     info: RabbitMQ disk free alarm triggered (node ${label:node} cluster ${label:cluster_id})
    delay: down 1m
       to: sysadmin

 template: rabbitmq_vhost_status_unhealthy
       on: rabbitmq.vhost_status	
    class: Errors
     type: Messaging
component: RabbitMQ
     calc: $stopped + $partial
    every: 10s
    units: status
     warn: $this > 0
  summary: RabbitMQ vhost is unhealthy (vhost ${label:vhost} cluster ${label:cluster_id})
     info: RabbitMQ vhost is unhealthy (vhost ${label:vhost} cluster ${label:cluster_id})
    delay: down 1m
       to: sysadmin

 template: rabbitmq_queue_status_minority
       on: rabbitmq.queue_status
    class: Errors
     type: Messaging
component: RabbitMQ
     calc: $minority
    every: 10s
    units: status
     warn: $this > 0
  summary: RabbitMQ queue insufficient online members (queue ${label:queue} node ${label:node} cluster ${label:cluster_id})
     info: RabbitMQ queue insufficient online members (queue ${label:queue} node ${label:node} cluster ${label:cluster_id})
    delay: down 1m
       to: sysadmin

 template: rabbitmq_queue_status_unhealthy
       on: rabbitmq.queue_status
    class: Errors
     type: Messaging
component: RabbitMQ
     calc: $stopped + $crashed + $down
    every: 10s
    units: status
     crit: $this > 0
  summary: RabbitMQ queue is unhealthy (queue ${label:queue} node ${label:node} cluster ${label:cluster_id})
     info: RabbitMQ queue is unhealthy (queue ${label:queue} node ${label:node} cluster ${label:cluster_id})
    delay: down 1m
       to: sysadmin
