nagios监控多个磁盘空间-创新互联

ngios默认监控第一个磁盘分区,需要在service中定义多个监控项,如:

创新互联专业为企业提供澄海网站建设、澄海做网站、澄海网站设计、澄海网站制作等企业网站建设、网页设计与制作、澄海企业网站模板建站服务,10多年澄海做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。
define service {
                service_description                   check_disk3
                max_check_attempts                    3
                check_interval                        1
                retry_interval                        3
                notification_interval                 0
                notification_options                  w,u,c,r,f,s
                notifications_enabled                 1
                check_command                         check_nrpe!check_disk3
                check_period                          24x7
                notification_period                   24x7
                host_name                             AFA_EBS_DB
}
define service {
                service_description                   check_disk4
                max_check_attempts                    3
                check_interval                        1
                retry_interval                        3
                notification_interval                 0
                notification_options                  w,u,c,r,f,s
                notifications_enabled                 1
                check_command                         check_nrpe!check_disk4
                check_period                          24x7
                notification_period                   24x7
                host_name                             AFA_EBS_DB

然后再监控机上配置这些项即可,如:

command[check_disk3]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/emcpowera1
command[check_disk4]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/emcpowerb1
command[check_disk5]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sdb1
command[check_disk6]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/emcpowerc1

分别重启监控端和被监控段的服务即可

效果如下:

nagios监控多个磁盘空间

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网页题目:nagios监控多个磁盘空间-创新互联
文章路径:http://myzitong.com/article/dshgjj.html