Unable to view graphs - graph debug also not working

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

leskent
Posts: 4
Joined: Thu Jan 19, 2006 12:13 pm

My solution to the graphs not displaying

Post by leskent »

I too was getting the problem where all the data collection was working fine, but displaying of the graphs was showing an red X in IE. What was interesting was it seemed to know the size of the graphic, because there was an outline around the box.

I then tried it under Firefox, and interesting enough, I would see the graphic appear for a flash and then it would go away with a simlar "no graphic found" indicator.

I found that if I used the rddtool.exe that did not use cygwin, the graphics displayed fine with no problems but the polling did not work because of problems documented by others here (a known compatability issue).

In running Sysinternals filemon utility to see if there was a permissions issue or missing file problem, I discovered that the rddtool it was looking for a font file "DejaVuSansMono-Roman.ttf" that it could not find.

And it was looking in a very specific place for it:
D:\cygwin\usr\local\rrdtool-1.2.12\share\rrdtool\fonts\DejaVuSansMono-Roman.ttf

So what I did was copy my Ariel.ttf file from my Windows fonts to that exact path and replaced the name with the DejaVuSansMono-Roman.ttf" and everything started working great. I suspect that the rddtool is in the middle of generating a graphic and gives some error about font not found and messes up the graphc format which makes the browsers mark it was an invalid graphic.

So that's my solution and all is working great now.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

leskent: did you specify a default font in your cacti settings? You should not have needed to use that odd path to make things work.
leskent
Posts: 4
Joined: Thu Jan 19, 2006 12:13 pm

Post by leskent »

"did you specify a default font in your cacti settings". Not sure where to see that. I looked in all the configuration screens? I did try a suggestion made by someone else to set RRD_DEFAULT_FONT environment variable to a default font, but this did not fix it.

In the end my only solution was to put the file in that exact path. Maybe there is a better solution, I'm just not aware of it.

Les
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Cacti -> settings -> rrdtool version. You set it to 1.2, right? On the Paths tab, set the full path to a font file you want to use.
PiercedKnob
Cacti User
Posts: 61
Joined: Tue Dec 06, 2005 8:36 am
Location: UK
Contact:

Post by PiercedKnob »

I have configured all the font settings, including the environment variable. I have now been working on this for over a month and everything i try just cannot get the graphs working, the actual data is collecting and if i run the command and the command prompt it will generate the png file and it contains the graph ok. It just wont display the damn thing in Cacti.

Still stuff in Filemon that is showing as files missing, etc... but not got a clue why its doing it.

Anyhow, going to try yet another rebuild following the instructions and if that fails then i am giving up and will look for something else, its getting frustrating.

Thanks everyone for all the help that you have provided.

Regards

Wayne
PiercedKnob
Cacti User
Posts: 61
Joined: Tue Dec 06, 2005 8:36 am
Location: UK
Contact:

Post by PiercedKnob »

I have configured all the font settings, including the environment variable. I have now been working on this for over a month and everything i try just cannot get the graphs working, the actual data is collecting and if i run the command and the command prompt it will generate the png file and it contains the graph ok. It just wont display the damn thing in Cacti.

Still stuff in Filemon that is showing as files missing, etc... but not got a clue why its doing it.

Anyhow, going to try yet another rebuild following the instructions and if that fails then i am giving up and will look for something else, its getting frustrating.

Thanks everyone for all the help that you have provided.

Regards

Wayne
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Wayne,

Sorry you have had so many issues. I can get remote access to your machine, I may be able to fix your problem, or at least understand what is going on.

If you are ok with this, please send me a PM with your availability and timezone information relative to GMT. I am GMT-5.

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?
PiercedKnob
Cacti User
Posts: 61
Joined: Tue Dec 06, 2005 8:36 am
Location: UK
Contact:

Post by PiercedKnob »

Thanks very much for the offer, i would really like to get this working as what i have seen and read about it looks really good.

I will need to move some things about on our network in order to give access to this box, i will contact you next week (i am off work until Wednesday) if thats ok :)

We are just GMT (in the uk)

I have noticed someone is having the exact same issues which is a little odd.

I will pm you next week if thats ok.

Kind Regards

Wayne
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here is the important information: 68.41.21.188.

