nagios_監控客服埠
阿新 • • 發佈:2019-02-03
儲存退出
繼續編輯 vim /etc/nagios/conf.d/192.168.1.113.cfg
增加如下內容:define service{
use generic-service
host_name 192.168.1.113
service_description check_load
check_command check_nrpe!check_load
max_check_attempts 5
normal_check_interval 1
}
define service{
use generic-service
host_name 192.168.1.113
service_description check_disk_hda1
check_command check_nrpe!check_hda1
max_check_attempts 5
normal_check_interval 1
}
define service{
use generic-service
host_name 192.168.1.113
service_description check_disk_hda2
check_command check_nrpe!check_hda2
max_check_attempts 5
normal_check_interval 1
}
儲存退出
說明: check_nrpe!check_load :這裡的check_nrpe就是在commands.cfg剛剛定義的,
繼續編輯 vim /etc/nagios/conf.d/192.168.1.113.cfg
增加如下內容:define service{
use generic-service
host_name 192.168.1.113
service_description check_load
check_command check_nrpe!check_load
max_check_attempts 5
normal_check_interval 1
}
define service{
use generic-service
host_name 192.168.1.113
service_description check_disk_hda1
check_command check_nrpe!check_hda1
max_check_attempts 5
normal_check_interval 1
}
define service{
use generic-service
host_name 192.168.1.113
service_description check_disk_hda2
check_command check_nrpe!check_hda2
max_check_attempts 5
normal_check_interval 1
}
儲存退出
說明: check_nrpe!check_load :這裡的check_nrpe就是在commands.cfg剛剛定義的,