請問一下,nagios報警郵件發送時間的設置問題?
目前services.cfg裡面的一個服務的設置如下:
define service{
host_name nginx-dns
service_description Linux-PHP-procs
check_command check_nrpe!check_php_procs
normal_check_interval 1
retry_check_interval 2
max_check_attempts 2
check_period 24x7
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
contact_groups web-server
}
按網上的說法是報警時間=1+(2*2) 即5分鐘發送一次
但是經過測試時每10分鐘發送一次,
現在想把報警郵件的時間設置的要求如下:
1,每1分鐘檢測一次服務,然後 retry_check為1分鐘,之後就發郵件報警;
或者大家也可以分享一下,線上部署nagios的設置頁可以啊,麻煩大家幫幫忙啊
《解決方案》
報警時間間隔是設置 notification_interval 10 這項;設置你想要隔多長時間發一次報警。