Nagios 监控 Linux邮件服务器(2)

define service{
       use          generic-service
       host_name    mail.com
       service_description     check-swap
      check_command           check_nrpe!check_swap
            }
define service{
       use          generic-service
       host_name    mail.com
       service_description     check-load
      check_command           check_nrpe!check_load
            }
define service{
       use          generic-service
       host_name    mail.com
       service_description     check-disk
       check_command           check_nrpe!check_hdb1
            }

define service{
       use          generic-service
       host_name    mail.com
       service_description     zombie_procs
      check_command           check_nrpe!check_zombie_procs
            }
define service{
       use          generic-service
       host_name    mail.com
       service_description     check-users
      check_command           check_nrpe!check_users
             }
define service{
       use          generic-service
       host_name    mail.com
       service_description     total_procs
      check_command           check_nrpe!check_total_procs
               }

[root@eric ~]# vim =/usr/local/nagios/etc/nagios.cfg

cfg_file=/usr/local/nagios/etc/objects/linux/mail.cfg
[root@eric ~]# service nagios restart

Nagios 监控 Linux邮件服务器

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyfdzs.html