[project @ peter@palfrader.org-20080402232408-j2hfchl3hbv07fqf]
[mirror/dsa-nagios.git] / nagios-master.cfg
1 # Non comment lines are YAML
2 #
3 # Strings ought to be in double quotes, but it works in most cases if they aren't :)
4 #
5 # vim:set syntax=yaml:
6 ---
7 #############################
8 # hosts
9 #############################
10 servers:
11   bartok:
12     address: 82.195.75.91
13     #parents: bartok-gw
14     hostgroups: computers, syslog-ng-hosts, postfix-hosts
15
16 #############################
17 # host groups
18 #
19 # hostgroups ircd and all are automatically defined
20 #
21 #############################
22 hostgroups:
23   computers:
24     alias: computers
25   syslog-ng-hosts:
26     alias: syslog-ng-hosts
27     private: 1
28   postfix-hosts:
29     alias: postfix-hosts
30     private: 1
31
32 #############################
33 # services
34 #############################
35 services:
36   -
37     name: PING
38     check: "check_ping!300.0,20%!600.0,40%"
39     hostgroups: all
40
41  ############ Services ############
42  ###
43
44  ############ Disk Usage ############
45  ####
46   -
47     name: disk usage - all
48     nrpe: "/usr/lib/nagios/plugins/check_disk 90 95"
49     hostgroups: computers
50   -
51     name: disk usage on /
52     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
53     hostgroups: computers
54   -
55     name: disk usage on /var
56     nrpe: "/usr/lib/nagios/plugins/check_disk 50 75 /var"
57     hosts: bartok
58   -
59     name: disk usage on /org
60     nrpe: "/usr/lib/nagios/plugins/check_disk 80 90 /org"
61     hosts: bartok
62
63  ############ All Computers ############
64  ####
65   #-
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
73  ####
74   -
75     name: users
76     nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
77     hostgroups: computers
78  ####
79   -
80     name: load
81     nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
82     hostgroups: computers
83  ####
84   -
85     name: processes - zombies
86     nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
87     hostgroups: computers
88  ####
89   -
90     name: processes - total
91     nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
92     hostgroups: computers
93  ####
94   -
95     name: swap usage - percent
96     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
97     hostgroups: computers
98  ####
99   -
100     name: swap usage - mb
101     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
102     hostgroups: computers
103  ####
104   -
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
108  ####
109   -
110     name: process - sshd
111     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
112     hostgroups: computers
113   -
114     name: "network service - sshd"
115     check: check_ssh
116     hostgroups: computers
117     depends: process - sshd
118     normal_check_interval:  60
119     notification_interval:  60
120  ####
121   -
122     name: network service - nrpe
123     check: check_tcp!5666
124     hostgroups: computers
125     max_check_attempts: -1
126   -
127     name: process - nrpe
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
131  ###
132   -
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
136   -
137     name: network service - munin-node
138     check: check_tcp!4949
139     hostgroups: computers
140     depends: process - munin-node
141  ###
142   -
143     name: process - ntpd
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
148   -
149     name: network service - ntp
150     check: check_ntp
151     hostgroups: computers
152     depends: process - ntpd
153  ###
154   -
155     name: process - atd
156     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
157     hostgroups: computers
158  ###
159   -
160     name: process - cron
161     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
162     hostgroups: computers
163
164  ###
165   -
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
169
170  ###
171
172  ###
173   -
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
177   -
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
182   #-
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
187   -
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
192   -
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
197
198   -
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
203   -
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
208   -
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
213   -
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
218   -
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
223
224
225
226  ###
227   -
228     name: process - rngd
229     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C rngd  -a '/usr/sbin/rngd -r /dev/hwrng'"
230     hosts: bartok
231  ###
232   -
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'"
235     hosts: bartok