Get multiple nagios php notices

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DonForigua
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Get multiple nagios php notices

Post by DonForigua »

Hi everyone i get multiple php notices and warnings for example:

Code: Select all

 PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-hoststatus.inc.php on line 200, referer: https://IP/nagiosxi/includes/components/xicore/status.php?show=hosts&search=HOST3&noservices=1 

Code: Select all

PHP Notice:  Call made to exec_sql_query() when DB handler does not exist\n#0  exec_sql_query(nagiosxi, SELECT * FROM xi_options WHERE name='active_poller_interval', ) called at [/usr/local/nagiosxi/html/includes/utils.inc.php:1038]\n#1 get_option(active_poller_interval) called at [/usr/local/nagiosxi/html/includes/dashlets/bpi/bpi.inc.php:41]\n#2  bpi_dashlet_init() called at [/usr/local/nagiosxi/html/includes/dashlets/bpi/bpi.inc.php:9]\n#3  include_once(/usr/local/nagiosxi/html/includes/dashlets/bpi/bpi.inc.php) called at [/usr/local/nagiosxi/html/includes/dashlets.inc.php:21]\n#4  require_once(/usr/local/nagiosxi/html/includes/dashlets.inc.php) called at [/usr/local/nagiosxi/html/includes/common.inc.php:12]\n#5  require_once(/usr/local/nagiosxi/html/includes/common.inc.php) called at [/usr/local/nagiosxi/html/ajaxhelper.php:6]\n in /usr/local/nagiosxi/html/includes/db.inc.php on line 519, referer: https://HOST/nagiosxi/includes/
components/xicore/status.php?show=services                                                                                                                                                                         

Code: Select all

 PHP Notice:  Trying to get property of non-object in /usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-hoststatus
.inc.php on line 332, referer: https://HOST/nagiosxi/includes/components/xicore/status.php?show=hosts&search=HOST&noservices=1 
i use nagios 5.7.5

Thanks
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Get multiple nagios php notices

Post by gsmith »

Hi,

1. What happens when you go to: https://IP/nagiosxi/includes/components ... services=1
in a browser ??? (Replace IP with the IP of your XI server)

2. From a command line on the XI server please run:

Code: Select all

echo "SELECT * FROM xi_options WHERE name='active_poller_interval'"  | mysql -u root -pnagiosxi nagiosxi
Please let me know the results of each.

Thanks!
DonForigua
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Re: Get multiple nagios php notices

Post by DonForigua »

Hi

1. Ok ;) someone is looking for a non-existent host
2. The result does not give me a result

greetings
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Get multiple nagios php notices

Post by gsmith »

It looks to me like everything is OK.

Do you have any concerns?

Thanks
Locked