From 8850496a034dd0cdfab2385fd9c8ead807c9cab6 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Sun, 8 Apr 2018 11:42:41 +0200 Subject: [PATCH] Add a hostgroup and a check for pybuildd, switch x86-grnet-01 and zani to it Signed-off-by: Aurelien Jarno --- config/nagios-master.cfg | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index 4cb2440..8b3b951 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -643,7 +643,7 @@ servers: x86-grnet-01: address: 194.177.211.203 parents: ganeti-grnet - hostgroups: computers, buildd, hassrvfs, kvmdomains, stretch, systemd-timesyncd + hostgroups: computers, pybuildd, hassrvfs, kvmdomains, stretch, systemd-timesyncd vittoria: address: 194.177.211.205 parents: ganeti-grnet @@ -818,7 +818,7 @@ servers: zani: address: 148.100.88.22 parents: gw-marist - hostgroups: computers, buildd, hassrvfs, stretch, incomingmailrelayed + hostgroups: computers, pybuildd, hassrvfs, stretch, incomingmailrelayed # }}} # {{{ gw-osuosl byrd: @@ -1113,6 +1113,8 @@ hostgroups: alias: machines running services buildd: alias: buildd systems + pybuildd: + alias: buildd systems running pybuildd general: alias: general purpose developer accessible machines @@ -2428,10 +2430,16 @@ services: nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:5 -u buildd -C buildd -a '/usr/bin/buildd'" hostgroups: buildd contact_groups: buildd + - + name: process - buildd + servicegroups: buildd + nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:5 -u buildd -C python3 -a 'buildd.py'" + hostgroups: pybuildd + contact_groups: buildd - name: processes - zombie schroot nrpe: "(/usr/lib/nagios/plugins/check_procs -a schroot -s Zs -c 0 > /dev/null || /usr/lib/nagios/plugins/check_procs -a schroot -s Zs -c 0) && /usr/lib/nagios/plugins/check_procs -a schroot -s ZNs -c 0" - hostgroups: buildd + hostgroups: buildd, pybuildd contact_groups: +buildd check_interval: 5 max_check_attempts: 24 -- 2.20.1