Merge branch 'maint/7.0'
[ninja.git] / test / configs / templates / etc / nagios.cfg.in
blobd94784aebbe6086a24c4961f342928b341a6f41d
1 ###############################################################################
3 # nagios.cfg - Main Configuration File for op5 Monitor
5 ###############################################################################
7 #   NOTE:
8 #     Most variables here can not be configured from op5 Monitor Configure
9 #     interface. So if you need to do some changes to the main configuration
10 #     this is the right place.
12 ###############################################################################
14 broker_module=/opt/monitor/op5/merlin/merlin.so @@TESTDIR@@/etc/merlin.conf
15 broker_module=/usr/lib64/naemon-livestatus/livestatus.so /tmp/ninja-test/live
17 precached_object_file=@@TESTDIR@@/var/objects.precache
18 check_result_path=@@TESTDIR@@/var/spool/checkresults
20 log_file=@@TESTDIR@@/var/nagios.log
22 cfg_file=timeperiods.cfg
23 cfg_file=contacts.cfg
24 cfg_file=hosts.cfg
25 cfg_file=services.cfg
26 cfg_file=checkcommands.cfg
27 cfg_file=misccommands.cfg
28 cfg_file=eventhandlers.cfg
29 cfg_file=contactgroups.cfg
30 cfg_file=hostgroups.cfg
31 cfg_file=servicegroups.cfg
32 cfg_file=hostextinfo.cfg
33 cfg_file=serviceextinfo.cfg
34 cfg_file=hostescalations.cfg
35 cfg_file=serviceescalations.cfg
36 cfg_file=hostdependencies.cfg
37 cfg_file=servicedependencies.cfg
39 # cfg_dir is currently not supported by op5 Monitor Configure tool
41 object_cache_file=@@TESTDIR@@/var/objects.cache
43 resource_file=/opt/monitor/etc/resource.cfg
45 temp_file=@@TESTDIR@@/var/nagios.tmp
47 status_file=@@TESTDIR@@/var/status.log
48 status_update_interval=5
50 nagios_user=@@USER@@
51 nagios_group=@@GROUP@@
53 enable_notifications=1
54 execute_service_checks=1
55 accept_passive_service_checks=1
56 execute_host_checks=1
57 accept_passive_host_checks=1
58 enable_event_handlers=1
60 # LOG ROTATION METHOD
61 #   n   = None - don't rotate the log
62 #   h   = Hourly rotation (top of the hour)
63 #   d   = Daily rotation (midnight every day)
64 #   w   = Weekly rotation (midnight on Saturday evening)
65 #   m   = Monthly rotation (midnight last day of month)
66 log_rotation_method=m
68 log_archive_path=/opt/monitor/var/archives
70 check_external_commands=1
71 command_check_interval=-1
73 command_file=/tmp/ninja-test/nagios.cmd
77 lock_file=@@TESTDIR@@/var/nagios.lock
79 retain_state_information=1
80 state_retention_file=@@TESTDIR@@/var/status.sav
82 retention_update_interval=60
83 use_retained_program_state=1
84 use_retained_scheduling_info=1
86 # EVENT BROKER OPTIONS
87 event_broker_options=-1
88 #broker_module=
90 use_syslog=0
91 log_notifications=1
92 log_service_retries=1
93 log_host_retries=1
94 log_event_handlers=1
95 log_initial_states=1
96 log_external_commands=1
97 log_passive_checks=1
99 #global_host_event_handler=
100 #global_service_event_handler=
102 sleep_time=0.25
103 service_inter_check_delay_method=s
104 max_service_check_spread=30
105 service_interleave_factor=s
106 max_concurrent_checks=0
107 #check_result_reaper_frequency=
108 host_inter_check_delay_method=s
109 max_host_check_spread=30
111 interval_length=60
113 # turned off since this is an Experimental feature according to the Nagios
114 # documentation
115 auto_reschedule_checks=0
116 auto_rescheduling_interval=30
117 auto_rescheduling_window=180
119 use_agressive_host_checking=0
121 enable_flap_detection=1
122 low_service_flap_threshold=5.0
123 high_service_flap_threshold=20.0
124 low_host_flap_threshold=5.0
125 high_host_flap_threshold=20.0
127 #soft_state_dependencies=<1/0>
129 service_check_timeout=60
130 host_check_timeout=30
131 event_handler_timeout=30
132 notification_timeout=30
133 ocsp_timeout=5
134 #ochp_timeout=5
135 perfdata_timeout=5
137 obsess_over_services=0
138 #ocsp_command=
140 #obsess_over_host=0
141 #ochp_command=
143 process_performance_data=1
144 service_perfdata_file=@@TESTDIR@@/var/perfdata.log
145 service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
146 service_perfdata_file_mode=a
147 service_perfdata_file_processing_interval=30
148 service_perfdata_file_processing_command=process-service-perfdata
150 check_for_orphaned_services=1
151 check_service_freshness=1
152 service_freshness_check_interval=60
153 check_host_freshness=0
154 host_freshness_check_interval=60
157 # DATE FORMAT OPTION
158 #       us              (MM-DD-YYYY HH:MM:SS)
159 #       euro            (DD-MM-YYYY HH:MM:SS)
160 #       iso8601         (YYYY-MM-DD HH:MM:SS)
161 #       strict-iso8601  (YYYY-MM-DDTHH:MM:SS)
164 date_format=iso8601
167 # ILLEGAL OBJECT NAME CHARACTERS
168 # This options allows you to specify illegal characters that cannot
169 # be used in host names, service descriptions, or names of other
170 # object types.
172 illegal_object_name_chars=`~!$%^&*|'"<>?,()=
174 illegal_macro_output_chars=`~$&|'"<>
176 use_regexp_matching=0
177 use_true_regexp_matching=0
180 admin_email=support@op5.com
181 admin_pager=support@op5.com
183 daemon_dumps_core=1
185 ## PNP config start ##
186 service_perfdata_file=/opt/monitor/var/service-perfdata
187 service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
188 service_perfdata_file_mode=a
189 service_perfdata_file_processing_interval=15
190 service_perfdata_file_processing_command=process-service-perfdata
192 host_perfdata_file=/opt/monitor/var/host-perfdata
193 host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
194 host_perfdata_file_mode=a
195 host_perfdata_file_processing_interval=15
196 host_perfdata_file_processing_command=process-host-perfdata
197 ## PNP config end ##