Имеется Nagios 3.2.2
Конфигурация темплейта сервиса следующая:
Код: Выделить всё
parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems)
obsess_over_service 1
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 0 ; Flap detection is enabled
process_perf_data 1 ; Process performance data
retain_status_information 0 ; Retain status information across program restarts
retain_nonstatus_information 0 ; Retain non-status information across program restarts
is_volatile 0 ; The service is not volatile
check_period hpium_24x7 ; The service can be checked at any time of the day
max_check_attempts 1 ; Re-check the service up to 3 times in order to determine its final (hard) state
normal_check_interval 3 ; Check the service every 10 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every two minutes until a hard state can be determined
contact_groups HPIUM_LOG_FILE ; Notifications get sent out to everyone in the 'admins' group
notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
notification_interval 120 ; Re-notify about service problems every hour
notification_period hpium_24x7 ; Notifications can be sent out at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!В конфигурации самого сервиса прописаны лишь эти перекрывающие темплейт переменные:
max_check_attempts 1
normal_check_interval 3
retry_check_interval 3
notification_interval 120
Проверку осуществляю посредством запуска удаленного сценария через ssh:
define command{
command_name check_by_ssh
command_line $USER1$/check_by_ssh -l **** -H $HOSTADDRESS$ -C $ARG1$ -t 200
}
Наблюдаю следующую проблему: периодически происходит наложение одной и той же проверки во времени одна на одну - как бы параллельный запуск одной и той же проверки, что приводит к ошибкам так как сценарий проверки не рассчитан на его параллельное использование. Я не могу понять, что вызывает параллельный запуск проверок исходя из текущей конфигурации, ведь интервал между проверками 3 минуты. Такое чувство, что где-то рядом стоит еще один сервер нагиоса и он так же использует этот скрипт и в определенное время они пересекаются.
Помогите, пожалуйста, разобраться.