1 ################################################################################
2 # object config file for Nagios
4 ################################################################################
6 ################################################################################
9 ################################################################################
11 # Generic service definition template
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
28 register 0 ; DONT REGISTER THIS DEFINITION
29 ; - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
32 # Define a service to "ping" the local machine
33 # Define a service to "ping" the local machine
36 use generic-service ; Name of service template to use
38 service_description PING
42 normal_check_interval 5
43 retry_check_interval 1
45 notification_interval 960
46 notification_period 24x7
47 check_command check_ping!100.0,20%!500.0,60%
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.
54 use generic-service ; Name of service template to use
56 service_description Root Partition
60 normal_check_interval 5
61 retry_check_interval 1
63 notification_interval 960
64 notification_period 24x7
65 check_command check_local_disk!20%!10%!/
68 # Define a service to check the number of currently logged in
69 # users on the local machine. Warning if > 20 users, critical
72 use generic-service ; Name of service template to use
74 service_description Current Users
78 normal_check_interval 5
79 retry_check_interval 1
81 notification_interval 960
82 notification_period 24x7
83 check_command check_local_users!20!50
86 # Define a service to check the number of currently running procs
87 # on the local machine. Warning if > 250 processes, critical if
90 use generic-service ; Name of service template to use
92 service_description Total Processes
96 normal_check_interval 5
97 retry_check_interval 1
99 notification_interval 960
100 notification_period 24x7
101 check_command check_local_procs!250!400
105 # Define a service to check the load on the local machine.
107 use generic-service ; Name of service template to use
109 service_description Current Load
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