我收到所有服务的重要和警告电子邮件通知。我只想获取特定服务的电子邮件通知,例如磁盘使用情况、Windows 更新。
这些是我的服务:
定义服务{
hostgroup windows
use generic-service ; Name of service template to use
service_description CPU Load
check_command check_windows_cpu!60,90,95
}
定义服务{
hostgroup windows
use generic-service ; Name of service template to use
service_description Memory Usage
check_command check_windows!MEMUSE
}
定义服务{
hostgroup windows
use generic-service ; Name of service template to use
service_description C: Disk Space
check_command check_windows_disk
}
定义服务{
hostgroup windows
use generic-service ; Name of service template to use
service_description Windows Essential Updates
check_command check_win_essential_updates
} 定义服务{
hostgroup windows
use generic-service ; Name of service template to use
service_description Windows Updates
check_command check_available_updates
}
我的contact.cfg是:
定义联系人{
contact_name root
alias Root
service_notification_period 24x7
host_notification_period 24x7
service_notification_options c
host_notification_options d,r
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email sysadmin@example.com
}
有什么建议只从选定的服务中获取重要通知吗?
谢谢。