您的位置:首页 > 移动开发 > IOS开发

Nagios中常见参数的含义

2016-03-02 11:01 393 查看
下面的这些参数的含义是我根据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_optionso = 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_optionso = 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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: