Page 1 of 1

Upgrade Issue to NagiosXI 5.6.0

Posted: Sat Apr 27, 2019 3:39 pm
by jdulac
Hello,

I upgraded our environment to 5.6.0 earlier this week and has some issues with the "Check for Updates" spinning on the Admin tab after upgrade.
I was able to fix that per some other support forum posts but now I am getting a PHP warning in the console and my environment is no longer sending e-mail and text notifications. The error the console is spitting out indicates: PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491.

Any thoughts on this? Thanks in advance.

Re: Upgrade Issue to NagiosXI 5.6.0

Posted: Mon Apr 29, 2019 6:36 am
by scottwilkerson
The error you are seeing is just a notice, but there is a known issue that can cause this in 5.6.0

Run the following to resolve it

Code: Select all

rm -f /usr/local/nagiosxi/var/event_handler.lock
For the other notice you are getting you can actually delete this old component which isn't used any longer

Code: Select all

rm -rf /usr/local/nagiosxi/html/includes/components/nagiosim

Re: Upgrade Issue to NagiosXI 5.6.0

Posted: Mon Apr 29, 2019 6:49 am
by jdulac
Thanks, Scott. I ran the two commands in the console with no problems and my notifications are now restored as well.

Re: Upgrade Issue to NagiosXI 5.6.0

Posted: Mon Apr 29, 2019 8:19 am
by scottwilkerson
jdulac wrote:Thanks, Scott. I ran the two commands in the console with no problems and my notifications are now restored as well.
Great!

Locking thread