Graph tree and graphs missing in tree mode
Moderators: Developers, Moderators
Graph tree and graphs missing in tree mode
Hi all,
For some reason when I select the graph tab, my graph tree isn't listed and no graphs are displayed. A few weeks ago this was working fine.
Found some things on this forum, but none of the suggested solutions solved my problem.
I would appreciate it if someone could help me solve this problem.
The cacti version I use = 0.8.7d
Linux OS version = Debian 4.0
Regards,
Roetoe
For some reason when I select the graph tab, my graph tree isn't listed and no graphs are displayed. A few weeks ago this was working fine.
Found some things on this forum, but none of the suggested solutions solved my problem.
I would appreciate it if someone could help me solve this problem.
The cacti version I use = 0.8.7d
Linux OS version = Debian 4.0
Regards,
Roetoe
- Attachments
-
- graph view
- graph.JPG (100.83 KiB) Viewed 14314 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Translation please. Looks like bad chracters in your tree:
TheWitness
TheWitness
- Attachments
-
- WhatsThis.jpg (5.37 KiB) Viewed 14265 times
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?
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?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
1) Install Firefox
2) Install Firebug
3) Get Familiar with Firebug, it will tell you where the screwup is.
4) Post the error from Firebug.
TheWitness
2) Install Firebug
3) Get Familiar with Firebug, it will tell you where the screwup is.
4) Post the error from Firebug.
TheWitness
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?
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?
Same issue, reproduceable
Here is a quick "me too". It happened when I created a new device and added this new device (device id=376) to the tree. After putting it into the tree, suddenly the graph tree completely disappeared in the "graphs" view. Same as the screenshot above shows.
I removed this particular device from the tree ("Console" -> "Graph Trees") and the tree is visible again. I tried to add it into a different position of the tree -> same problem. Removed again - tree works.
It is unlikely that the database is corrupted and I verified the "effect" occurs on both IE and Firefox. My best guess so far is that I hit a "limit" somwhere? I have 330 devices (including the one causing the issue) and a total of 2444 graphs going.
Cacti version 0.8.7b
Novell Suse Linux SLES10SP2
Cheers,
Frank
I removed this particular device from the tree ("Console" -> "Graph Trees") and the tree is visible again. I tried to add it into a different position of the tree -> same problem. Removed again - tree works.
It is unlikely that the database is corrupted and I verified the "effect" occurs on both IE and Firefox. My best guess so far is that I hit a "limit" somwhere? I have 330 devices (including the one causing the issue) and a total of 2444 graphs going.
Cacti version 0.8.7b
Novell Suse Linux SLES10SP2
Cheers,
Frank
- _raindrop18
- Cacti User
- Posts: 194
- Joined: Thu Jan 29, 2009 5:52 pm
- Location: US
Same problem here... no graph tree
I couldn't find the error in Firebug but it was in the error console... I think the problem we have is:
Error: unterminated string literal
Source File: https://mycactiserver/cacti/graph_view. ... first=true
Line: 85, Column: 23
Source Code:
ou2 = insFld(ou1, gFld("<strong>Host:</strong> AMS01DR01-1
And it was about the time we added the AMS hosts that it quit working. I'll go see if there is some weird character or space in them or something... but this problem sounds exactly like what I am experiencing and here is an error.
Any thoughts?
--Carl
Error: unterminated string literal
Source File: https://mycactiserver/cacti/graph_view. ... first=true
Line: 85, Column: 23
Source Code:
ou2 = insFld(ou1, gFld("<strong>Host:</strong> AMS01DR01-1
And it was about the time we added the AMS hosts that it quit working. I'll go see if there is some weird character or space in them or something... but this problem sounds exactly like what I am experiencing and here is an error.
Any thoughts?
--Carl
Sorry to reply to my own reply...
No weird trailing or leading spaces. No odd characters. Looks like that should all be handled fine anyway but yeah, no-go. This has been a bummer for us because none of the engineers in my department like to use IE but it does show the tree right now (at least most of the time).
So any input would be greatly appreciated. I will provide any information I can that you request. This is also 0.8.7d btw.
-C
So any input would be greatly appreciated. I will provide any information I can that you request. This is also 0.8.7d btw.
-C
Still seeing this problem... upgraded to 0.8.7e
I now do see error in Firebug console though... looks like some "\n" newlines making it through perhaps causing this problem. I am very surprised no one replied to my message... this forum is normally right on top of it!
I guess I'll start looking for newlines in the DB or something. Anyone have any input? Bump!
unterminated string literal
https://ne.prod.dm.local/cacti/graph_vi ... first=true
Line 86
This is getting broken by newline for sure:
ou2 = insFld(ou1, gFld("<strong>Host:</strong> AMS01DR01-1
", "graph_view.php?action=tree&tree_id=40&leaf_id=1451"))
foldersTree is not defined
https://ne.prod.dm.local/cacti/include/ ... ftiens4.js
Line 1098
Still digging... any thoughts?
I guess I'll start looking for newlines in the DB or something. Anyone have any input? Bump!
unterminated string literal
https://ne.prod.dm.local/cacti/graph_vi ... first=true
Line 86
This is getting broken by newline for sure:
ou2 = insFld(ou1, gFld("<strong>Host:</strong> AMS01DR01-1
", "graph_view.php?action=tree&tree_id=40&leaf_id=1451"))
foldersTree is not defined
https://ne.prod.dm.local/cacti/include/ ... ftiens4.js
Line 1098
Still digging... any thoughts?
Fixed.
Finally found some weird character at the end of a device name. It didn't show up at all until I looked in phpMyAdmin. Fixed.
We seem to be experiencing the same problem at the moment. Me and my collegue have edited and added some hosts.
Most (not all) tree items are not displayed in tree view. My developer toolbar in Safari mentions a referenceerror to a variable that doesn't exist (in graph_view.php).
and offcourse, ou6 isn't created. I suspect me or my collegue have made a typo or pasted a new-line somewhere. I have deleted (and re-created) my changes, that doesn't have any effect.
I was hoping someone has an "easy" method of tracking down the source of this problem. Otherwise I see no alternative than debug the JS...
Thnx in advance,
Most (not all) tree items are not displayed in tree view. My developer toolbar in Safari mentions a referenceerror to a variable that doesn't exist (in graph_view.php).
Code: Select all
ou7 = insFld(ou6, gFld("<strong>Host:</strong> cn-ls10-v1-sw-01", "graph_view.php?action=tree&tree_id=2&leaf_id=1899"))
ReferenceError: Can't find variable: ou6
ou0 = insFld(foldersTree, gFld("Cisco cores", "graph_view.php?action=tree&tree_id=9"))
I was hoping someone has an "easy" method of tracking down the source of this problem. Otherwise I see no alternative than debug the JS...
Thnx in advance,
Re: Graph tree and graphs missing in tree mode
Me too. In my case, I had created a graph tree with parentheses and double quotes in the display name. The error showed up in the Firefox Error Console and looked something like:
------- snip ----------
Error: missing ) after argument list
Source File: http://cactihost/cacti/graph_view.php?a ... first=true
Source Code:
ou0 = insFld(foldersTree, gFld("text1 (text2 "text3")", "graph_view.php?action=tree&tree_id=8"))
---------------------------------------------^
------- snip ----------
The double quote in my display name had terminated the enclosing quotes in the function too early. The solution was to change "text3" to 'text3', i.e. change double quotes to single quotes in my display name.
------- snip ----------
Error: missing ) after argument list
Source File: http://cactihost/cacti/graph_view.php?a ... first=true
Source Code:
ou0 = insFld(foldersTree, gFld("text1 (text2 "text3")", "graph_view.php?action=tree&tree_id=8"))
---------------------------------------------^
------- snip ----------
The double quote in my display name had terminated the enclosing quotes in the function too early. The solution was to change "text3" to 'text3', i.e. change double quotes to single quotes in my display name.
Re: Graph tree and graphs missing in tree mode
I´m using version 0.8.7g and the problem still occurs.
It used to work perfectly one week ago until I added new hosts. Now i don´t know what to do to view again my full graph tree.
In console tab I can see my whole graph tree. But it does not appear the same in the "graphs" tab.
Does anyone know how to correct this error?
It used to work perfectly one week ago until I added new hosts. Now i don´t know what to do to view again my full graph tree.
In console tab I can see my whole graph tree. But it does not appear the same in the "graphs" tab.
Does anyone know how to correct this error?
Who is online
Users browsing this forum: No registered users and 1 guest