## There are lots of different sections in this now-enormous file
## Each one starts with a 'BEGIN' comment.


# BEGIN, check for the existance of processes
define service {
  host_name             value01
  service_description   Check for fedmsg-irc proc
  check_command         check_by_nrpe!check_fedmsg_irc_proc
  use                   defaulttemplate
}

define service {
  host_name             busgateway01
  service_description   Check for fedmsg-hub proc
  check_command         check_by_nrpe!check_fedmsg_hub_proc
  use                   defaulttemplate
}

define service {
  host_name             busgateway01
  service_description   Check for fedmsg-gateway proc
  check_command         check_by_nrpe!check_fedmsg_gateway_proc
  use                   defaulttemplate
}

define service {
  host_name             busgateway01
  service_description   Check for fedmsg-relay proc
  check_command         check_by_nrpe!check_fedmsg_relay_proc
  use                   defaulttemplate
}

define service {
  host_name             proxy01,proxy02,proxy03,proxy04,proxy06,proxy07,proxy08,proxy09,proxy05,proxy10,proxy11
  service_description   Check for existence fedmsg-gateway proc
  check_command         check_by_nrpe!check_fedmsg_gateway_proc
  use                   defaulttemplate
}

define service {
  host_name             anitya-frontend01
  service_description   Check for fedmsg-relay proc
  check_command         check_by_nrpe!check_fedmsg_relay_proc
  use                   defaulttemplate
}

define service {
  host_name             badges-backend01
  service_description   Check for fedmsg-hub proc
  check_command         check_by_nrpe!check_fedmsg_hub_proc
  use                   defaulttemplate
}

define service {
  host_name             summershum01
  service_description   Check for fedmsg-hub proc
  check_command         check_by_nrpe!check_fedmsg_hub_proc
  use                   defaulttemplate
}

define service {
  host_name             notifs-backend01
  service_description   Check for fedmsg-hub proc
  check_command         check_by_nrpe!check_fedmsg_hub_proc
  use                   defaulttemplate
}

define service {
  host_name             pkgs02
  service_description   Check for fedmsg-hub proc
  check_command         check_by_nrpe!check_fedmsg_hub_proc
  use                   defaulttemplate
}

define service {
  host_name             fedimg01
  service_description   Check for fedmsg-hub proc
  check_command         check_by_nrpe!check_fedmsg_hub_proc
  use                   defaulttemplate
}

define service {
  host_name             hotness01
  service_description   Check for fedmsg-hub proc
  check_command         check_by_nrpe!check_fedmsg_hub_proc
  use                   defaulttemplate
}


# Odd one, check for the supybot fedmsg plugin
define service {
  host_name             value01
  service_description   Check supybot fedmsg plugin
  check_command         check_by_nrpe!check_supybot_fedmsg_plugin
  use                   defaulttemplate
}


# BEGIN, check datanommer history
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent buildsys/koji messages
  check_command         check_by_nrpe!check_datanommer_buildsys
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent git messages
  check_command         check_by_nrpe!check_datanommer_git
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent bodhi messages
  check_command         check_by_nrpe!check_datanommer_bodhi
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent wiki messages
  check_command         check_by_nrpe!check_datanommer_wiki
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent compose messages
  check_command         check_by_nrpe!check_datanommer_compose
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent meetbot messages
  check_command         check_by_nrpe!check_datanommer_meetbot
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent fas messages
  check_command         check_by_nrpe!check_datanommer_fas
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent pkgdb messages
  check_command         check_by_nrpe!check_datanommer_pkgdb
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent fedoratagger messages
  check_command         check_by_nrpe!check_datanommer_fedoratagger
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent fedoraplanet messages
  check_command         check_by_nrpe!check_datanommer_planet
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent copr finished build messages
  check_command         check_by_nrpe!check_datanommer_copr
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent trac messages
  check_command         check_by_nrpe!check_datanommer_trac
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent askbot messages
  check_command         check_by_nrpe!check_datanommer_askbot
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent fedbadges messages
  check_command         check_by_nrpe!check_datanommer_fedbadges
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent fedocal messages
  check_command         check_by_nrpe!check_datanommer_fedocal
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent ansible messages
  check_command         check_by_nrpe!check_datanommer_ansible
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent anitya messages
  check_command         check_by_nrpe!check_datanommer_anitya
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent fedimg messages
  check_command         check_by_nrpe!check_datanommer_fedimg
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent hotness messages
  check_command         check_by_nrpe!check_datanommer_hotness
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent faf messages
  check_command         check_by_nrpe!check_datanommer_faf
  use                   defaulttemplate
}

