Graph tree and graphs missing in tree mode

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
roetoe
Posts: 3
Joined: Wed Feb 25, 2009 7:33 pm

Graph tree and graphs missing in tree mode

Post by roetoe »

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
Attachments
graph view
graph view
graph.JPG (100.83 KiB) Viewed 14315 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Translation please. Looks like bad chracters in your tree:

TheWitness
Attachments
WhatsThis.jpg
WhatsThis.jpg (5.37 KiB) Viewed 14266 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?
roetoe
Posts: 3
Joined: Wed Feb 25, 2009 7:33 pm

Post by roetoe »

The message says that there might be an error on the page. Strange, because it used to work....

(Thanx for your reply)
roetoe
Posts: 3
Joined: Wed Feb 25, 2009 7:33 pm

Post by roetoe »

Anyone out there who could help me? :cry:
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
frank4dd
Posts: 1
Joined: Thu Apr 30, 2009 3:29 am

Same issue, reproduceable

Post by frank4dd »

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
User avatar
_raindrop18
Cacti User
Posts: 194
Joined: Thu Jan 29, 2009 5:52 pm
Location: US

Post by _raindrop18 »

check the permission on ../cacti/include/treeview. I had the same issue then changed the permission to" chmod 777 treeview" after that tree view back to normal view. however this happened on me after new installation, your case maybe different since your tree view was ok before.
Raevesor
Posts: 5
Joined: Fri Jun 19, 2009 2:00 pm
Location: Seattle, WA
Contact:

Same problem here... no graph tree

Post by Raevesor »

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
Raevesor
Posts: 5
Joined: Fri Jun 19, 2009 2:00 pm
Location: Seattle, WA
Contact:

Sorry to reply to my own reply...

Post by Raevesor »

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). :roll:

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
Raevesor
Posts: 5
Joined: Fri Jun 19, 2009 2:00 pm
Location: Seattle, WA
Contact:

Still seeing this problem... upgraded to 0.8.7e

Post by Raevesor »

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?
Raevesor
Posts: 5
Joined: Fri Jun 19, 2009 2:00 pm
Location: Seattle, WA
Contact:

Fixed.

Post by Raevesor »

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.
D43m0n
Posts: 7
Joined: Wed Jun 01, 2005 2:09 am

Post by D43m0n »

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).

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"))
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,
Cor
Posts: 3
Joined: Tue Jan 19, 2010 12:49 pm

Re: Graph tree and graphs missing in tree mode

Post by Cor »

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.
ivank
Posts: 1
Joined: Mon May 02, 2011 1:48 pm

Re: Graph tree and graphs missing in tree mode

Post by ivank »

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest