Nagios设置只监控不报警

时间:2023-12-24 14:29:19
设置全部监控项都开启邮件报警:

vim /usr/local/nagios/etc/nagios.cfg

设置
enable_notifications=1    1为开启,0为关闭
如个别监控项只监控不报警:
例如负载load只监控不报警
vim /usr/local/nagios/etc/objects/services.cfg
define service{
        use                             local-service-15x7,services-pnp
        host_name                       sy_frxz_center_121.10.138.31_遂溪新生代
        service_description             Check Load
        servicegroups                   check_load
        check_command                   check_nrpe!check_load!50,40,30!80,70,60
        notifications_enabled           0
        }
notifications_enabled设置为0则不发邮件报警