1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
vi /usr/local/nagios/etc/server/linuxsever.cfg
define host{
use
linux-server,host-pnp
; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
host_name
192.168.1.106
alias
192.168.1.106
address
192.168.1.106
}
define service{
use
generic-service,srv-pnp
; Name of service template to use
host_name
192.168.1.106
service_description
PING
check_command
check_ping!100.0,20%!500.0,60%
}
Ubuntu 10.04下构建Nagios监控平台(4)
内容版权声明:除非注明,否则皆为本站原创文章。