Page 1 of 1

Get multiple nagios php notices

Posted: Wed Nov 17, 2021 12:29 pm
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

Re: Get multiple nagios php notices

Posted: Wed Nov 17, 2021 4:23 pm
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!

Re: Get multiple nagios php notices

Posted: Wed Nov 17, 2021 6:16 pm
by DonForigua
Hi

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

greetings

Re: Get multiple nagios php notices

Posted: Thu Nov 18, 2021 10:29 am
by gsmith
It looks to me like everything is OK.

Do you have any concerns?

Thanks