我阅读了文档并认为我的服务会在出现严重问题后 15 分钟提醒我,但我马上就收到了电子邮件。
/etc/nagios/nagios.cfg
command_check_interval=1
interval_length=60
cfg_file=/etc/nagios/objects/commands.cfg
cfg_file=/etc/nagios/objects/contacts.cfg
cfg_file=/etc/nagios/objects/timeperiods.cfg
cfg_file=/etc/nagios/objects/templates.cfg
cfg_dir=/etc/nagios/myconfig
/etc/nagios/myconfig/site/services.cfg
define service {
host_name realhost01
service_description Disk
servicegroups DISK
check_command check_nrpe!check_disk
use generic-service
notification_interval 0
}
/etc/nagios/objects/templates.cfg
define service{
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
first_notification_delay 15
contact_groups admins
notification_options u,c,r
notification_interval 0
notification_period 24x7
register 0
}
答案1
https://support.nagios.com/forum/viewtopic.php?f=7&t=27110说
“首次通知延迟”的时间是根据最后已知的 OK 状态计算的
那里的问题似乎和你的问题很相似,我以为用户名是一样的。请检查一下,看看是否有帮助?(无需奖励积分;这只是一个路过)