设置全部监控项都开启邮件报警:

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则不发邮件报警

相关文章:

  • 2021-05-23
  • 2021-07-27
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-05-22
  • 2021-12-05
猜你喜欢
  • 2021-12-05
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-12-22
相关资源
相似解决方案