37.2. plugins
37.2.1. nrpe plugins
neo@monitor:/etc/nagios3/hosts$ sudo cat www.example.com.cfg
define host{
use generic-host ; Inherit default values from a template
host_name www.example.com ; The name we're giving to this host
alias Some Remote Host ; A longer name associated with the host
address 172.16.1.10 ; IP address of the host
hostgroups http-servers ; Host groups this host is associated with
}
# NRPE disk check.
define service {
use generic-service
host_name www.example.com
service_description nrpe-disk
check_command check_nrpe_1arg!check_all_disks!172.16.1.10
}
define service {
use generic-service
host_name www.example.com
service_description nrpe-users
check_command check_nrpe_1arg!check_users!172.16.1.10
}
define service {
use generic-service
host_name www.example.com
service_description nrpe-swap
check_command check_nrpe_1arg!check_swap!172.16.1.10
}
define service {
use generic-service
host_name www.example.com
service_description nrpe-procs
check_command check_nrpe_1arg!check_total_procs!172.16.1.10
}
define service {
use generic-service
host_name www.example.com
service_description nrpe-load
check_command check_nrpe_1arg!check_load!172.16.1.10
}
define service {
use generic-service
host_name www.example.com
service_description nrpe-zombie_procs
check_command check_nrpe_1arg!check_zombie_procs!172.16.1.10
}
Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>comments powered by Disqus
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。