[Pkg-nagios-devel] Bug#710356: [nagios3-core] No "scheduled downtime" retention

Cédric Jeanneret debian at tengu.ch
Thu May 30 07:29:54 UTC 2013


Package: nagios3-core
Version: 3.4.1-3
Severity: serious
Owner: pkg-nagios-devel at lists.alioth.debian.org

Hello,

I just installed the latest nagios3* on a debian Wheezy, and stumbled 
on a bad bug: the scheduled downtime event aren't kept when a restart or 
reload occurs.

Steps to reproduce:
1- install nagios3-core and deps
2- configure some checks on it
3- ensure you have this kind of configuration regarding retention:
retain_state_information=1
use_retained_program_state=1
use_retained_scheduling_info=1 # especially this one, of course ;)
retained_host_attribute_mask=0
retained_service_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
4- schedule a downtime for some host/service
5- wait for the scheduled icon to appear in the interface (in order to 
be sure it's taken in account)
6- reload (or restart) the nagios3 service on the server
7- refresh the check page - the icon is gone, there's only the 
auto-magic comment from nagios saying it's scheduled for a downtime 
until "…"

You can check in the retention file (/var/lib/nagios3/retention.dat by 
default), there is a servicedowntime (hostdowntime) at the end of the 
file.

Acknowledging a service/host problem does work, and is kept during a 
restart or a reload.

After some researches, I stumbled on this nagios resolved bug:
http://tracker.nagios.org/view.php?id=338

It seems there's a patch available since October 2012 on the SVN: 
"Fixed in svn with the supplied patch and will ship with the first 
version after 3.4.1" - it may be good to have a look at 3.4.2 (or 
something like that), as a major feature is currently broken.

Thank you in advance

Cheers,

C.



More information about the Pkg-nagios-devel mailing list