- Replaced deprecated each() for foreach()
- Removed unnecessary reset() calls used for resetting pointers of an array before iterating by a foreach() loop
* the $index_recache string already contains the / separator. I don't need to add in preg_match function
* some errors in the methods to take in count the storage of the modified value
* a cosmetic change that permit to clean the debug value in debug_log_return function after the display
* a change in poller function that fixe an error when your index field in the XML file is a fake index oid
This adds more checks before we attempt to output data. The remote data
collector user will need write access to these files. But at least we
won't crash if they are not updated now. Also, if you test the poller
by another user, the temp file will always te unlinked now.
Note that you will need to rerun you database upgrade after thsese
changes. Some a new table and some new columns have been added to
support remote polling and if you don't make these database changes,
your Cacti system may stop operating.
Part of multiple polling is to support either MySQL replication, or to
replicate tables requred for remote data collection. These changes will
enable the later method, but are not complete.
The replicate_tables in lib/poller.php function is designed to handle
each of the table replecation types. When complete, it will handle all
table replication based upon poller state.
There may be additional table schema changes to increase performance,
but those changes have not been validated yet.
for testers, make sure that you not only add the poller_resource_cache
table, but alter the structure of the host table, or you system will
stop working. this is the first of several commit's. taking it in
stages.