ngios默認(rèn)監(jiān)控第一個(gè)磁盤分區(qū),需要在service中定義多個(gè)監(jiān)控項(xiàng),如:
成都創(chuàng)新互聯(lián)總部坐落于成都市區(qū),致力網(wǎng)站建設(shè)服務(wù)有成都網(wǎng)站建設(shè)、成都網(wǎng)站制作、網(wǎng)絡(luò)營銷策劃、網(wǎng)頁設(shè)計(jì)、網(wǎng)站維護(hù)、公眾號(hào)搭建、微信平臺(tái)小程序開發(fā)、軟件開發(fā)等為企業(yè)提供一整套的信息化建設(shè)解決方案。創(chuàng)造真正意義上的網(wǎng)站建設(shè),為互聯(lián)網(wǎng)品牌在互動(dòng)行銷領(lǐng)域創(chuàng)造價(jià)值而不懈努力!
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
然后再監(jiān)控機(jī)上配置這些項(xiàng)即可,如:
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
分別重啟監(jiān)控端和被監(jiān)控段的服務(wù)即可
效果如下: