# # Esensors config files for # Nagios 2.1b # Adapted on 1/19/04 # Asaf Rapoport # This may not be perfect, but it works for me :-) # hosts.cfg ########################### # Enviromental Sensorts # ########################### define host{ host_name alias Heat, Humidity and Illumination tests address parents check_command check-host-alive max_check_attempts 20 process_perf_data 1 retain_nonstatus_information 0 contact_groups router-admins notification_interval 60 notification_period 24x7 notification_options d,u,r } ; ---------------------------------------------------------------- # hostgroups.cfg define hostgroup{ hostgroup_name Esensors alias Esensors HVAC sensor members } ; ---------------------------------------------------------------- # services.cfg ################################################################ # Enviromental Service definition # ################################################################ define service{ host_name service_description check-host-alive servicegroups esensors is_volatile 0 check_command check-host-alive max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 check_period 24x7 notification_interval 30 notifications_enabled 1 notification_period 24x7 notification_options w,c,r contact_groups sensor-admins } # check temp service definition template define service{ host_name service_description TEMPERATURE servicegroups esensors active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups sensor-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_temp!60/88!40/90 } # check humidity service definition template define service{ host_name service_description Humidity servicegroups esensors active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups sensor-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_humidity!20/70!10/80 } # check light service definition template define service{ host_name service_description Illumination servicegroups esensors active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups sensor-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_light!40/60!20/70 } define servicegroup{ servicegroup_name esensors alias Enviromental Monitoring members ,check-host-alive } ; -------------------------------------------------------------------------------- # checkcommands.cfg # 'check_temp' command definition define command{ command_name check_temp command_line $USER1$/check_em01.pl --type=temp --temp=$ARG1$,$ARG2$ $HOSTADDRESS$ } # 'check_humidity' command definition define command{ command_name check_humidity command_line $USER1$/check_em01.pl --type=hum --hum=$ARG1$,$ARG2$ $HOSTADDRESS$ } # 'check_light command definition define command{ command_name check_light command_line $USER1$/check_em01.pl --type=illum --illum=$ARG1$,$ARG2$ $HOSTADDRESS$ } ; -------------------------------------------------------------------------------- # hostextinfo.cfg define hostextinfo{ host_name notes /// Enviromental Monitoring /// notes_url http://nagios/nagios/hostinfo.pl? icon_image EM01.png icon_image_alt eSensors Sensor vrml_image EM01.png statusmap_image EM01.png 2d_coords 100,250 3d_coords 100.0,50.0,75.0 }