# Two things to check: # # 1) sec is alive # 2) sec is receiving data from nagios # # Do this by having nagios send an event to SEC that sec redirects # to a passive (non-scheduled, not actually passive) nagios service. # # # CHANGE: replace NAGIOS_HOST with the host name for your nagios host # replace ADMIN with your preferred contact group define service{ service_description SecAliveCheck host_name NAGIOS_HOST check_period 24x7 normal_check_interval 0 retry_check_interval 1 passive_checks_enabled 1 check_freshness 1 max_check_attempts 1 contact_groups ADMINS notification_period 24x7 notification_options w,u,c check_command check_dummy!2 "Critical freshness check called for $SERVICEDESC$." ec_active_action :critical ; updated from check_command mode 2 event generated by SecReport ; and reported to SecAliveCheck by sec core rule. freshness_threshold 120 ; older than 120 seconds is a problem. } # scheduled active check pings for sec. Also used by sec to report # critical and status/info data with the SEC process. define service{ service_description SecReport host_name NAGIOS_HOST check_period 24x7 normal_check_interval 1 retry_check_interval 1 passive_checks_enabled 1 check_freshness 0 max_check_attempts 1 contact_groups ADMINS notification_period 24x7 notification_options w,u,c check_command check_dummy!0 "Testing SEC." ec_active_action ok ; updated from check_command mode 2 event generated by SEC to ; SecAliveCheck stalking_options o,w,c } # provide a command channel to manage the neb module for sec # set it up to never run. It is updated manually by the user. define service{ service_description ZSecControl host_name NAGIOS_HOST check_period none normal_check_interval 3600 retry_check_interval 3600 passive_checks_enabled 1 check_freshness 0 max_check_attempts 1 contact_groups ADMINS notification_period 24x7 notification_interval 3600 notification_options w,u,c check_command check_dummy!2 "ERROR: check_command called" ec_active_action ok ; from check_command mode 2 event generated by sec to SecAliveCheck stalking_options o,w,c }