Nagios-Eskalation und Wildcards

Nagios-Eskalation und Wildcards

Ich habe Probleme beim Konfigurieren von Eskalationen auf Nagios. Ich erhalte die folgende Fehlermeldung:

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!

Die Datei escalations.cfg sieht wie folgt aus:

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
  }

Ich möchte alle Hostgruppen und ihre Mitglieder mit dem Platzhalter (*) abrufen. Das funktioniert nicht. Kann jemand eine Lösung anbieten? Fehlt mir eine Definition und wenn ja, wo/wie gebe ich diese Definition ein?

Danke!

Antwort1

Es ist nicht klar, ob Sie in dieser Objektdefinition Platzhalter verwenden können. Aber angenommen, Siedürfen, stellen Sie sicher, dass Sie use_regexp_matching=0dieses Nagios-Dokument befolgen: http://nagios.sourceforge.net/docs/3_0/configmain.html#use_regexp_matching

verwandte Informationen