Nagios 2.5 error after change in config


#1

After removing 3 routers from our network we adjusted our files to reflect the change.
At first I removed the hosts completely, only to find that they were parents for several other machines.
I then brought back 1 of the machines and adjusted the names to point to that machine.
Now nagios tells me there is a problem in the escalations.cfg. And I’m stumped.

nagios@nagios:~/etc$ ~/bin/nagios -v ~/etc/nagios.cfg

Nagios 2.5
Copyright © 1999-2006 Ethan Galstad (nagios.org)
Last Modified: 07-13-2006
License: GPL

Reading configuration data…

Error: Could not expand services specified in service escalation (config file ‘/usr/local/nagios/etc/escalations.cfg’, starting on line 34)

***> One or more problems was encountered while processing the config files…

The file itself:

Last Modified: 07-05-2002 TL

Er staan aparte escalations voor Services en Hosts.

Host Escalation

; primary sms
define hostescalation {
host_name *
first_notification 2
last_notification 0
contact_groups sms
notification_interval 30
}

; backup sms
define hostescalation {
host_name *
first_notification 5
last_notification 0
contact_groups smsbackup
notification_interval 30
}

Service Escalation

; primary sms
define serviceescalation{
host_name *
service_description *
first_notification 2
last_notification 0
notification_interval 30
contact_groups sms
}

; backup sms
define serviceescalation{
host_name *
service_description *
first_notification 5
last_notification 0
notification_interval 30
contact_groups smsbackup
}

Any insights?


#2

You have probably left service descriptions of services associated to those removed hosts in serviceescalation definitions…

I have presumed you haven’t used * in real definitions, and that those you have posted here are only for example purposes


#3

Hi,

No, the files are exactly as you see them.

I have fixed the problem however. I’m still not sure why nagios had a problem with the escalations.cfg, but removing the 3 old hosts and all references to them has resolved the issue.