"HOST UP" flood after Nagios Core update

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.
bokutin
Posts: 1
Joined: Sun Jul 08, 2018 4:37 pm

Re: "HOST UP" flood after Nagios Core update

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: "HOST UP" flood after Nagios Core update

Post 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/na ... tree/maint
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
madsantos
Posts: 18
Joined: Fri Apr 27, 2018 5:26 am

Re: "HOST UP" flood after Nagios Core update

Post 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/na ... 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: "HOST UP" flood after Nagios Core update

Post 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/na ... 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked