Error_log after upgrade to Nagios XI 5.6.0

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
igae1
Posts: 57
Joined: Thu May 25, 2017 6:35 am

Error_log after upgrade to Nagios XI 5.6.0

Post by igae1 »

HI Team,

We have made an upgrade of nagios xi from version 5.4.13 to the version Nagios XI 5.6.0. The following entries appear in the error_log log:


[Thu May 23 13:28:06.639132 2019] [:error] [pid 17998] [client] PHP Notice: unserialize(): Error at offset 696 of 1607 bytes in /usr/local/nagiosxi/html/includes/components/actions/actions.inc.php on line 929, referer: http://nagiosxi/nagiosxi/includes/compo ... &dest=auto

[Thu May 23 13:58:32.645135 2019] [:error] [pid 25536] [client ] PHP Notice: unserialize(): Error at offset 696 of 1607 bytes in /usr/local/nagiosxi/html/includes/components/actions/actions.inc.php on line 929, referer: http://nagiosxi/nagiosxi/includes/compo ... &dest=auto



From the interface we list the services without problems,
How could we solve this problem?
Thanks
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Error_log after upgrade to Nagios XI 5.6.0

Post by benjaminsmith »

Hi @igae1,
From the interface we list the services without problems,
How could we solve this problem?
Those are PHP Notices which are advisory messages and will not affect Nagios XI. If desired, It's possible to turn those off in the php.ini file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
igae1
Posts: 57
Joined: Thu May 25, 2017 6:35 am

Re: Error_log after upgrade to Nagios XI 5.6.0

Post by igae1 »

Thanks,


I also see these entries warning:


[Tue May 28 10:42:54.451645 2019] [:error] [pid 29183] [client ] PHP Warning: in_array() expects parameter 2 to be array, string given in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 147, referer: http://server/nagiosxi/includes/compone ... ate_flag=1
[Tue May 28 10:43:24.470684 2019] [:error] [pid 22514] [client ] PHP Warning: in_array() expects parameter 2 to be array, string given in /usr/local/nagiosxi/html/includes/components/nocscreen/nocscreenapi.php on line 57, referer: http://server/nagiosxi/includes/compone ... ate_flag=1

Regards
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Error_log after upgrade to Nagios XI 5.6.0

Post by jomann »

Hello,

Looking at the errors it looks like you may be on an older version of the component. Can you verify you have the latest version of the Operations Center component in Admin > Manage Components > Check for Updates. Once you've verified and/or updated to 1.3.1 can you check to see if you still have an error? If you do, please post the error.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
igae1
Posts: 57
Joined: Thu May 25, 2017 6:35 am

Re: Error_log after upgrade to Nagios XI 5.6.0

Post by igae1 »

Thanks,

The versions of the installed components are:
Operations Center 1.2.1 (07/12/2018 Nagios Enterprise, LLC) and Operations Screen 1.8.0, should we update the Operations Center version?

Output Log upgrade nagios XI 5.5.11

Installing 'components/nocscreen.zip'
TMPNAME: WCHMm
Archive: /tmp/nagiosxi/subcomponents/xicomponents/components/nocscreen.zip
cb15e123ea39a95e6d4b4d403834839f213d318c
creating: nocscreen/
inflating: nocscreen/CHANGES.txt
inflating: nocscreen/jquery.sumoselect.js
inflating: nocscreen/noc.php
inflating: nocscreen/nocscreen.inc.php
inflating: nocscreen/nocscreenapi.php
inflating: nocscreen/sumoselect.css
nocscreen
COMPONENT NAME: nocscreen
CMD=grep register_component /usr/local/nagiosxi/tmp/WCHMm/nocscreen/nocscreen.inc.php | wc -l
1
OUT=1
Component looks ok...
CMD: cp -rf /usr/local/nagiosxi/tmp/WCHMm/nocscreen /usr/local/nagiosxi/html/includes/components/
CMD: rm -rf /usr/local/nagiosxi/tmp/WCHMm
INSTALLING COMPONENT: nocscreen
CHECKING FOR INSTALL SCRIPT /usr/local/nagiosxi/html/includes/components/nocscreen/install.sh
CMD: . /usr/local/nagiosxi/var/xi-sys.cfg && chown -R $nagiosuser:$nagiosgroup /usr/local/nagiosxi/html/includes/components/nocscreen
CMD: /bin/chmod -R +x /usr/local/nagiosxi/html/includes/components/nocscreen


Done!


Regards
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Error_log after upgrade to Nagios XI 5.6.0

Post by benjaminsmith »

Hello @igae1,

It looks like you have the current version of the Operations Screen (1.8.0), and the current version of the Operations Center is 1.3.1. Please upgrade the Operations Center and check to see if the messages are still present ( and post it to the thread).

Thanks!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked