Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I've updated my server to Debian Buster.
I've some trouble with cacti :
- cacti is unable to get right values of 2 sensors (data source : interfaces - traffic). This is relative to my 2 interfaces.
- cacti show me errors like "Sorry, we could not process your last action. Erreur : 500 Console -> Créer de nouveaux graphiques Motif :The response to the last action was unexpected.". In the log I've :
\what version of 'cacti do you have:? Since you have a debian based system, make sure you have the proper extensions enabled for both the cli and the web.
I dom't know how easy it is for you to try and upgrade, but 1.2.6 will be released at the end of this month. If you still have the same issue on there, it'll be a lot easier to identify in the current code. It may have been fixed by someone already so the problem may go away.
After a lot of tries, a graph (traffic enp2s0) is come back and the graph is correct.
I've made a apt install --reinstall snmpd. I don't know if that is the raison why this graph works...
But the traffic enp3s0 doesn't work.
2019/08/22 14:51:28 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/08/22 14:51:28 - ERROR PHP ERROR: Uncaught Error: Call to undefined function xml_parser_create() in /usr/share/cacti/site/lib/xml.php:112 Stack trace: #0 /usr/share/cacti/site/lib/rrd.php(2231): rrdxport2array('<?xml version="...') #1 /usr/share/cacti/site/lib/rrd.php(2249): rrdtool_function_graph(9, '0', Array, '', Array) #2 /usr/share/cacti/site/graph_xport.php(92): rrdtool_function_xport(9, '0', Array, Array) #3 {main} thrown in file: /usr/share/cacti/site/lib/xml.php on line: 112
2019/08/22 14:50:17 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
2019/08/22 14:50:17 - ERROR PHP ERROR: Uncaught Error: Call to undefined function xml_parser_create() in /usr/share/cacti/site/lib/xml.php:29 Stack trace: #0 /usr/share/cacti/site/lib/data_query.php(519): xml2array('<interface>\n\t<n...') #1 /usr/share/cacti/site/data_queries.php(728): get_data_query_array(1) #2 /usr/share/cacti/site/data_queries.php(88): data_query_item_edit() #3 {main} thrown in file: /usr/share/cacti/site/lib/xml.php on line: 29
I've added (by error) new data source to Data Templates [edit: Interface - Traffic] and I wan't to delete them but it's impossible... A pop up says "Data template in use can not be modified"...
I can't test the new version in a easy way. I don't want to loose all my data collected since 3 years.
Attachments
20190822 - Cacti2.png (16.15 KiB) Viewed 1207 times
20190822 - Cacti.png (69.73 KiB) Viewed 1207 times
After multiples test, it seems that my problem was linked to my php installation.
I use php7.3 but I found some php7.0 files. I thinks apache2 uses an old module of php7.0 or php5.
I do : apt install --reinstall php7.0, apt install php7.3, a2enmod php7.3.
It works better. I can now navigate and use all the functions of cacti except remove data source but it's another problem.
Sometimes, there is php code in my browser. I thinks apache is responsible.