Nagios中常见参数的含义

下面的这些参数的含义是我根据nagios的官方文档 https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/objectdefinitions.html 中我用到的部分总结的。


objectoptions
hostflap_detection_optionso = UP,
 d = DOWN,
and u = UNREACHABLE.
notification_optionsd = send notifications on a DOWN state, 
u = send notifications on an UNREACHABLE state,
 r = send notifications on recoveries (OK state), 
f = send notifications when the host starts and stopsflapping, 
and s = send notifications when scheduled downtime starts and ends.
If you specify n (none) as an option, no host notifications will be sent out. 
If you do not specify any notification options,
Nagios will assume that you want notifications to be sent out for all possible states. 
Example: If you specify d,r in this field, notifications will only be sent out when the host goes DOWN and when it recovers from a DOWN state
stalking_options o = stalk on UP states, 
d = stalk on DOWN states, 
and u = stalk on UNREACHABLE states
serviceinitial_stateo = OK,
w = WARNING, 
u = UNKNOWN, 
and c = CRITICAL.
flap_detection_optionso = OK states, 
w = WARNING states, 
c = CRITICAL states, 
u = UNKNOWN states
notification_optionsw = send notifications on a WARNING state,
u = send notifications on an UNKNOWN state, 
c = send notifications on a CRITICAL state, 
r = send notifications on recoveries (OK state), 
f = send notifications when the service starts and stops flapping, 
and s = send notifications when scheduled downtime starts and ends. 
If you specify n (none) as an option, no service notifications will be sent out.  
If you do not specify any notification options, Nagios will assume that you want 
notifications to be sent out for all possible states. 
Example: If you specify w,r in this field, 
notifications will only be sent out when the service goes into a WARNING state and when it recovers from a WARNING state.
stalking_options o = stalk on OK states, 
w = stalk on WARNING states, 
u = stalk on UNKNOWN states, 
and c = stalk on CRITICAL states
servicedependencynotification_failure_criteriao = fail on an OK state, 
w = fail on a WARNING state, 
u = fail on an UNKNOWN state, 
c = fail on a CRITICAL state, 
and p = fail on a pending state (e.g. the service has not yet been checked). 
If you specify n (none) as an option, the notification dependency will never fail and notifications for the dependent service will always be sent out. 
Example: If you specify w in this field, the notifications for the dependent service will not be sent out if the master service is in a WARNING state.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值