NagiosEnterprises / nagioscore

Nagios Core
GNU General Public License v2.0
1.53k stars 445 forks source link

Offline installation hits infinite loop issue on startup #953

Closed HunnyPuns closed 4 days ago

HunnyPuns commented 6 months ago

User reported issue https://support.nagios.com/forum/viewtopic.php?p=356170#p356170

Apparently if Nagios Core cannot reach the internet, when it starts up, it will continuously loop over the updates check. Will chew up 100% of 1 CPU core while attempting to get to the internet.

Temporary work around: Set check_for_updates=0 in /usr/local/nagios/etc/nagios.cfg

Edit: Nagios Core version 4.5.1 Linux distro is likely Debian or Ubuntu, based on the www-data user rather than httpd user.

Tested against Nagios Core version 4.4.13 (with Nagios XI) on Debian 11, by removing the default gateway, and did not run into the issue.

sawolf commented 6 months ago

Probably duplicate of #927, but this summary is more accurate. Will try to get this one fixed for next release.

sawolf commented 6 months ago

Just kidding! I missed the last sentence on your report. I'm also not able to repro this behavior, even after matching his setup steps. Even if I break w/ gdb and turn on the firewall in the middle of the communication, I'm not able to get an infinite loop.