Continuous errors on httpd/error.log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
IGDCMont
Posts: 2
Joined: Mon Aug 13, 2018 12:54 pm

Continuous errors on httpd/error.log

Post by IGDCMont »

Hi Team,

Getting following errors on httpd/error.log. Could you please help on this.

Code: Select all

[Tue Apr 07 12:48:00 2020] [error] [client xx.xx.xx.xx] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/
[Tue Apr 07 12:48:02 2020] [error] [client xx.xx.xx.xx​] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/dashboard.php?&=
[Tue Apr 07 12:48:02 2020] [error] [client xx.xx.xx.xx​] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/dashboard.php?&=
[Tue Apr 07 12:48:02 2020] [error] [client x.xx.xx.xx​] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/dashboard.php?&=
[Tue Apr 07 12:48:02 2020] [error] [client xx.xx.xx.xx​] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/dashboard.php?&=
[Tue Apr 07 12:48:02 2020] [error] [client xx.xx.xx.xx​] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/dashboard.php?&=
[Tue Apr 07 12:48:02 2020] [error] [client xx.xx.xx.xx​] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/dashboard.php?&=
[Tue Apr 07 12:48:02 2020] [error] [client xx.xx.xx.xx​] PHP Notice:  Use of undefined constant Servicegroup - assumed 'Servicegroup' in /usr/local/nagiosxi/html/includes/components/bbmap/bbmap.inc.php on line 195, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/dashboard.php?&=
[Tue Apr 07 12:48:02 2020] [error] [client xx.xx.xx.xx​] PHP Notice:  Use of undefined constant Servicegroup - assumed 'Servicegroup' in /usr/local/nagiosxi/html/includes/components/bbmap/bbmap.inc.php on line 195, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/dashboard.php?&=
[Tue Apr 07 12:48:02 2020] [error] [client xx.xx.xx.xx​] PHP Notice:  Use of undefined constant Servicegroup - assumed 'Servicegroup' in /usr/local/nagiosxi/html/includes/components/bbmap/bbmap.inc.php on line 195, referer: http://xx.xx.xx.xx/nagiosxi/dashboards/dashboard.php?&=
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Continuous errors on httpd/error.log

Post by jbrunkow »

One of those errors is coming from the Nagios IM component, which is deprecated. It can be safely deleted using the command below.

Code: Select all

rm -rf /usr/local/nagiosxi/html/includes/components/nagiosim
USE CAUTION WHEN DELETING ( rm -rf _____ )

The other error message is merely a PHP Notice, and is not critical. A notice is considered a minor error in PHP. You can turn notices off by changing your display_errors to 0 in your php.ini configuration file.
https://stackoverflow.com/questions/286 ... hp-notices

If you do want to look in to the issue further, it looks like those errors are pointing to the nagiosim and bbmap components, specifically lines 491 and 195 of the nagiosim.inc and bbmap.inc PHP files respectively. If we can look at those lines in the files, we may be able to determine what "Invalid arguments" were supplied, or what "constant Servicegroup" is undefined.
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