I get up around 5:00 am our time. I spend a little time on the boards from 5:30-6:45 on some days. It's going to have to be then, or late in the evening for you. Let me know. If you company has access to WebEx, then we can do it during my business hours.

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?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

PiercedKnob:
You mind sending me the raw FileMon log of single instance of when you try to graph something? Could use graph mangement to only isolate one graph.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

After taking a look at your filemon log, a few things pop out at me:

1)

Code: Select all

14:28:39	w3wp.exe:804	IRP_MJ_CREATE 	F:\	ACCESS DENIED	LEANMSSYSLOG\IUSR_LEANMSSYSLOG	
For some reason, IUSR_LEANMSSYSLOG is trying to create a file on the root of the F: drive. Have you modified IUSR_LEANMSSYSLOG default user paths or something? It shouldn't be doing this...

2)

Code: Select all

14:28:39	csrss.exe:540	IRP_MJ_CREATE 	C:\WINDOWS\system32\cmd.exe	ACCESS DENIED	NT AUTHORITY\NETWORK SERVICE	
Yet again, not sure why the csrss.exe was trying to create cmd.exe. Something weird sure is going on.

3) The cause of your graphing problems are:

Code: Select all

14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\--title=Localhost - CPU Utilization	NOT FOUND	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\--title=Localhost - CPU Utilization.exe	NOT FOUND	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\--title=Localhost - CPU Utilization.exe.lnk	NOT FOUND	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\--title=Localhost - CPU Utilization.lnk	NOT FOUND	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti	SUCCESS	Attributes: D	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14\:28\:38\c	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14\:28\:38\c.exe	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14\:28\:38\c.exe.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14\:28\:38\c.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14\:28\:38	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14\:28\:38.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14\:28	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14\:28.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01\25 14.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006\01.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28\:38 To 2006.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14\:28.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01\24 14.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006\01.lnk	NAME INVALID	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006	NOT FOUND	Attributes: Error	
14:28:39	rrdtool.exe:4068	FASTIO_QUERY_OPEN	F:\Webroot\cacti\COMMENT:From 2006.lnk	NOT FOUND	Attributes: Error	
The graphing commands are not being fed into rrdtool.exe itself and instead it's trying to open files :o. How this happens, I have no idea. What OS is this again?

From the command prompt, type: set and paste the results. Also do this for your IUSR_LEANMSSYSLOG.
PiercedKnob
Cacti User
Posts: 61
Joined: Tue Dec 06, 2005 8:36 am
Location: UK
Contact:

Post by PiercedKnob »

Thanks for the prompt reply again. I can confirm that this server is Windows 2003 SP1 fully patch with PHP 5.1 and Mysql 4.1 (ish).

1) I have not worked out why its trying to access the root of F: Drive, this shouldn't be happening, unless its something to do with the Advanced Ping template i have imported ?

Cannot understand why it would be doing this ?

2) Again, i am stumped as to why its doing this also, i have rebuilt a few times and i am unable to get this to work.

3) "From the command prompt, type: set and paste the results. Also do this for your IUSR_LEANMSSYSLOG."

Sorry i am unsure what you mean ?

If you would like to remote into a box and see whats going on i have installed this at home which is what TheWitness took a look at. I can PM the necessary information.

Once again, thanks for your help with this, i have followed your guide so cannot understand why this is happening (probably me doing something wrong though).

Take it easy

Wayne
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

For step 3,
1) start -> Run
2) cmd
3) set
4) paste the results.
5) repeat while logged in as IUSR_LEANMSSYSLOG (or a runas on cmd.exe)
PiercedKnob
Cacti User
Posts: 61
Joined: Tue Dec 06, 2005 8:36 am
Location: UK
Contact:

Post by PiercedKnob »

BSOD2600 wrote:For step 3,
1) start -> Run
2) cmd
3) set
4) paste the results.
5) repeat while logged in as IUSR_LEANMSSYSLOG (or a runas on cmd.exe)
Really sorry but not too sure which results you mean ?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

*sigh*

For example when I type: set at the command prompt, I see stuff like:

Code: Select all

C:\Documents and Settings\helpdesk>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\helpdesk\Application Data
CLASSPATH=C:\Program Files\Java\jre1.5.0_04\lib\ext\QTJava.zip
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=U2116
....
Paste the full output for your user and the IIS user.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests