2010/03/22

Windowsテキストログ監視

Zabbix 1.8.1
アイテム
タイプ:Zabbixエージェント(アクティブ)
キー:log[file,,,]
データ型:ログ
更新間隔:1
log[file,<regexp>,<encoding>,<maxlines>,<mode>]
file – full file name
regexp – regular expression for pattern
encoding - Code Page identifier
maxlines - Maximum number of new lines per second the agent will send to Zabbix Server or Proxy. This parameter overrides the 'MaxLinesPerSecond' option in zabbix_agentd.conf
mode - one of all (default), skip (skipping processing of older data)
Parameter mode will be supported from version 2.0.
ex. log[c:\atemp\testlog1.txt]
ex. log[c:\atemp\testlog1.txt,,"UTF-8",100]
トリガー
{w23h01:log[c:\atemp\testlog1.txt].str(ERROR)}#0
*次の行に、ERRORの文字がないとトリガーの条件に一致しないため、正常状態に変わるため、アクションによる通知が必須となる。