Escalations not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
partnernet
Posts: 13
Joined: Fri Apr 22, 2016 2:13 am

Escalations not working

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Escalations not working

Post 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"?
Former Nagios employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Escalations not working

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
partnernet
Posts: 13
Joined: Fri Apr 22, 2016 2:13 am

Re: Escalations not working

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Escalations not working

Post by rkennedy »

Ah! Should use cfg_dir :-)

Are we good to mark this as resolved?
Former Nagios Employee
Locked