source: noc/nagios/services.cfg @ 899

Last change on this file since 899 was 899, checked in by quentin, 15 years ago
Use new hostgroups for service configuration
File size: 4.2 KB
RevLine 
[48]1define service {
2        name    scripts-service
3        use     generic-service
[535]4        max_check_attempts      6
[48]5        normal_check_interval   2
6        retry_check_interval    1
7        contact_groups  scripts
8        notification_interval   240
9        notification_period     24x7
10        notification_options    w,u,c,r
11        register 0
12}
13
14define service {
15        use                             scripts-service
[899]16        hostgroup_name                  scripts-all
[48]17        service_description             PING
[709]18        check_command                   check_ping!500.0,30%!3000.0,80%
[48]19        }
20
21
22define service {
23        use     scripts-service
[899]24        hostgroup_name  scripts-real
[48]25        service_description     SSH
26        check_command   check_ssh
27}
28
29define service {
30        use     scripts-service
[429]31        host_name       scripts
32        service_description     SSH
33        check_command   check_ssh
34        notification_period     afs
35        contact_groups  scripts,pagers
36}
37
38define service {
39        use     scripts-service
[48]40        hostgroup_name  scripts-http
41        service_description     HTTP
[429]42        notification_period     afs
43        check_command   check_http_heartbeat
44        contact_groups  scripts,pagers
[48]45}
46
47define service {
48        use     scripts-service
[670]49        hostgroup_name          scripts-https
[48]50        service_description     HTTPS
[429]51        notification_period     afs
52        check_command   check_https_cert!14
53        contact_groups  scripts,pagers
[48]54}
55
56define service {
57        use     scripts-service
[899]58        hostgroup_name          scripts-https
59        service_description     HTTPS-CERT
60        notification_period     afs
61        check_command   check_https_cert_444!14
62        contact_groups  scripts,pagers
63}
64
65define servicedependency{
66        host_name                       scripts
67        service_description             HTTP
68        dependent_host_name             scripts,scripts-cert,wildcard.scripts
69        dependent_service_description   HTTPS,HTTPS-CERT
70        execution_failure_criteria      n
71        notification_failure_criteria   w,u,c
72        }
73
74define servicedependency{
75        host_name                       scripts
76        service_description             HTTP
77        dependent_host_name             scripts-cert
78        dependent_service_description   HTTP
79        execution_failure_criteria      n
80        notification_failure_criteria   w,u,c
81        }
82
83
84define service {
85        use     scripts-service
[48]86        hostgroup_name  scripts-mail
87        service_description     POSTFIX
[535]88        check_command   check_remote_procs_u!1:128!1:256!postfix
[48]89}
90
91define service {
[709]92        use     scripts-service
93        hostgroup_name  scripts-user
94        service_description     NSCD
95        check_command   check_remote_procs_u!1:256!1:512!nscd
96}
97
98define service {
[899]99        use scripts-service
100        hostgroup_name scripts-user
101        service_description     AFS
102        check_command   check_remote_afs
103}
104
105define service {
106    use scripts-service
107    hostgroup_name scripts-user
108    service_description LDAP
109    check_command check_scripts_ldap
110}
111
112define service {
[429]113       use     scripts-service
114       hostgroup_name   scripts-mail
115       service_description      SMTP
116       check_command    check_smtp
117}
118
119define service {
120       use     scripts-service
121       host_name        scripts
[535]122       notification_period      afs
[429]123       service_description      SMTP
124       check_command    check_smtp
125}
126
127define service {
[48]128        use     scripts-service
129        hostgroup_name  scripts-cron
130        service_description     CRON
131        check_command   check_remote_procs_C!1:!1:!crond
132}
133
134define service {
135        use     scripts-service
[899]136        hostgroup_name  scripts-real
[48]137        service_description     DISK
138        check_command   check_remote_disk!10%!5%
139}
140
141define service {
142        use     scripts-service
143        host_name       b-m,o-f
144        service_description     LOAD
[678]145        check_command   check_remote_load!16:10:10!20:15:15
[48]146}
147
148define service {
149        use     scripts-service
150        hostgroup_name  mysql-masters,mysql-slaves
151        service_description     LOAD
[899]152        check_command   check_remote_load!16:10:10!20:15:15
[735]153        contact_groups  sql
[48]154}
155
156define service {
157        use     scripts-service
158        hostgroup_name  scripts-user
159        service_description     USERS
160        check_command   check_remote_users!50!25
161}
162
163define service {
164        use     scripts-service
165        hostgroup_name  scripts-mysql
166        service_description     MYSQL
167        check_command   check_tcp!3306
[735]168        contact_groups  sql,scripts,pagers
[48]169}
170
171define service {
172        use     scripts-service
[429]173        hostgroup_name  scripts-mysql
174        service_description     HTTP
175        notification_period     afs
176        check_command   check_http
[735]177        contact_groups  sql,scripts,pagers
[429]178}
179
180define service {
181        use     scripts-service
[48]182        hostgroup_name  mysql-masters
183        service_description     MYSQL-M
184        check_command   check_remote_mysql
[735]185        contact_groups  sql
[48]186}
187
188define service {
189        use     scripts-service
190        hostgroup_name  mysql-slaves
191        service_description     MYSQL-S
192        check_command   check_remote_mysql_slave
[735]193        contact_groups  sql
[48]194}
195
196define service {
197        use     scripts-service
198        host_name       b-m,o-f
199        service_description     CPU
200        notifications_enabled   0
[670]201        check_command   check_remote_procs_P!4!6!50
[48]202}
Note: See TracBrowser for help on using the repository browser.