Re: [Nagios-devel] RFC: Downtime and flapping

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
Guest

Re: [Nagios-devel] RFC: Downtime and flapping

Post by Guest »

On 02/03/2011 11:59 PM, Andreas Ericsson wrote:
> On 02/03/2011 07:53 PM, Ton Voon wrote:
>> From the code, I can see that Nagios does not record any soft
>> non-OK states in this state history. Any objections if I add "host
>> or service in downtime" to that exception?
> None at all. In fact, +1 on doing so. This way, downtime makes all
> effects of statechanges void and null

Umh, not quite, I'm afraid. It means that hosts/services will emerge
from downtime with the history they had when they entered downtime
way-back-when - which may well be the non-OK or FLAPPING which prompted
you to schedule urgent repairs in the first place.

It IIUC also means that during the downtime, the CGI-bins will keep
displaying the *historic* flapping state, along with the *current*
host/service state.

Downtime disables notifications anyway, and there already is logic to
trigger actions when downtime ends (*). IMHO, the proper way to provide
a clean slate after a downtime would be to flush (**) the entire history
at that point.

(*) Notification type "s" - BTW,
http://nagios.sourceforge.net/docs/3_0/ ... ml#contact
lists services-"s" in the Definition Format but not in the Directive
Descriptions.

(**) Whether the bins should be reset to OK, PENDING,
last-before-downtime or the current post-downtime $*STATE$ (if one is
already available) is up for discussion ...

Regards,
J. Bern
--=20
Jochen Bern, Systemingenieur --- LINworks GmbH
Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt
PGP (1024D/4096g) FP =3D D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C2=
7
Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202
Unternehmenssitz Weiterstadt, Gesch=E4ftsf=FChrer Metin Dogan, Oliver Mic=
hel





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked