##############
config['hostgroups'].each_pair{ |name, hg|
next if hg['private']
+ throw "Empty hostgroup #{name}" if hg['_memberlist'].length == 0
set_complain_if_set hg, 'hostgroup_name', name , 'Hostgroup', name
set_complain_if_set hg, 'members' , hg['_memberlist'].join(","), 'Hostgroup', name
address: 195.71.99.193
parents: gw-ubc
hostgroups: routing-infrastructure
- gw-ball:
- address: 78.32.9.209
- parents: gw-ubc
- hostgroups: routing-infrastructure
gw-cst:
address: 213.188.99.215
parents: gw-ubc
address: 82.195.75.101
parents: unger
hostgroups: computers, service, hasbootfs, hassrvfs, postgres84-hosts, heavy-exim, kvmdomains
+ ball:
+ address: 82.195.75.70
+ parents: gw-man-da
+ hostgroups: computers, buildd, no-udev, hasbootfs, hashomefs, ntpsuckers
+ purcell:
+ address: 82.195.75.69
+ parents: gw-man-da
+ hostgroups: computers, buildd
master:
address: 70.103.162.29
parents: gw-telefonica
hostgroups: computers, buildd, hasbootfs, hashomefs
- ball:
- address: 78.32.9.213
- parents: gw-ball
- hostgroups: computers, buildd, no-udev, dialup, hasbootfs, hashomefs, ntpsuckers
-
zelenka:
address: 80.245.147.40
parents: gw-HP-ftc
private: 1
deadslow:
alias: Systems too slow to run any real checks
- dialup:
- alias: Systems with slow network
freebsd:
alias: freebsd
private: 1
name: PING
check: "check_ping!300.0,20%!600.0,40%"
hostgroups: pingable
- excludehostgroups: routing-infrastructure, dialup
+ excludehostgroups: routing-infrastructure
normal_check_interval: 5
max_check_attempts: 4
retry_check_interval: 1
-
name: PING
check: "check_ping!2000.0,60%!3000.0,80%"
- hostgroups: routing-infrastructure, dialup
+ hostgroups: routing-infrastructure
normal_check_interval: 5
max_check_attempts: 4
retry_check_interval: 1
name: process - monit
nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C monit -a '/usr/sbin/monit -d 300 -c /etc/monit/monitrc -s /var/lib/monit/monit.state'"
hostgroups: computers
+ excludehostgroups: squeeze
+ -
+ name: process - monit
+ nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:1 -u root -C monit -a '/usr/sbin/monit -c /etc/monit/monitrc -s /var/lib/monit/monit.state'"
+ hostgroups: squeeze
###
-
name: process - cpqarrayd