Notification sent during host downtime

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
misterdev
Posts: 11
Joined: Mon Jan 21, 2013 5:07 am

Notification sent during host downtime

Post by misterdev »

Hello everybody

I am using Nagios in a professional environment, and I'm facing a problem. I tought that I understood how downtime works, but this problem shows that I don't...

Technical environment :
Nagios Core 3.4.1 on Ubuntu 8.04.

Here is my host configuration (and its template) :

Code: Select all

define host{
	host_name				HOST1
	use				TEMPLATE1
	alias			HOST1
	address			192.168.0.9
	max_check_attempts		3
	check_interval			1
	retry_interval			1
	passive_checks_enabled		0
	check_period			00h_-_24h_LMMJVSD
	contacts			CONTACT_SUPERVISION
	notification_interval		3
	notification_period		00h_-_24h_LMMJVSD
	notification_options		d,r,u,s
	notifications_enabled		1
}

define host{
	name			TEMPLATE1
	alias				TEMPLATE1
	check_command			check_host_alive_icmp!1500,100%!2000,100%
	max_check_attempts		1
	check_interval			2
	retry_interval			2
	active_checks_enabled		1
	passive_checks_enabled		0
	check_period			00h_-_24h_LMMJVSD
	notification_interval		0
	notification_period		00h_-_24h_LMMJVSD
	register			0
}
Scenario :
I've got a host : HOST1.
I shedule a downtime on this host : from 17/01/2013 04:00 to 19/01/2013 18:00.
I shut down this host on 17/01 around 20h.

Bug :
- I receive notification every 3 or 4 minutes.
- I see no log of these notifications in nagios.log

Following :
- Host1 is now up
- I remove the downtime
- I edit my nagios configuration : I remove "retry_interval" and "notification_interval"

Code: Select all

max_check_attempts		0
retry_interval			0
Remove line : notification_interval		3
- Restart nagios
- I shedule a downtime on this host : from 17/01/2013 21h17 to 19/01/2013 18:00.
- I receive a "DOWNTIME START" notification at 21h17 --> OK
- I shut down HOST1
- I wait till 21h23 --> no notification received.
- I launch a "FORCED HOST CHECK" --> no notification received.
- 21h26 : I edit the nagios configuration : "retry_interval = 2" and "notification_interval = 1"

Code: Select all

max_check_attempts		2
retry_interval			1
notification_interval		1
- Restart nagios
- 21h30, I receive a "HOST DOWN" notification

Conclusion : When i configure retry_interval and/or notification_interval, it seems to bypass the downtime configuration...

My question is :
Is this normal ? Are downtimes supposed to work like that ? Or is this some kind of bug ?

Information :
I found this in the nagios bugtracker :
http://tracker.nagios.org/view.php?id=294

Maybe it is related ?

Thanks in advance for your help.

Yours,

Misterdev.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification sent during host downtime

Post by scottwilkerson »

There were several downtime related bugs that were addressed and fixed in 3.4.4
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
misterdev
Posts: 11
Joined: Mon Jan 21, 2013 5:07 am

Re: Notification sent during host downtime

Post by misterdev »

Thanks for your reply (Sorry, I did not see it until today).

Well, I will try again with nagios 3.5.0 and I will post the results here.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Notification sent during host downtime

Post by slansing »

Great, let us know if it recurs.
misterdev
Posts: 11
Joined: Mon Jan 21, 2013 5:07 am

Re: Notification sent during host downtime

Post by misterdev »

It seems that all my problems are gone with nagios 3.5.0.

Thanks for your help.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Notification sent during host downtime

Post by slansing »

Excellent, locking as resolved!
Locked