]> git.pld-linux.org Git - projects/nagios-config.git/blob - services.cfg
- add Id tags and vim modeline syntax
[projects/nagios-config.git] / services.cfg
1 ################################################################################
2 # Object config file for Nagios
3 # $Id: $
4 #
5 ################################################################################
6
7 ################################################################################
8 # SERVICE DEFINITIONS
9 #
10 ################################################################################
11
12 # Generic service definition template
13 define service {
14         name                            generic-service ; The 'name' of this service template,
15                                                         ; referenced in other service definitions
16         active_checks_enabled           1               ; Active service checks are enabled
17         passive_checks_enabled          1               ; Passive service checks are enabled/accepted
18         parallelize_check               1               ; Active service checks should be parallelized (disabling this can lead to major performance problems)
19         obsess_over_service             1               ; We should obsess over this service (if necessary)
20         check_freshness                 0               ; Default is to NOT check service 'freshness'
21         notifications_enabled           1               ; Service notifications are enabled
22         event_handler_enabled           1               ; Service event handler is enabled
23         flap_detection_enabled          1               ; Flap detection is enabled
24         failure_prediction_enabled      1               ; Failure prediction is enabled
25         process_perf_data               1               ; Process performance data
26         retain_status_information       1               ; Retain status information across program restarts
27         retain_nonstatus_information    1               ; Retain non-status information across program restarts
28
29         register                        0               ; DONT REGISTER THIS DEFINITION
30                                                         ; - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
31 }
32
33 # Define a service to "ping" the local machine
34 # Define a service to "ping" the local machine
35
36 define service {
37         use                     generic-service         ; Name of service template to use
38         host_name               localhost
39         service_description     PING
40         is_volatile             0
41         check_period            24x7
42         max_check_attempts      4
43         normal_check_interval   5
44         retry_check_interval    1
45         contact_groups          admins
46         notification_interval   960
47         notification_period     24x7
48         check_command           check_ping!100.0,20%!500.0,60%
49 }
50
51 # Define a service to check the disk space of the root partition
52 # on the local machine.  Warning if < 20% free, critical if
53 # < 10% free space on partition.
54 define service {
55         use                     generic-service         ; Name of service template to use
56         host_name               localhost
57         service_description     Root Partition
58         is_volatile             0
59         check_period            24x7
60         max_check_attempts      4
61         normal_check_interval   5
62         retry_check_interval    1
63         contact_groups          admins
64         notification_interval   960
65         notification_period     24x7
66         check_command           check_local_disk!20%!10%!/
67 }
68
69 # Define a service to check the number of currently logged in
70 # users on the local machine.  Warning if > 20 users, critical
71 # if > 50 users.
72 define service {
73         use                     generic-service         ; Name of service template to use
74         host_name               localhost
75         service_description     Current Users
76         is_volatile             0
77         check_period            24x7
78         max_check_attempts      4
79         normal_check_interval   5
80         retry_check_interval    1
81         contact_groups          admins
82         notification_interval   960
83         notification_period     24x7
84         check_command           check_local_users!20!50
85 }
86
87 # Define a service to check the number of currently running procs
88 # on the local machine.  Warning if > 250 processes, critical if
89 # > 400 users.
90 define service {
91         use                     generic-service         ; Name of service template to use
92         host_name               localhost
93         service_description     Total Processes
94         is_volatile             0
95         check_period            24x7
96         max_check_attempts      4
97         normal_check_interval   5
98         retry_check_interval    1
99         contact_groups          admins
100         notification_interval   960
101         notification_period     24x7
102         check_command           check_local_procs!250!400
103 }
104
105
106 # Define a service to check the load on the local machine.
107 define service {
108         use                     generic-service         ; Name of service template to use
109         host_name               localhost
110         service_description     Current Load
111         is_volatile             0
112         check_period            24x7
113         max_check_attempts      4
114         normal_check_interval   5
115         retry_check_interval    1
116         contact_groups          admins
117         notification_interval   960
118         notification_period     24x7
119         check_command           check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
120 }
121
122 # vim:ts=8:sw=8:syn=nagios
This page took 0.533765 seconds and 3 git commands to generate.