红联Linux门户
Linux帮助

nagios里几个配置文件之间的关系?

发布时间:2011-04-17 08:51:31来源:红联作者:qiuzugen
请问nagios里这几个文件的对应关系:监控对象的定义文件(比如自己定义的host.cfg),template.cfg,commands.cfg,
host.cfg里的内容如下:
# Define for 192.168.8.127
define host{
use generic-host-----这里应该填template.cfg的哪个值呢?那么多值怎么选?
host_name 192.168.8.127
address 192.168.8.127
hostgroups web-servers
check_command check-host-alive!192.168.8.127-------这里的模块一定要和commands.cfg里对应吗?如何对应呢
max_check_attempts 5
check_period 24x7
notification_interval 10
notification_period 24x7
notification_options d,u,r
contacts nagios_tian
}
define service{
use generic-service
host_name 192.168.8.127
servicegroups web-services
service_description current cpu
check_command check_nrpe!192.168.8.127!check_cpu
max_check_attempts 5
check_period 24x7
process_perf_data 1
notifications_enabled 1
notification_interval 960
notification_period 24x7
notification_options w,u,c,r
contacts nagios_tian
}
define service{
use generic-service
host_name 192.168.8.127
servicegroups web-services
service_description current memory
check_command check_nrpe!192.168.8.127!check_memory
max_check_attempts 5
check_period 24x7
process_perf_data 1
notifications_enabled 1
notification_interval 960
notification_period 24x7
notification_options w,u,c,r
contacts nagios_tian
}
文章评论

共有 0 条评论