# This one is retired since it times out all the time.  Too few messages.
#define service {
#  host_name             busgateway01
#  service_description   Check datanommer for recent nuancier messages
#  check_command         check_by_nrpe!check_datanommer_nuancier
#  use                   defaulttemplate
#}


# These have yet to be deployed
#define service {
#  host_name             busgateway01
#  service_description   Check datanommer for recent mailman messages
#  check_command         check_by_nrpe!check_datanommer_mailman
#  use                   defaulttemplate
#}
#define service {
#  host_name             busgateway01
#  service_description   Check datanommer for recent bugzilla messages
#  check_command         check_by_nrpe!check_datanommer_bugzilla
#  use                   defaulttemplate
#}

define service {
  host_name             busgateway01
  service_description   Check datanommer for recent summershum messages
  check_command         check_by_nrpe!check_datanommer_summershum
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent jenkins messages
  check_command         check_by_nrpe!check_datanommer_jenkins
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent github messages
  check_command         check_by_nrpe!check_datanommer_github
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent kerneltest messages
  check_command         check_by_nrpe!check_datanommer_kerneltest
  use                   defaulttemplate
}
define service {
  host_name             busgateway01
  service_description   Check datanommer for recent fmn messages
  check_command         check_by_nrpe!check_datanommer_fmn
  use                   defaulttemplate
}


# BEGIN, check consumers and producers
define service {
  host_name             busgateway01
  service_description   Check fedmsg consumers and producers hub
  check_command         check_by_nrpe!check_fedmsg_cp_busgateway_hub
  use                   defaulttemplate
}

define service {
  host_name             busgateway01
  service_description   Check fedmsg consumers and producers relay
  check_command         check_by_nrpe!check_fedmsg_cp_busgateway_relay
  use                   defaulttemplate
}

define service {
  host_name             busgateway01
  service_description   Check fedmsg consumers and producers gateway
  check_command         check_by_nrpe!check_fedmsg_cp_busgateway_gateway
  use                   defaulttemplate
}

define service {
  host_name             proxy01,proxy02,proxy03,proxy04,proxy06,proxy07,proxy08,proxy09,proxy05,proxy10,proxy11
  service_description   Check fedmsg consumers and producers gateway
  check_command         check_by_nrpe!check_fedmsg_cp_busgateway_gateway
  use                   defaulttemplate
}

define service {
  host_name             anitya-frontend01
  service_description   Check fedmsg consumers and producers relay
  check_command         check_by_nrpe!check_fedmsg_cp_anitya_relay
  use                   defaulttemplate
}

define service {
  host_name             value01
  service_description   Check fedmsg consumers and producers irc
  check_command         check_by_nrpe!check_fedmsg_cp_value
  use                   defaulttemplate
}

define service {
  host_name             pkgs02
  service_description   Check fedmsg consumers and producers hub
  check_command         check_by_nrpe!check_fedmsg_cp_pkgs
  use                   defaulttemplate
}

define service {
  host_name             summershum01
  service_description   Check fedmsg consumers and producers hub
  check_command         check_by_nrpe!check_fedmsg_cp_summershum
  use                   defaulttemplate
}

define service {
  host_name             badges-backend01
  service_description   Check fedmsg consumers and producers hub
  check_command         check_by_nrpe!check_fedmsg_cp_badges_backend
  use                   defaulttemplate
}

define service {
  host_name             notifs-backend01
  service_description   Check fedmsg consumers and producers hub
  check_command         check_by_nrpe!check_fedmsg_cp_notifs_backend
  use                   defaulttemplate
}

define service {
  host_name             bugzilla2fedmsg01
  service_description   Check fedmsg consumers and producers hub
  check_command         check_by_nrpe!check_fedmsg_cp_bugzilla2fedmsg
  use                   defaulttemplate
}

define service {
  host_name             fedimg01
  service_description   Check fedmsg consumers and producers hub
  check_command         check_by_nrpe!check_fedmsg_cp_fedimg_backend
  use                   defaulttemplate
}

define service {
  host_name             hotness01
  service_description   Check fedmsg consumers and producers hub
  check_command         check_by_nrpe!check_fedmsg_cp_hotness_backend
  use                   defaulttemplate
}


# BEGIN exceptions counter
define service {
  host_name             busgateway01
  service_description   Check fedmsg-hub consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_busgateway_hub
  use                   defaulttemplate
}

