Page 1 of 1

Escalations not working

Posted: Tue Jun 07, 2016 10:16 am
by partnernet
Hello,

I am having a problem on configuring host and services escalations.

I have intalled Nagios Core 4.0.8 and it is working great in everything except escalations.
I tried configuring a service escalation following all the online guides I could find (like this https://assets.nagios.com/downloads/nag ... tions.html)
but they just won't work, all the notifications go to the service contact instead.
What I noticed is that in Nagios Web-gui System-->Configuration if I select service escalation there is absolutely nothing there (I have restarted the nagios service). Should the service escalation be put in some specific file or folder?


My code is below:

Code: Select all

define serviceescalation{
		host_name dummy
		service_description	test
		first_notification	2
		last_notification	5
		notification_interval	5
		contacts		andritsakiSMS
		}
		
define serviceescalation{
		host_name dummy
		service_description	test
		first_notification	3
		last_notification	5
		notification_interval	5
		contact_groups		testSMSusers
		}

Code: Select all

define host{
	use		windows-server
	host_name	dummy
	alias		dummy
	address xxx.xxx.xxx.xxx
	}
	
define service{
	use			generic-service,graphed-service
	host_name		dummy
	service_description	test
	check_command		check_nt!CPULOAD!-l 5,40,90
	}
I have searched online every article written for this but I can't get it to work.
Any help would be greatly apreciated.

Thanks,
Anna

Re: Escalations not working

Posted: Tue Jun 07, 2016 3:52 pm
by tmcdonald
A few questions:
  • What file are these being placed in?
  • Is that file included in nagios.cfg?
  • What do you get back if you grep the objects.cache file for "escalation"?

Re: Escalations not working

Posted: Tue Jun 07, 2016 4:01 pm
by lmiltchev
Do "andritsakiSMS" and contacts, members of the "testSMSusers" contact group receive other notifications? Can you show us the configs for the contacts/contact groups in question?

Re: Escalations not working

Posted: Wed Jun 08, 2016 3:58 am
by partnernet
tmcdonald thank you so much!

I was sure it would be something pretty simple.
The thing was that in nagios.cfg I had included my working folders so I didn't have to include every file, but about the escalations I decided to put it in a new folder that wasn't included...

Now its working great!
Thanks again,
Anna

Re: Escalations not working

Posted: Wed Jun 08, 2016 9:29 am
by rkennedy
Ah! Should use cfg_dir :-)

Are we good to mark this as resolved?