Cacti: PHP Notice

Created on 10 Jun 2020  路  8Comments  路  Source: Cacti/cacti

2020/06/10 12:00:23 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller_boost.php[137]:output_rrd_data(), /poller_boost.php[293]:CactiErrorHandler())
2020/06/10 12:00:23 - ERROR PHP NOTICE: Undefined variable: more_arch_table in file: /var/www/html/cacti/poller_boost.php on line: 293
2020/06/10 12:00:23 - BOOST SVR WARNING: Detected Poller Boost Overrun, Possible Boost Poller Crash
bug unverified

All 8 comments

What version of Cacti, I'm sure that's already been fixed previously.

No.

root@cacti:/var/www/html/cacti# git fetch origin
root@cacti:/var/www/html/cacti# git pull origin 1.2.x
From https://github.com/Cacti/cacti
 * branch                1.2.x      -> FETCH_HEAD
Already up to date.
root@cacti:/var/www/html/cacti# date
czw, 11 cze 2020, 19:35:56 CEST       
root@cacti:/var/www/html/cacti# tail -f /var/log/apache2/ssl-error.log
[Thu Jun 11 19:36:12.389526 2020] [php7:notice] [pid 44394] [client 172.20.2.42:46644] PHP Notice:  Constant CACTI_LANGUAGE_HANDLER_NONE already defined in /var/www/html/cacti/include/global_constants.php on line 462
[Thu Jun 11 19:36:12.389674 2020] [php7:notice] [pid 44394] [client 172.20.2.42:46644] PHP Notice:  Constant CACTI_LANGUAGE_HANDLER_PHPGETTEXT already defined in /var/www/html/cacti/include/global_constants.php on line 463
[Thu Jun 11 19:36:12.389712 2020] [php7:notice] [pid 44394] [client 172.20.2.42:46644] PHP Notice:  Constant CACTI_LANGUAGE_HANDLER_OSCAROTERO already defined in /var/www/html/cacti/include/global_constants.php on line 464
[Thu Jun 11 19:36:12.389801 2020] [php7:notice] [pid 44394] [client 172.20.2.42:46644] PHP Notice:  Constant CACTI_LANGUAGE_HANDLER_MOTRANSLATOR already defined in /var/www/html/cacti/include/global_constants.php on line 465

I suspect that you have a plugin that is including global_constants more than once somehow. Cacti should also be recording that notice with a full stack trace.

@interduo The problem for me was fixed some commits ago.

I have: monitor and thold only.
(also updated)

Just update poller_boost.php and lib/boost.php from the 1.2.x branch if you are on any 1.2.x branch. It's safe. Otherwise, the arch table issue is fixed.

If you are having an issue other than that, you need a separate ticket related to that issue, as alluded to by @netniV.

Was this page helpful?
0 / 5 - 0 ratings