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=/usr/lib64/naemon-livestatus/livestatus.so @@TESTDIR@@/var/rw/live pnp_path=/opt/monitor/op5/pnp/perfdata
15 broker_module=/usr/lib64/merlin/merlin.so /opt/monitor/op5/merlin/merlin.conf
16 broker_module=/usr/lib64/command/command.so
18 precached_object_file=@@TESTDIR@@/var/objects.precache
19 check_result_path=@@TESTDIR@@/var/
21 log_file=@@LOGDIR@@/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
41 # cfg_dir is currently not supported by op5 Monitor Configure tool
43 object_cache_file=@@TESTDIR@@/var/objects.cache
45 resource_file=/opt/monitor/etc/resource.cfg
47 temp_file=@@TESTDIR@@/var/nagios.tmp
50 status_update_interval=900
55 enable_notifications=1
56 execute_service_checks=0
57 accept_passive_service_checks=1
59 accept_passive_host_checks=1
60 enable_event_handlers=1
63 # n = None - don't rotate the log
64 # h = Hourly rotation (top of the hour)
65 # d = Daily rotation (midnight every day)
66 # w = Weekly rotation (midnight on Saturday evening)
67 # m = Monthly rotation (midnight last day of month)
70 log_archive_path=/opt/monitor/var/archives
72 check_external_commands=1
74 command_file=@@TESTDIR@@/var/rw/nagios.cmd
75 query_socket=@@TESTDIR@@/var/rw/nagios.qh
79 lock_file=@@TESTDIR@@/var/nagios.lock
81 retain_state_information=0
82 state_retention_file=/dev/null
84 retention_update_interval=900
85 use_retained_program_state=0
86 use_retained_scheduling_info=0
88 # EVENT BROKER OPTIONS
89 event_broker_options=-1
97 log_initial_states=@@VERBOSE@@
98 log_external_commands=1
101 #global_host_event_handler=
102 #global_service_event_handler=
104 service_inter_check_delay_method=s
105 max_service_check_spread=30
106 service_interleave_factor=s
107 max_concurrent_checks=0
108 #check_result_reaper_frequency=
109 host_inter_check_delay_method=s
110 max_host_check_spread=30
114 # turned off since this is an Experimental feature according to the Nagios
116 auto_reschedule_checks=0
117 auto_rescheduling_interval=30
118 auto_rescheduling_window=180
120 use_agressive_host_checking=0
122 enable_flap_detection=1
123 low_service_flap_threshold=5.0
124 high_service_flap_threshold=20.0
125 low_host_flap_threshold=5.0
126 high_host_flap_threshold=20.0
128 #soft_state_dependencies=<1/0>
130 service_check_timeout=60
131 host_check_timeout=30
132 event_handler_timeout=30
133 notification_timeout=30
138 obsess_over_services=0
144 process_performance_data=1
145 service_perfdata_file=@@TESTDIR@@/var/perfdata.log
146 service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
147 service_perfdata_file_mode=a
148 service_perfdata_file_processing_interval=30
149 service_perfdata_file_processing_command=process-service-perfdata
151 check_for_orphaned_services=1
152 check_service_freshness=1
153 service_freshness_check_interval=60
154 check_host_freshness=0
155 host_freshness_check_interval=60
159 # us (MM-DD-YYYY HH:MM:SS)
160 # euro (DD-MM-YYYY HH:MM:SS)
161 # iso8601 (YYYY-MM-DD HH:MM:SS)
162 # strict-iso8601 (YYYY-MM-DDTHH:MM:SS)
168 # ILLEGAL OBJECT NAME CHARACTERS
169 # This options allows you to specify illegal characters that cannot
170 # be used in host names, service descriptions, or names of other
173 illegal_object_name_chars=`~!$%^&*|'"<>?,()=
175 illegal_macro_output_chars=`~$&|'"<>
177 use_regexp_matching=0
178 use_true_regexp_matching=0
181 admin_email=support@op5.com
182 admin_pager=support@op5.com
186 ## PNP config start ##
187 service_perfdata_file=/opt/monitor/var/service-perfdata
188 service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
189 service_perfdata_file_mode=a
190 service_perfdata_file_processing_interval=15
191 service_perfdata_file_processing_command=process-service-perfdata
193 host_perfdata_file=/opt/monitor/var/host-perfdata
194 host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
195 host_perfdata_file_mode=a
196 host_perfdata_file_processing_interval=15
197 host_perfdata_file_processing_command=process-host-perfdata