Cacti Graph Breaks when Edit - Damaged Graph

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
pradeeps
Posts: 36
Joined: Tue Apr 23, 2019 7:56 am

Cacti Graph Breaks when Edit - Damaged Graph

Post by pradeeps »

Hello Folks,
I am experiencing many issues after migrating cacti from 0.8.8 to 1.2.11 and one of them is, the graphs breaks whenever i edit the associated graph template. For example I added a new field on a template "Interface - Traffic (bits/sec)" to show the interface field as a comment.
Capture.JPG
Capture.JPG (81.43 KiB) Viewed 2406 times
Soon I added the field the graphs stops working and I see "Damaged Graph" under under source name.
Capture2.JPG
Capture2.JPG (48.5 KiB) Viewed 2406 times
Looking at the logs, I see these errors and not sure if they are related.

Code: Select all

2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[708]:CactiErrorHandler())
2020/10/19 15:30:36 - ERROR PHP NOTICE: Undefined index: snmp_community in file: /usr/share/cacti/lib/utility.php  on line: 708
2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[708]:CactiErrorHandler())
2020/10/19 15:30:36 - ERROR PHP NOTICE: Undefined index: snmp_username in file: /usr/share/cacti/lib/utility.php  on line: 708
2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[708]:CactiErrorHandler())
2020/10/19 15:30:36 - ERROR PHP NOTICE: Undefined index: snmp_password in file: /usr/share/cacti/lib/utility.php  on line: 708
2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[708]:CactiErrorHandler())
2020/10/19 15:30:36 - ERROR PHP NOTICE: Undefined index: snmp_version in file: /usr/share/cacti/lib/utility.php  on line: 708
2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[708]:CactiErrorHandler())
2020/10/19 15:30:36 - ERROR PHP NOTICE: Undefined index: snmp_port in file: /usr/share/cacti/lib/utility.php  on line: 708
2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[708]:CactiErrorHandler())
2020/10/19 15:30:36 - ERROR PHP NOTICE: Undefined index: snmp_auth_protocol in file: /usr/share/cacti/lib/utility.php  on line: 708
2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[708]:CactiErrorHandler())
2020/10/19 15:30:36 - ERROR PHP NOTICE: Undefined index: snmp_priv_passphrase in file: /usr/share/cacti/lib/utility.php  on line: 708
2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[708]:CactiErrorHandler())
2020/10/19 15:30:36 - ERROR PHP NOTICE: Undefined index: snmp_priv_protocol in file: /usr/share/cacti/lib/utility.php  on line: 708
2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[708]:CactiErrorHandler())
2020/10/19 15:30:36 - CMDPHP PHP ERROR NOTICE Backtrace:  (/graph_templates_items.php[35]:form_save(), /graph_templates_items.php[276]:push_out_graph_item(), /lib/template.php[454]:change_graph_template(), /lib/template.php[882]:update_graph_data_source_output_type(), /lib/template.php[547]:push_out_host(), /lib/utility.php[731]:CactiErrorHandler())
2020/10/19 15:32:56 - ERROR PHP ERROR: Maximum execution time of 60 seconds exceeded in file: /usr/share/cacti/lib/database.php on line: 497
Any advice on what to look to resolve this issue would be great since I am stuck with this for a while.Thanks
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: Cacti Graph Breaks when Edit - Damaged Graph

Post by bmfmancini »

This is fixed in 1.2.14 I believe
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
pradeeps
Posts: 36
Joined: Tue Apr 23, 2019 7:56 am

Re: Cacti Graph Breaks when Edit - Damaged Graph

Post by pradeeps »

I upgraded to 1.2.14 now and its still the same.

Code: Select all

[Mon Oct 19 16:59:59.814061 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined index: hostname in /usr/share/cacti/lib/utility.php on line 708, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 16:59:59.814374 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined index: snmp_community in /usr/share/cacti/lib/utility.php on line 708, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 16:59:59.814625 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined index: snmp_username in /usr/share/cacti/lib/utility.php on line 708, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 16:59:59.814863 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined index: snmp_password in /usr/share/cacti/lib/utility.php on line 708, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 16:59:59.815077 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined index: snmp_version in /usr/share/cacti/lib/utility.php on line 708, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 16:59:59.815303 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined index: snmp_port in /usr/share/cacti/lib/utility.php on line 708, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 16:59:59.815509 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined index: snmp_auth_protocol in /usr/share/cacti/lib/utility.php on line 708, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 16:59:59.815724 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined index: snmp_priv_passphrase in /usr/share/cacti/lib/utility.php on line 708, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 16:59:59.815950 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined index: snmp_priv_protocol in /usr/share/cacti/lib/utility.php on line 708, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 16:59:59.817144 2020] [php7:notice] [pid 23610] [client 192.168.199.254:45608] PHP Notice:  Undefined variable: poller_ids in /usr/share/cacti/lib/utility.php on line 731, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2
[Mon Oct 19 17:00:21.129150 2020] [php7:error] [pid 23610] [client 192.168.199.254:45608] PHP Fatal error:  Maximum execution time of 60 seconds exceeded in /usr/share/cacti/lib/functions.php on line 1700, referer: http://192.168.199.101/cacti/graph_templates_items.php?action=item_edit&graph_template_id=2

version.JPG
version.JPG (96.82 KiB) Viewed 2398 times
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: Cacti Graph Breaks when Edit - Damaged Graph

Post by TFC »

I have 1.2.15 and I had same problem after edit graph template. I Just add a new comment (|query_IfIP|). Then my related graph not updated. When I look graphs I see damaged
Damaged_graph.png
Damaged_graph.png (5.18 KiB) Viewed 1872 times
Tehn I look at related data source and noticed that Output type ID is changed. I fix it as my value (In/Out bits blabla).
Damaged_dastasource.png
Damaged_dastasource.png (48.67 KiB) Viewed 1872 times
Then I fix it as correct ID. Graph start to update. But I still see Source name as "Damaged"
2021-01-08_13-40.png
2021-01-08_13-40.png (52.85 KiB) Viewed 1872 times
How can I fix it?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti Graph Breaks when Edit - Damaged Graph

Post by TheWitness »

This looks serious. Let me try to reproduce.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
jajao555
Posts: 5
Joined: Mon Dec 07, 2020 4:12 pm

Re: Cacti Graph Breaks when Edit - Damaged Graph

Post by jajao555 »

I had the same issue happen on 1.2.15 as well. I added a comment line for interface speed and that caused graphs to stop graphing. I wasn't able to figure out how to resolve it and ended up having to recreate the graphs. It seems to be fixed in another install I had on 1.2.16 though.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests