序:本文没有太过的篇幅,但是掌握了这些技巧,可以使你配置起nagios的配置文件时会省时省力很多。
Nagios 一些小技巧
define service {
host_name nagios-server,rsync-89 ;注意以逗号分开
service_description check-host-alive
check_period 24x7
max_check_attempts 3
normal_check_interval 1
retry_check_interval 1
contact_groups ktm
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command check-host-alive
}
|
defin service {
hostgroup_name hostgroup1,hostgroup2
...........
}
|
defin service {
host_name *
...........
}
|
defin service {
host_name *,!host1,!host2
...........
}
|
define service {
host_name rsync-89
service_description check-host-alive
check_period 24x7
max_check_attempts 3
normal_check_interval 1
retry_check_interval 1
contact_groups ktm
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command check-host-alive
name host1
}
define service {
host_name nagios-server
use host1
}
|
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。