lsfilter: Add support for non-timestamp date formats
[ninja.git] / test / configs / all-host_service-states / etc / nagios.cfg.in
blob899ef1c73cba189be98a0069f2a0756ae053699a
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=@@LIBDIR@@/merlin/merlin.so @@TESTDIR@@/merlin.conf
15 broker_module=@@LIBDIR@@/naemon-livestatus/livestatus.so @@TESTDIR@@/live debug=1
16 broker_module=@@LIBDIR@@/command/command.so
18 precached_object_file=@@TESTDIR@@/var/objects.precache
19 check_result_path=@@TESTDIR@@/var/spool/checkresults
21 log_file=@@TESTDIR@@/var/nagios.log
23 cfg_file=timeperiods.cfg
24 cfg_file=contacts.cfg
25 cfg_file=hosts.cfg
26 cfg_file=services.cfg
27 cfg_file=checkcommands.cfg
28 cfg_file=misccommands.cfg
29 cfg_file=eventhandlers.cfg
30 cfg_file=contactgroups.cfg
31 cfg_file=hostgroups.cfg
32 cfg_file=servicegroups.cfg
33 cfg_file=hostextinfo.cfg
34 cfg_file=serviceextinfo.cfg
35 cfg_file=hostescalations.cfg
36 cfg_file=serviceescalations.cfg
37 cfg_file=hostdependencies.cfg
38 cfg_file=servicedependencies.cfg
40 # cfg_dir is currently not supported by op5 Monitor Configure tool
42 object_cache_file=@@TESTDIR@@/var/objects.cache
44 resource_file=resource.cfg
46 temp_file=@@TESTDIR@@/var/nagios.tmp
48 status_file=@@TESTDIR@@/var/status.log
49 status_update_interval=5
51 nagios_user=@@USER@@
52 nagios_group=@@GROUP@@
54 enable_notifications=1
55 execute_service_checks=1
56 accept_passive_service_checks=1
57 execute_host_checks=1
58 accept_passive_host_checks=1
59 enable_event_handlers=1
61 # LOG ROTATION METHOD
62 #   n   = None - don't rotate the log
63 #   h   = Hourly rotation (top of the hour)
64 #   d   = Daily rotation (midnight every day)
65 #   w   = Weekly rotation (midnight on Saturday evening)
66 #   m   = Monthly rotation (midnight last day of month)
67 log_rotation_method=m
69 log_archive_path=@@TESTDIR@@/var/archives
71 check_external_commands=1
73 command_file=@@TESTDIR@@/nagios.cmd
74 query_socket=@@TESTDIR@@/nagios.qh
78 lock_file=@@TESTDIR@@/var/nagios.lock
80 retain_state_information=1
81 state_retention_file=@@TESTDIR@@/var/status.sav
83 retention_update_interval=60
84 use_retained_program_state=1
85 use_retained_scheduling_info=1
87 # EVENT BROKER OPTIONS
88 event_broker_options=-1
89 #broker_module=
91 use_syslog=0
92 log_notifications=1
93 log_service_retries=1
94 log_host_retries=1
95 log_event_handlers=1
96 log_initial_states=1
97 log_external_commands=1
98 log_passive_checks=1
100 #global_host_event_handler=
101 #global_service_event_handler=
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 ##