nagios监控多个磁盘空间

发布时间:2020-06-04 14:22:48 作者:wangfeng7399
来源:网络 阅读:1429

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

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监控多个磁盘空间

推荐阅读:
  1. nagios 监控自身
  2. nagios监控服务

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

nagios 多个磁盘空间

上一篇:mysql如何备份与恢复数据

下一篇:关于redis在docker-compose中免密配置的讨论

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》