修正nagios主机配置文件
# cat 172.16.1.1.cfg
创新互联公司基于成都重庆香港及美国等地区分布式IDC机房数据中心构建的电信大带宽,联通大带宽,移动大带宽,多线BGP大带宽租用,是为众多客户提供专业中国电信成都枢纽中心报价,主机托管价格性价比高,为金融证券行业服务器托管,ai人工智能服务器托管提供bgp线路100M独享,G口带宽及机柜租用的专业成都idc公司。
define host{
use linux-server
host_name 172.16.1.1
alias 172.16.1.1
address 172.16.1.1
}
define service{
use generic-service
host_name 172.16.1.1
service_description check_ping
check_command check_ping!100.0,20%!200.0,50%
max_check_attempts 5
normal_check_interval 1
}
define service{
use generic-service
host_name 172.16.1.1
service_description check_ssh
check_command check_ssh
max_check_attempts 5
normal_check_interval 1
notification_interval 60
}
define service{
use generic-service
host_name 172.16.1.1
service_description check_http
check_command check_http
max_check_attempts 5
normal_check_interval 1
notification_interval 60
}
define service{
use generic-service
host_name 172.16.1.1
service_description Root Partition
check_command check_nrpe!check_root
}
define service{
use generic-service
host_name 172.16.1.1
service_description Current Users
check_command check_nrpe!check_users
}
define service{
use generic-service
host_name 172.16.1.1
service_description Total Processes
check_command check_nrpe!check_total_procs
}
define service{
use generic-service
host_name 172.16.1.1
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 172.16.1.1
service_description check_disk_opt
check_command check_nrpe!check_opt
max_check_attempts 5
normal_check_interval 1
}
define service{
use generic-service
host_name 172.16.1.1
service_description port 12345
check_command check_tcp!12345
}
define service{
use generic-service
host_name 172.16.1.1
service_description port 12310
check_command check_tcp!12310
}
define service{
use generic-service
host_name 172.16.1.1
service_description port 12306
check_command check_tcp!12306
}
define service{
use generic-service
host_name 172.16.1.1
service_description port 12307
check_command check_tcp!12307
}
define service{
use generic-service
host_name 172.16.1.1
service_description check_mem
check_command check_nrpe!check_mem
max_check_attempts 5
normal_check_interval 1
}
当前标题:修正nagios主机配置文件
标题来源:http://azwzsj.com/article/phdidg.html