Nagiosのエスカレーションとワイルドカード

Nagiosのエスカレーションとワイルドカード

Nagios でエスカレーションを構成する際に問題が発生しました。次のエラーが表示されます:

Error: Could not expand hostgroups and/or hosts specified in host escalation (config file '/usr/local/nagios/etc/objects/escalations.cfg', starting on line 11)
   Error processing object config files!

escalations.cfg ファイルは次のようになります。

define hostescalation{
  host_name    *
  contact_groups    admins
  first_notification  1
  last_notification  3
  notification_interval  30
  escalation_period  24x7
  escalation_options  d,u
  }

define hostescalation{
  host_name    *
  contact_groups    suppliers
  first_notification  4
  last_notification  6
  notification_interval  60
  escalation_period  24x7
  escalation_options  d,u
  }

define serviceescalation{
  host_name    script.myprojects
  service_description  HTTP
  first_notification  1
  last_notification  3
  notification_interval  30
  contact_groups    admins
  }

define serviceescalation{
  host_name    script.myprojects
  service_description  HTTP
  first_notification  4
  last_notification  6
  notification_interval  60
  contact_groups    suppliers
  }

私が望んでいるのは、ワイルドカード (*) を使用してすべてのホストグループとそのメンバーを取得することです。これは機能しません。どなたか解決策を提供できますか? 定義が不足していますか? 不足している場合、この定義をどこにどのように配置しますか?

ありがとう!

答え1

このオブジェクト定義でワイルドカードを使用できるかどうかは不明です。しかし、できるuse_regexp_matching=0次の Nagios ドキュメントに従っ ていることを確認してください:http://nagios.sourceforge.net/docs/3_0/configmain.html#use_regexp_matching

関連情報