[Nagios-devel] Minor Bug in the handling of current_attempt in services. checks.

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

[Nagios-devel] Minor Bug in the handling of current_attempt in services. checks.

Post by Guest »

Ethan.

I have found a minor bug with that when a service goes into a problem state,
the web-page immediatly displays it as a second failure.

Example.
I have servicecheck called HTTP, that has a max check attempts of 5.
When it fails the first check, the web-page states Warning 2/5 instead of
1/5.


I think this is due to a logic problem in checks.c line 1023 (nagios 1.0),
where an increment on the value is done, without checking if this is the
first time the service changes status. Thus it will go from OK 1/5 to
Warning 2/5 the first time it changes status.


At least this is where I *think* the problem lies.

/magnus
(definitely NOT a c -programmer ;)












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