define service {
  host_name             busgateway01
  service_description   Check fedmsg-relay consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_busgateway_relay
  use                   defaulttemplate
}

define service {
  host_name             busgateway01
  service_description   Check fedmsg-gateway consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_busgateway_gateway
  use                   defaulttemplate
}

define service {
  host_name             proxy01,proxy02,proxy03,proxy04,proxy06,proxy07,proxy08,proxy09,proxy05,proxy10,proxy11
  service_description   Check fedmsg-gateway consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_busgateway_gateway
  use                   defaulttemplate
}

define service {
  host_name             anitya-frontend01
  service_description   Check fedmsg-relay consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_anitya_relay
  use                   defaulttemplate
}

define service {
  host_name             value01
  service_description   Check fedmsg-irc consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_value
  use                   defaulttemplate
}

define service {
  host_name             pkgs02
  service_description   Check fedmsg-hub consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_pkgs
  use                   defaulttemplate
}

define service {
  host_name             summershum01
  service_description   Check fedmsg-hub consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_summershum
  use                   defaulttemplate
}

define service {
  host_name             badges-backend01
  service_description   Check fedmsg-hub consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_badges_backend
  use                   defaulttemplate
}

define service {
  host_name             notifs-backend01
  service_description   Check fedmsg-hub consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_notifs_backend
  use                   defaulttemplate
}

define service {
  host_name             bugzilla2fedmsg01
  service_description   Check fedmsg-hub consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_bugzilla2fedmsg
  use                   defaulttemplate
}

define service {
  host_name             fedimg01
  service_description   Check fedmsg-hub consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_fedimg_backend
  use                   defaulttemplate
}

define service {
  host_name             hotness01
  service_description   Check fedmsg-hub consumers exceptions
  check_command         check_by_nrpe!check_fedmsg_cexceptions_hotness_backend
  use                   defaulttemplate
}


# BEGIN backlog checking
define service {
  host_name             busgateway01
  service_description   Check fedmsg-hub consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_busgateway_hub
  use                   defaulttemplate
}

define service {
  host_name             busgateway01
  service_description   Check fedmsg-relay consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_busgateway_relay
  use                   defaulttemplate
}

define service {
  host_name             busgateway01
  service_description   Check fedmsg-gateway consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_busgateway_gateway
  use                   defaulttemplate
}

define service {
  host_name             proxy01,proxy02,proxy03,proxy04,proxy06,proxy07,proxy08,proxy09,proxy05,proxy10,proxy11
  service_description   Check fedmsg-gateway consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_busgateway_gateway
  use                   defaulttemplate
}

define service {
  host_name             anitya-frontend01
  service_description   Check fedmsg-relay consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_anitya_relay
  use                   defaulttemplate
}

define service {
  host_name             value01
  service_description   Check fedmsg-irc consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_value
  use                   defaulttemplate
}

define service {
  host_name             pkgs02
  service_description   Check fedmsg-hub consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_pkgs
  use                   defaulttemplate
}

define service {
  host_name             summershum01
  service_description   Check fedmsg-hub consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_summershum
  use                   defaulttemplate
}

define service {
  host_name             badges-backend01
  service_description   Check fedmsg-hub consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_badges_backend
  use                   defaulttemplate
}

define service {
  host_name             notifs-backend01
  service_description   Check fedmsg-hub consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_notifs_backend
  use                   defaulttemplate
}

define service {
  host_name             bugzilla2fedmsg01
  service_description   Check fedmsg-hub consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_bugzilla2fedmsg
  use                   defaulttemplate
}

define service {
  host_name             fedimg01
  service_description   Check fedmsg-hub consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_fedimg_backend
  use                   defaulttemplate
}

define service {
  host_name             hotness01
  service_description   Check fedmsg-hub consumers backlog
  check_command         check_by_nrpe!check_fedmsg_cbacklog_hotness_backend
  use                   defaulttemplate
}


# A few producer checks go below here
define service {
  host_name             notifs-backend01
  service_description   Check when the FMN digest producer last ran
  check_command         check_by_nrpe!check_fedmsg_fmn_digest_last_ran
  use                   defaulttemplate
}

define service {
  host_name             notifs-backend01
  service_description   Check when the FMN confirmation producer last ran
  check_command         check_by_nrpe!check_fedmsg_fmn_confirm_last_ran
  use                   defaulttemplate
}
