Windows Graphing problems

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

Moderators: Developers, Moderators

Post Reply
Spade
Posts: 5
Joined: Thu May 18, 2006 7:07 am

Windows Graphing problems

Post by Spade »

Greetings all,

First off, I'm an uber newb when it comes to cacti. A co-worker told me about it, so I thought what the hey I'll give it a try.

My problem appers to be in the display of the graphics. I have cacti all set-up and configured and working ( I think). I am running cacti on a Windows 2000 box, using cacti 0.8.6g, rrdtool 1.2.10, IIS 5, and MS SNMP.

I can create devices and SNMP is polling them, but when I try to view the graphs half of them will be broken links, and the others will apper fine. Then when the refresh occurs some of the previously broken links will work, and some of the others will display data. When I check the Graph Managment and Debug some of the graphs, RRDTool returns an OK, but the pic are still broken.

Any assistance would be much appericated.
Build a man a fire and he will be warm for a day. Set a on on fire and he will be warm for the rest of his life.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You mayn check your webserver's log for error messages
Reinhard
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Broken as you see the graph but no text?

The last entry in this FAQ might apply to you: http://bsod2600.home.comcast.net/instal ... s.html#FAQ
Spade
Posts: 5
Joined: Thu May 18, 2006 7:07 am

Post by Spade »

I checked the web server error logs and it reports nothing out of the ordinary. I tried running through the FAQs and it didnt eem to solve the solution. The pic below shows what I mean by broken links, and on page refresh sometimes the broken ones will have graphs, and the currently working graphs will be broken. I have tried switching to an earlier version of RRDTool, but the same thing still happens (yes, i did remember to change the settings in cacti).

I noticed too that sometimes when I zoon in on a graph to get the Daily, Weekly, Monthly, Yearly pictures that it will start to display an image, then it will apper broken.
Attachments
graphprob.JPG
graphprob.JPG (24.23 KiB) Viewed 3625 times
Build a man a fire and he will be warm for a day. Set a on on fire and he will be warm for the rest of his life.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Spade wrote:I noticed too that sometimes when I zoon in on a graph to get the Daily, Weekly, Monthly, Yearly pictures that it will start to display an image, then it will apper broken.
When this occurs next time, please select the wrench and post the whole rrdtool graph statement found
Reinhard
Spade
Posts: 5
Joined: Thu May 18, 2006 7:07 am

Post by Spade »

Heres the graph statment from my Daily (5 minute average)

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="R1 - Traffic - Fa0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="c\:/Inetpub/wwwroot/cacti/rra/r1_traffic_in_71.rrd":traffic_in:AVERAGE \
DEF:b="c\:/Inetpub/wwwroot/cacti/rra/r1_traffic_in_71.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"


The graph made it about half way through loading before it it changed it a broken image.

But in the Graph Management area, when I turn on debugging for the graph on, it says.

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="R1 - Traffic - Fa0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="c\:/Inetpub/wwwroot/cacti/rra/r1_traffic_in_71.rrd":traffic_in:AVERAGE \
DEF:b="c\:/Inetpub/wwwroot/cacti/rra/r1_traffic_in_71.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

OK
Build a man a fire and he will be warm for a day. Set a on on fire and he will be warm for the rest of his life.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Both statements are correct. In the second example, did the graph display correct?
Will put this into the Windows forum for BSOD2600. Perhaps he has more ideas
Reinhard
Spade
Posts: 5
Joined: Thu May 18, 2006 7:07 am

Post by Spade »

In both examples the graph made it about 1/2 way through the load then appeared as a broken image. I could see the upper part of the graph one second, then a nice little red X the next.
Build a man a fire and he will be warm for a day. Set a on on fire and he will be warm for the rest of his life.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) make sure you only have one copy of cygwin1.dll on your system.
2) When you view graphs in Graph Management, do any of them break? If so, turn on graph debugging. What is the error message?
3) Make sure you have a valid font pah + font specified in cacti settings.
Spade
Posts: 5
Joined: Thu May 18, 2006 7:07 am

Post by Spade »

Alright it works now, apperas my problem was that I had 3 different cygwin1.dll on my system, and an invalid font path.

You guys rock, seriously, best support fourm I have been on, keep up the excellent work guys.
Build a man a fire and he will be warm for a day. Set a on on fire and he will be warm for the rest of his life.
RUM
Posts: 20
Joined: Thu Jun 22, 2006 3:43 am

Post by RUM »

Hi there,

Just saw this post and it appears to be the same problem that I have.
I also checked how many cygwin1.dll copies I have and there seem to be 5, while apparently, there should be only one.
They are in the following paths:
C:\rddtool
C:\temp
C:\cacti2\cactid
C:\cygwin\bin
C:\backup\cacti2\cactid

Now, ofcourse I have to get rid of 4 of them, but which one should I keep?

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

Post by BSOD2600 »

Being that c:\cygwin\bin is the real location for cygwin, and that path should be in your system path... delete all the others (and related cygwin dlls!).
MPDano
Posts: 3
Joined: Fri Dec 01, 2006 4:35 pm

Post by MPDano »

Do you know what process or service needs to be off in order to delete these dll's? I get access denied errors trying to delete them.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

MPDano wrote:Do you know what process or service needs to be off in order to delete these dll's? I get access denied errors trying to delete them.
1) you really should create your own thread since it seems you have unrelated problems.

2) use Sysinternals Process explorer and find what process(es) have those dll handles open.
MPDano
Posts: 3
Joined: Fri Dec 01, 2006 4:35 pm

Post by MPDano »

RUM wrote:Hi there,

Just saw this post and it appears to be the same problem that I have.
I also checked how many cygwin1.dll copies I have and there seem to be 5, while apparently, there should be only one.
They are in the following paths:
C:\rddtool
C:\temp
C:\cacti2\cactid
C:\cygwin\bin
C:\backup\cacti2\cactid

Now, ofcourse I have to get rid of 4 of them, but which one should I keep?

Thanks in advance

Actually I was going off this post in this thread. It's the Web Publishing Service by the way.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests