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
"HOST UP" flood after Nagios Core update
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: "HOST UP" flood after Nagios Core update
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
https://github.com/NagiosEnterprises/na ... tree/maint
Re: "HOST UP" flood after Nagios Core update
Thank you Scott. I noticed that the commit wasn't successfully built, does that mean you still need to do some fixing first?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
Cheers
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: "HOST UP" flood after Nagios Core update
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.madsantos wrote:Thank you Scott. I noticed that the commit wasn't successfully built, does that mean you still need to do some fixing first?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
Cheers