Page 4 of 4

Re: "HOST UP" flood after Nagios Core update

PostPosted: Sun Jul 08, 2018 7:52 pm
by bokutin
Hi.

I also suffer from similar problems.

I have not changed the setting.

The problem started after the version was upgraded from 4.3.4 to 4.4.1.

I was flooded with a notification mail of PASSIVE HOST check.

### BEGIN EMAIL ###
Subject:** RECOVERY Host Alert: myserver1.tld is UP **
BODY:
***** Nagios *****

Notification Type: RECOVERY
Host: myserver1.tld
State: UP
Address: myserver1.tld
Info: PING OK - Packet loss = 0%, RTA = 5.88 ms

Date/Time: Mon Jul 9 09:22:06 JST 2018
### END EMAIL ###

I examined the cause.

In the case of the condition below, it seems to be different processing.

* PASSIVE HOST CHECK
* Host was UP.
* Host is still UP.
* passive_host_checks_are_soft=0

https://github.com/NagiosEnterprises/na ... ks.c#L2609
vs
https://github.com/NagiosEnterprises/na ... cks.c#L987

Perhaps it seems that behavior has changed by refactoring with the added function below.
https://github.com/NagiosEnterprises/na ... cks.c#L935

Downgrading to 4.3.4, the problem no longer occurs.

Thank you.

--
Tomohiro Hosaka

Re: "HOST UP" flood after Nagios Core update

PostPosted: Mon Jul 09, 2018 6:07 pm
by scottwilkerson
Just wanted to give a heads up, I believe this is fixed in the maint branch of the nagioscore project

https://github.com/NagiosEnterprises/nagioscore/tree/maint

Re: "HOST UP" flood after Nagios Core update

PostPosted: Wed Jul 11, 2018 6:29 am
by madsantos
scottwilkerson wrote:Just wanted to give a heads up, I believe this is fixed in the maint branch of the nagioscore project

https://github.com/NagiosEnterprises/nagioscore/tree/maint


Thank you Scott. I noticed that the commit wasn't successfully built, does that mean you still need to do some fixing first?
Cheers

Re: "HOST UP" flood after Nagios Core update

PostPosted: Wed Jul 11, 2018 8:43 am
by scottwilkerson
madsantos wrote:
scottwilkerson wrote:Just wanted to give a heads up, I believe this is fixed in the maint branch of the nagioscore project

https://github.com/NagiosEnterprises/nagioscore/tree/maint


Thank you Scott. I noticed that the commit wasn't successfully built, does that mean you still need to do some fixing first?
Cheers


No that was just the test suite from a previous commit, should have no affect, but waiting for that developer to get back from vacation to fix their tests.