1 ################################################################################
2 # Object config file for Nagios
5 ################################################################################
7 ################################################################################
10 ################################################################################
12 # Generic service definition template
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
29 register 0 ; DONT REGISTER THIS DEFINITION
30 ; - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
33 # Define a service to "ping" the local machine
34 # Define a service to "ping" the local machine
37 use generic-service ; Name of service template to use
39 service_description PING
43 normal_check_interval 5
44 retry_check_interval 1
46 notification_interval 960
47 notification_period 24x7
48 check_command check_ping!100.0,20%!500.0,60%
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.
55 use generic-service ; Name of service template to use
57 service_description Root Partition
61 normal_check_interval 5
62 retry_check_interval 1
64 notification_interval 960
65 notification_period 24x7
66 check_command check_local_disk!20%!10%!/
69 # Define a service to check the number of currently logged in
70 # users on the local machine. Warning if > 20 users, critical
73 use generic-service ; Name of service template to use
75 service_description Current Users
79 normal_check_interval 5
80 retry_check_interval 1
82 notification_interval 960
83 notification_period 24x7
84 check_command check_local_users!20!50
87 # Define a service to check the number of currently running procs
88 # on the local machine. Warning if > 250 processes, critical if
91 use generic-service ; Name of service template to use
93 service_description Total Processes
97 normal_check_interval 5
98 retry_check_interval 1
100 notification_interval 960
101 notification_period 24x7
102 check_command check_local_procs!250!400
106 # Define a service to check the load on the local machine.
108 use generic-service ; Name of service template to use
110 service_description Current Load
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
122 # vim:ts=8:sw=8:syn=nagios