[project @ peter@palfrader.org-20080203232346-2vz8h629awzboghh]
[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
15
16 #############################
17 # host groups
18 #
19 # hostgroups ircd and all are automatically defined
20 #
21 #############################
22 hostgroups:
23   computers:
24     alias: computers
25
26 #############################
27 # services
28 #############################
29 services:
30   -
31     name: PING
32     check: "check_ping!300.0,20%!600.0,40%"
33     hostgroups: all
34
35  ############ Services ############
36  ###
37
38  ############ Disk Usage ############
39  ####
40   -
41     name: disk usage on /
42     nrpe: "/usr/lib/nagios/plugins/check_disk 60 80 /"
43     hostgroups: computers
44
45  ############ All Computers ############
46  ####
47   #-
48   #  name: apt - security updates
49   #  nrpe: "/usr/local/bin/nagios-check-apt-updates --warnifupdates"
50   #  hostgroups: computers
51   #  normal_check_interval: 480
52   #  notification_interval: 480
53   #  max_check_attempts: 4
54   #  retry_check_interval: 12
55  ####
56   -
57     name: users
58     nrpe: "/usr/lib/nagios/plugins/check_users 30 35"
59     hostgroups: computers
60  ####
61   -
62     name: load
63     nrpe: "/usr/lib/nagios/plugins/check_load -w 12,10,8 -c 22,18,14"
64     hostgroups: computers
65  ####
66   -
67     name: processes - zombies
68     nrpe: "/usr/lib/nagios/plugins/check_procs 5 10 -s Z"
69     hostgroups: computers
70  ####
71   -
72     name: processes - total
73     nrpe: "/usr/lib/nagios/plugins/check_procs 620 700"
74     hostgroups: computers
75  ####
76   -
77     name: swap usage - percent
78     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20% -c 10%"
79     hostgroups: computers
80  ####
81   -
82     name: swap usage - mb
83     nrpe: "/usr/lib/nagios/plugins/check_swap -w 20000 -c 5000"
84     hostgroups: computers
85  ####
86   -
87     name: process - getty
88     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:8 -c 1: -u root -C getty -a /sbin/getty"
89     hostgroups: computers
90  ####
91   -
92     name: process - inetd
93     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C inetd -a '/usr/sbin/inetd'"
94     hostgroups: computers
95  ####
96   -
97     name: process - sshd
98     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:20 -c 1: -u root -C sshd -a '/usr/sbin/sshd'"
99     hostgroups: computers
100   -
101     name: "network service - sshd"
102     check: check_ssh
103     hostgroups: computers
104     depends: process - sshd
105     normal_check_interval:  60
106     notification_interval:  60
107  ####
108   -
109     name: process - udev
110     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C udevd -a 'udevd'"
111     hostgroups: computers
112  ####
113   -
114     name: network service - nrpe
115     check: check_tcp!5666
116     hostgroups: computers
117     max_check_attempts: -1
118   -
119     name: process - nrpe
120     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'"
121     hostgroups: computers
122     depends: network service - nrpe
123  ###
124   -
125     name: process - munin-node
126     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:2 -c 1: -u root -C munin-node -a '/usr/sbin/munin-node'"
127     hostgroups: computers
128   -
129     name: network service - munin-node
130     check: check_tcp!4949
131     hostgroups: computers
132     depends: process - munin-node
133  ###
134   -
135     name: process - ntpd
136     # 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'"
137     # 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'"
138     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -C ntpd -a '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
139     hostgroups: computers
140   -
141     name: network service - ntp
142     check: check_ntp
143     hostgroups: computers
144     depends: process - ntpd
145  ###
146   -
147     name: process - atd
148     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u daemon -C atd -a /usr/sbin/atd"
149     hostgroups: computers
150  ###
151   -
152     name: process - cron
153     nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -c 1: -u root -C cron -a /usr/sbin/cron"
154     hostgroups: computers
155