ERROR PHP NOTICE

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
yraffah
Posts: 2
Joined: Tue Jun 05, 2012 9:30 am

ERROR PHP NOTICE

Post by yraffah »

I was having a few error messages in the log file so I thought of updating cacti and see if that clears it or not.

Currently I'm running cacti on FreeBSD:

Code: Select all

# pkg info | grep -i cacti
cacti-1.2.1
spine-1.1.35
Log file

Code: Select all

2019/06/13 12:44:59 - SYSTEM STATS: Time:299.5664 Method:spine Processes:1 Threads:4 Hosts:16 HostsPerProcess:16 DataSources:256 RRDsProcessed:0
2019/06/13 12:44:59 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyPollerRuntimeExceeding (CACTI-MIB)
2019/06/13 12:44:59 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2019/06/13 12:44:59 - POLLER: Poller[Main Poller] Maximum runtime of 298 seconds exceeded. Exiting.
2019/06/13 12:39:59 - SYSTEM STATS: Time:298.8292 Method:spine Processes:1 Threads:4 Hosts:16 HostsPerProcess:16 DataSources:256 RRDsProcessed:0
2019/06/13 12:39:59 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyPollerRuntimeExceeding (CACTI-MIB)
2019/06/13 12:39:59 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2019/06/13 12:39:59 - POLLER: Poller[Main Poller] Maximum runtime of 298 seconds exceeded. Exiting.
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
2019/06/13 12:38:18 - ERROR PHP NOTICE: Undefined index: location in file: /usr/local/share/cacti/lib/variables.php on line: 224
2019/06/13 12:38:18 - CMDPHP PHP ERROR NOTICE Backtrace: (/utilities.php[40]:repopulate_poller_cache(), /lib/utility.php[66]:update_poller_cache(), /lib/utility.php[409]:get_script_query_path(), /lib/data_query.php[1880]:substitute_host_data(), /lib/variables.php[224]:CactiErrorHandler())
All my devices are not generating any new graphs and when I create a new graph for a device I get the message "Failed to open data file, poller may not have run yet".

Moreover, I have changed the number of Spine processes from 1 to 8 by going to Configuration > Settings > Poller > Default Data Collector Processes, however, I still see it as 1 in the log file!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: ERROR PHP NOTICE

Post by netniV »

You can't run different versions of spine vs cacti. You need to keep them on the same versions.

Secondly, you need to set them against the poller itself in 1.2 (another reason to update spine).

Thirdly, you have no emaii setup working so cacti reports the issue that it can't contact the primary admin to notify them of a problem.

Lastly, you need to diable the SNMP Agent notification if you aren't using any receivers since its pointless.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest