1 ###############################################################################
3 # nagios.cfg - Main Configuration File for op5 Monitor
5 ###############################################################################
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
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
52 nagios_group=@@GROUP@@
54 enable_notifications=1
55 execute_service_checks=1
56 accept_passive_service_checks=1
58 accept_passive_host_checks=1
59 enable_event_handlers=1
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)
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
97 log_external_commands=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
113 # turned off since this is an Experimental feature according to the Nagios
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
137 obsess_over_services=0
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
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)
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
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
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