-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When managing graphs, Graphs can be listed multiple times incorrectly #4996
Comments
Appreciate you reporting this one. |
Please run this query and let me know if you get duplicates: SELECT gtg.id, gl.id AS local_graph_id,
gtg.height, gtg.width, gtg.title_cache, gt.name, gl.host_id,
IF(gl.graph_template_id = 0, 0, IF(gl.snmp_query_id = 0, 2, 1)) AS graph_source
FROM graph_local AS gl
INNER JOIN graph_templates_graph AS gtg
ON gl.id=gtg.local_graph_id
LEFT JOIN graph_templates AS gt
ON gl.graph_template_id=gt.id
LEFT JOIN aggregate_graphs AS ag
ON ag.local_graph_id=gl.id
LEFT JOIN host AS h
ON h.id=gl.host_id
LEFT JOIN sites AS s
ON h.site_id=s.id
ORDER BY gl.id
LIMIT 20 ; |
Lastly, on line 2222 of $graph_list = db_fetch_assoc("blah");
cacti_log("blah"); |
Thanks, @TheWitness. I ran the query and got zero duplicates but I don't understand your second instruction. Actually, I'm not that smart... :( |
Well for me this is philanthropic work. so if you want free support you're going to have to meet me halfway. I'll patiently await you to provide the response I requested. |
Do you have any plugins installed ? |
Also run /cacti/cli/audit_database --report |
Hi, @bmfmancini, no I don't have any installed plugins. Actually, I am just trying to follow the instruction that @TheWitness told me to do. |
@Coporton run audit_database --report and check for any errors/warnings |
Copy Paste the text of that log message. Here. Then I'll have a follow-up query for you to run. |
@TheWitness, here is the log message report 2022-11-09 21:00:27 - CMDPHP SELECT gtg.id, gl.id AS local_graph_id, gtg.height, gtg.width, gtg.title_cache, gt.name, gl.host_id, IF(gl.graph_template_id = 0, 0, IF(gl.snmp_query_id = 0, 2, 1)) AS graph_source FROM graph_local AS gl INNER JOIN graph_templates_graph AS gtg ON gl.id=gtg.local_graph_id LEFT JOIN graph_templates AS gt ON gl.graph_template_id=gt.id LEFT JOIN aggregate_graphs AS ag ON ag.local_graph_id=gl.id LEFT JOIN host AS h ON h.id=gl.host_id LEFT JOIN sites AS s ON h.site_id=s.id ORDER BY gl.id LIMIT 20; |
No, I mean the one in cacti, not the one I asked you to run. |
@TheWitness Forgive me, if I input wrong. I have added, As you told me, ....... ` $graph_list = db_fetch_assoc("SELECT gtg.id, gl.id AS local_graph_id, cacti_log(" $graph_list = db_fetch_assoc("SELECT gtg.id, gl.id AS local_graph_id, .......... |
Still wrong. You might want to restore that file. Let's take another approach
|
I have already restore the original file. it's showing same name in multiple times like before.
I followed the GitHub install instructions |
What interface graphs did you create for each of these interfaces? |
I'm using Interface - Traffic (bits/sec) template for all the graph name created. |
Hi @TheWitness, I just replaced the
Thank you so much, everyone. Thanks for your valuable support & I appreciate it. |
Just reproduced it 👍 |
Okay, this looks like a regression with regards to a few Graph Templates that were recently packaged. I have to research the source package. I'll get you a Delete Statement shortly. |
Is this an upgrade? Did you by chance import the CISCO ASA Template? |
Graph Name in Graph Management shows the same name multiple times
This is partially resolved. We have to determine what do to in these cases though. |
This method is more accurate than the prior method
This is resolved now. |
Describe the bug
I don't know why but I checked several times. The result is still the same. Graph Name in Graph Management shows the same name multiple times.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It's showing the same name multiple times with the same URL.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information)
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
chrome
Version [e.g. 22]
1.2.23
The text was updated successfully, but these errors were encountered: