ºìÁªLinuxÃÅ»§
Linux°ïÖú

nagiosÀX¸öÅäÖÃÎļþÖ®¼äµÄ¹Øϵ£¿

·¢²¼Ê±¼ä: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 ÌõÆÀÂÛ