Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've problems configuring escalations on nagios. I'm getting a the following error:

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!

The escalations.cfg file looks as follow:

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
  }

What I want is, get all hostgroups and their members using the wildcard (*). This is not working. Can anyone provide any solution? Am I missing any definition and if so, where/how to put this definition?

Thanks!

share|improve this question
    
nagios -V? nagios -v /path/to/nagios.cfg? –  quanta Aug 24 '12 at 14:26

1 Answer 1

up vote 1 down vote accepted

It's not clear whether you can use wildcards in this object definition. But assuming you can, make sure you have use_regexp_matching=0 per this Nagios doc: http://nagios.sourceforge.net/docs/3_0/configmain.html#use_regexp_matching

share|improve this answer
    
I've checked nagios.cfg. In this file 2 directives are availiable concerning to regexp_matching.. use_regexp_matching=1 use_true_regexp_matching=0 Should the `use_true_regexp_matching=0 be changed to 1? I didn't know about regexp matching on nagios at all. Thanks! –  val0x00ff Aug 24 '12 at 22:29
1  
1  
you need it set to "0" –  uSlackr Aug 26 '12 at 14:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.