「Nagiosの標準マクロ」の版間の差分
提供: Nagios 3翻訳プロジェクト Wiki
(→マクロ有効性チャート Macro Availability Chart) |
(→マクロ有効性チャート Macro Availability Chart) |
||
619行目: | 619行目: | ||
!! class="MacroYes" | Yes<br> | !! class="MacroYes" | Yes<br> | ||
!! class="MacroYes" | Yes | !! class="MacroYes" | Yes | ||
+ | |||
+ | |- | ||
+ | | | ||
+ | |||
+ | |||
+ | |- class="Macros" | ||
+ | !! class="Macros" | マクロ名 | ||
+ | !! class="Macros" | サービスチェック<br> | ||
+ | !! class="Macros" | サービス通知<br> | ||
+ | !! class="Macros" | ホストチェック<br> | ||
+ | !! class="Macros" | ホスト通知<br> | ||
+ | !! class="Macros" | サービスイベントハンドラと[http://oss.aspect-sys.co.jp/nagios_jp/configmain.html#ocsp_command OCSP] | ||
+ | !! class="Macros" | イベントハンドラと [http://oss.aspect-sys.co.jp/nagios_jp/configmain.html#ochp_command OCHP] | ||
+ | !! class="Macros" | サービスパーフォーマンスデータ | ||
+ | !! class="Macros" | ホストパーフォマンスデータ | ||
+ | |- | ||
+ | | colspan="9" class="MacroType" | サービスマクロ: | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicedesc | $SERVICEDESC$]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicedisplayname | $SERVICEDISPLAYNAME$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicestate | $SERVICESTATE$<br>]] | ||
+ | !! class="MacroYes" | Yes [[#note2 | <sup>2</sup>]]<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicestateid | $SERVICESTATEID$<br>]] | ||
+ | !! class="MacroYes" | Yes [[#note2 | <sup>2</sup>]]<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastservicestate | $LASTSERVICESTATE$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastservicestateid | $LASTSERVICESTATEID$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicestatetype | $SERVICESTATETYPE$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceattempt | $SERVICEATTEMPT$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#maxserviceattempts | $MAXSERVICEATTEMPTS$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceisvolatile | $SERVICEISVOLATILE$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceeventid | $SERVICEEVENTID$<br>]] | ||
+ | !! class="MacroYes" | Yes <br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastserviceeventid | $LASTSERVICEEVENTID$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceproblemid | $SERVICEPROBLEMID$<br>]] | ||
+ | !! class="MacroYes" | Yes <br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastserviceproblemid | $LASTSERVICEPROBLEMID$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicelatency | $SERVICELATENCY$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceexecutiontime | $SERVICEEXECUTIONTIME$<br>]] | ||
+ | !! class="MacroYes" | Yes [[#note2 | <sup>2</sup>]]<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceduration | $SERVICEDURATION$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicedurationsec | $SERVICEDURATIONSEC$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicedowntime | $SERVICEDOWNTIME$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicepercentchange | $SERVICEPERCENTCHANGE$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicegroupname | $SERVICEGROUPNAME$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicegroupnames | $SERVICEGROUPNAMES$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastservicecheck | $LASTSERVICECHECK$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastservicestatechange | $LASTSERVICESTATECHANGE$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastserviceok | $LASTSERVICEOK$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastservicewarning | $LASTSERVICEWARNING$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastserviceunknown | $LASTSERVICEUNKNOWN$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#lastservicecritical | $LASTSERVICECRITICAL$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceoutput | $SERVICEOUTPUT$<br>]] | ||
+ | !! class="MacroYes" | Yes [[#note2 | <sup>2</sup>]]<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#longserviceoutput | $LONGSERVICEOUTPUT$<br>]] | ||
+ | !! class="MacroYes" | Yes [[#note2 | <sup>2</sup>]]<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceperfdata | $SERVICEPERFDATA$<br>]] | ||
+ | !! class="MacroYes" | Yes [[#note2 | <sup>2</sup>]]<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicecheckcommand | $SERVICECHECKCOMMAND$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceackauthor | $SERVICEACKAUTHOR$]] [[#note8 | <sup>8</sup>]]<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceackauthorname | $SERVICEACKAUTHORNAME$]] [[#note8 | <sup>8</sup>]]<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceackauthoralias | $SERVICEACKAUTHORALIAS$]] [[#note8 | <sup>8</sup>]]<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceackcomment | $SERVICEACKCOMMENT$]] [[#note8 | <sup>8</sup>]]<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#serviceactionurl | $SERVICEACTIONURL$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicenotesurl | $SERVICENOTESURL$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | |||
+ | |- | ||
+ | !! class="MacroName" | [[#servicenotes | $SERVICENOTES$<br>]] | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No<br> | ||
+ | !! class="MacroYes" | Yes<br> | ||
+ | !! class="MacroNo" | No |
2010年9月6日 (月) 22:00時点における版
Nagiosで利用できる標準のマクロはここに記載されています。
カスタムメイドのためのオンデマンド・マクロとマクロについてはここで記述されます。
マクロの有効性 Macro Validity
マクロは全てのコマンド定義で使うことができますが、全てのマクロが特別な種類のコマンドで常に有効なわけではありません。
例えば、いくつかのマクロはサービス通知コマンドの間だけ有効ですが、他はホストチェックコマンドの間だけ有効なのかもしれません。
Nagiosが異なると認識して扱う10種類のコマンドがあります。
それらは以下の通りです:
- サービスチェック
- サービス通知
- ホストチェック
- ホスト通知
- サービスイベントハンドラ、そして/または、グローバルサービスイベントハンドラ
- ホストイベントハンドラ、そして/または、グローバルなホストイベントハンドラ
- OCSPコマンド
- OCHPコマンド
- サービスパーフォマンスデータコマンド
- ホストパーフォーマンスデータコマンド
以下のテーブルは現在Nagiosで利用可能な全マクロの簡単な説明とそれらが有効なコマンドの種類の一覧です。
もしマクロが正しくないコマンドの種類で使われるたとき、それは "" 文字で置き換えられます。
マクロがすべて大文字のキャラクタから出来ていて、$キャラクタで囲まれる事に注意する必要があります。
マクロ有効性チャート Macro Availability Chart
説明
No |
マクロは利用できません。 |
---|---|
Yes |
マクロは利用できます |
マクロ名 | サービスチェック |
サービス通知 |
ホストチェック |
ホスト通知 |
サービスイベントハンドラとOCSP | イベントハンドラと OCHP | サービスパーフォーマンスデータ | ホストパーフォマンスデータ |
---|---|---|---|---|---|---|---|---|
ホストマクロ: 3 | ||||||||
$HOSTNAME$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTDISPLAYNAME$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTALIAS$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTADDRESS$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTSTATE$ |
Yes |
Yes |
Yes 1 |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTSTATEID$ |
Yes |
Yes |
Yes 1 |
Yes |
Yes |
Yes |
Yes |
Yes |
$LASTHOSTSTATE$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$LASTHOSTSTATEID$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTSTATETYPE$ |
Yes |
Yes |
Yes 1 |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTATTEMPT$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$MAXHOSTATTEMPTS$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTEVENTID$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$LASTHOSTEVENTID$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTPROBLEMID$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$LASTHOSTPROBLEMID$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTLATENCY$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTEXECUTIONTIME$ |
Yes |
Yes |
Yes 1 |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTDURATION$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTDURATIONSEC$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTDOWNTIME$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTPERCENTCHANGE$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTGROUPNAME$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTGROUPNAMES$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$LASTHOSTCHECK$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$LASTHOSTSTATECHANGE$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$LASTHOSTUP$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$LASTHOSTDOWN$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$LASTHOSTUNREACHABLE$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTOUTPUT$ |
Yes |
Yes |
Yes 1 |
Yes |
Yes |
Yes |
Yes |
Yes |
$LONGHOSTOUTPUT$ |
Yes |
Yes |
Yes 1 |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTPERFDATA$ |
Yes |
Yes |
Yes 1 |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTCHECKCOMMAND$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTACKAUTHOR$ 8 |
No |
No |
No |
Yes |
No |
No |
No |
No |
$HOSTACKAUTHORNAME$ 8 |
No |
No |
No |
Yes |
No |
No |
No |
No |
$HOSTACKAUTHORALIAS$ 8 |
No |
No |
No |
Yes |
No |
No |
No |
No |
$HOSTACKCOMMENT$ 8 |
No |
No |
No |
Yes |
No |
No |
No |
No |
$HOSTACTIONURL$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTNOTESURL$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTNOTES$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$TOTALHOSTSERVICES$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$TOTALHOSTSERVICESOK$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$TOTALHOSTSERVICESWARNING$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$TOTALHOSTSERVICESUNKNOWN$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$TOTALHOSTSERVICESCRITICAL$ |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
| ||||||||
マクロ名 | サービスチェック |
サービス通知 |
ホストチェック |
ホスト通知 |
サービスイベントハンドラとOCSP | イベントハンドラと OCHP | サービスパーフォーマンスデータ | ホストパーフォマンスデータ |
ホストグループマクロ: | ||||||||
$HOSTGROUPALIAS$ 5 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTGROUPMEMBERS$ 5 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTGROUPNOTES$ 5 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTGROUPNOTESURL$ 5 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
$HOSTGROUPACTIONURL$ 5 |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
| ||||||||
マクロ名 | サービスチェック |
サービス通知 |
ホストチェック |
ホスト通知 |
サービスイベントハンドラとOCSP | イベントハンドラと OCHP | サービスパーフォーマンスデータ | ホストパーフォマンスデータ |
サービスマクロ:
| ||||||||
$SERVICEDESC$ | Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEDISPLAYNAME$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICESTATE$ |
Yes 2 |
Yes |
No |
No |
Yes |
No |
Yes |
No
|
$SERVICESTATEID$ |
Yes 2 |
Yes |
No |
No |
Yes |
No |
Yes |
No
|
$LASTSERVICESTATE$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$LASTSERVICESTATEID$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICESTATETYPE$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No
|
$SERVICEATTEMPT$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No
|
$MAXSERVICEATTEMPTS$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEISVOLATILE$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEEVENTID$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No
|
$LASTSERVICEEVENTID$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEPROBLEMID$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$LASTSERVICEPROBLEMID$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICELATENCY$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No
|
$SERVICEEXECUTIONTIME$ |
Yes 2 |
Yes |
No |
No |
Yes |
No |
Yes |
No
|
$SERVICEDURATION$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No
|
$SERVICEDURATIONSEC$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEDOWNTIME$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No
|
$SERVICEPERCENTCHANGE$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEGROUPNAME$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEGROUPNAMES$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$LASTSERVICECHECK$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$LASTSERVICESTATECHANGE$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$LASTSERVICEOK$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$LASTSERVICEWARNING$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$LASTSERVICEUNKNOWN$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$LASTSERVICECRITICAL$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEOUTPUT$ |
Yes 2 |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$LONGSERVICEOUTPUT$ |
Yes 2 |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEPERFDATA$ |
Yes 2 |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICECHECKCOMMAND$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICEACKAUTHOR$ 8 |
No |
Yes |
No |
No |
No |
No |
No |
No |
$SERVICEACKAUTHORNAME$ 8 |
No |
Yes |
No |
No |
No |
No |
No |
No |
$SERVICEACKAUTHORALIAS$ 8 |
No |
Yes |
No |
No |
No |
No |
No |
No |
$SERVICEACKCOMMENT$ 8 |
No |
Yes |
No |
No |
No |
No |
No |
No |
$SERVICEACTIONURL$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICENOTESURL$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |
$SERVICENOTES$ |
Yes |
Yes |
No |
No |
Yes |
No |
Yes |
No |