溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

nagios監控多個磁盤空間

發布時間:2020-06-04 14:22:48 來源:網絡 閱讀:1435 作者:wangfeng7399 欄目:移動開發

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監控多個磁盤空間

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女