nagios将多個主機放到一個組内步驟:
# vi ming.cfg
define host{
use linux-server
host_name ming
alias ming
address 192.168.1.14
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$
}
host_name ming2
alias ming2
address 192.168.1.15
define hostgroup{
hostgroup_name ubuntu
alias ubuntu
members ming,ming2 (主機間用","隔開)
将hostgroup_name改為ming,members也改為ming
define service {
use generic-service
host_name ming,ming2
service_description check_load
check_command check_nrpe!check_load
}
service_description check_users
check_command check_nrpe!check_users
service_description check_total
check_command check_nrpe!check_total_procs
service_description check_hda1
check_command check_nrpe!check_hda1
:wq
本文轉自linux部落格51CTO部落格,原文連結http://blog.51cto.com/yangzhiming/1537522如需轉載請自行聯系原作者
yangzhimingg