1 # Non comment lines are YAML
3 # Strings ought to be in double quotes, but it works in most cases if they aren't :)
7 #############################
9 #############################
14 hostgroups: computers, syslog-ng-hosts, postfix-hosts
16 #############################
19 # hostgroups ircd and all are automatically defined
21 #############################
26 alias: syslog-ng-hosts
32 #############################
34 #############################
38 check: "check_ping!300.0,20%!600.0,40%"
41 ############ Services ############
44 ############ Disk Usage ############
47 name: disk usage - all
48 nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
52 nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
55 name: disk usage on /var
56 nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
59 name: disk usage on /org
60 nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
63 ############ All Computers ############
66 # name: apt - security updates
67 # nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
68 # hostgroups: computers
69 # normal_check_interval: 480
70 # notification_interval: 480
71 # max_check_attempts: 4
72 # retry_check_interval: 12
76 nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
81 nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
85 name: processes - zombies
86 nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
90 name: processes - total
91 nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
95 name: swap usage - percent
96 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
100 name: swap usage - mb
101 nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
102 hostgroups: computers
105 name: process - getty
106 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
107 hostgroups: computers
111 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
112 hostgroups: computers
114 name: "network service - sshd"
116 hostgroups: computers
117 depends: process - sshd
118 normal_check_interval: 60
119 notification_interval: 60
122 name: network service - nrpe
123 check: check_tcp!5666
124 hostgroups: computers
125 max_check_attempts: -1
128 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:25 -c 1: -u nagios -C nrpe -a '/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d'"
129 hostgroups: computers
130 depends: network service - nrpe
133 name: process - munin-node
134 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
135 hostgroups: computers
137 name: network service - munin-node
138 check: check_tcp!4949
139 hostgroups: computers
140 depends: process - munin-node
144 # sarge: nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
145 # etch: nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u ntp -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
146 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
147 hostgroups: computers
149 name: network service - ntp
151 hostgroups: computers
152 depends: process - ntpd
156 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
157 hostgroups: computers
161 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
162 hostgroups: computers
166 name: process - syslog-ng
167 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C syslog-ng -a '/sbin/syslog-ng -p /var/run/syslog-ng.pid'"
168 hostgroups: syslog-ng-hosts
174 name: process - postfix - master
175 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C master -a '/usr/lib/postfix/master'"
176 hostgroups: postfix-hosts
178 name: process - postfix - qmgr
179 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C qmgr -a 'qmgr -l -t fifo -u'"
180 hostgroups: postfix-hosts
181 depends: process - postfix - master
183 # name: process - postfix - tlsmgr
184 # nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C tlsmgr -a 'tlsmgr -l -t fifo -u'"
185 # hostgroups: postfix-hosts
186 # depends: process - postfix - master
188 name: process - postfix - pickup
189 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C pickup -a 'pickup -l -t fifo -u -c'"
190 hostgroups: postfix-hosts
191 depends: process - postfix - master
193 name: process - postfix - anvil
194 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u postfix -C anvil -a 'anvil -l -t unix -u'"
195 hostgroups: postfix-hosts
196 depends: process - postfix - master
199 name: process - postfix - trivial-rewrite
200 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C trivial-rewrite -a 'trivial-rewrite -n rewrite -t unix -u -c'"
201 hostgroups: postfix-hosts
202 depends: process - postfix - master
204 name: process - postfix - proxymap
205 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C proxymap -a 'proxymap -t unix -u'"
206 hostgroups: postfix-hosts
207 depends: process - postfix - master
209 name: process - postfix - smtpd
210 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:10 -c 0:15 -u postfix -C smtpd -a 'smtpd -n smtp -t inet -u -c'"
211 hostgroups: postfix-hosts
212 depends: process - postfix - master
214 name: process - postfix - cleanup
215 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C cleanup -a 'cleanup -z -t unix -u -c'"
216 hostgroups: postfix-hosts
217 depends: process - postfix - master
219 name: process - postfix - local
220 nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:30 -c 0:50 -u postfix -C local -a 'local -t unix'"
221 hostgroups: postfix-hosts
222 depends: process - postfix - master
229 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd -a '/usr/sbin/rngd -r /dev/hwrng'"
233 name: process - sensord
234 nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C sensord -a '/usr/sbin/sensord -f daemon'"