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