I cannot see my graphs although RRD files are updated

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

Moderators: Developers, Moderators

doilikeit
Posts: 8
Joined: Mon Oct 17, 2005 10:42 pm

I cannot see my graphs although RRD files are updated

Post by doilikeit »

Hello there,
Please help me with this Cacti installation.

Here is my system environment.

Windows Server 2003 SP1
PHP: 5.0.5, IIS6, RRDTool-cygwin-1.2.10 from cacti download, MySql 4.1.14, Net-Snmp 5.2.1.2-1, and Cacti 0.8.6g with all patches.

My problem is that I cannot see any graphs after installation of all the cacti and population of devices and graphs. :roll:
I have checked the cacti.log file and could not find any errors. Please help me to fix it.
I attach the log from one poll of my poller.php, the output of 'php-win c:\inetpub\wwwroot\cacti\cmd.php

Thanks
Attachments
cacti.log.txt
(153.42 KiB) Downloaded 210 times
cmd.php.log.txt
(4.28 KiB) Downloaded 157 times
cacti.GIF
cacti.GIF (92.19 KiB) Viewed 3574 times
doilikeit
Posts: 8
Joined: Mon Oct 17, 2005 10:42 pm

Strange path found in the graph properties

Post by doilikeit »

Hello there,
I have found a bit strange path in the graph properties and I feel that this could be the cause of my proble. I have captured it and attach it below. I do not know where to fix it.
I the graph properties, I found below sentence
DEF:a="c\:/inetpub/wwwroot/cacti/rra/shanghairepofficerouter_5min_cpu_17.rrd":5min_cpu:AVERAGE \

I think the \ just in between 'c' and ':' should not be placed here but I do not knwo where I can fix it.
Attachments
graph-properties.GIF
graph-properties.GIF (59.28 KiB) Viewed 3565 times
graph.properities.txt
(519 Bytes) Downloaded 172 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Sounds like you didn't set up permissions on cmd.exe. Read my updated installation guide: http://bsod2600.home.comcast.net/install_windows.html

2) Yes, that extra slash is suppose to be in your rrdtool command. Thats just the way it does it.
doilikeit
Posts: 8
Joined: Mon Oct 17, 2005 10:42 pm

Post by doilikeit »

I have given the necessary permissions(Read&Execute, Read) on cmd.exe to IUSR_xxx and IIS_WPG users. But I do not know why... :-?
I really need to have this Cacti run to complete my work. :(

Any Ideas ? Please help me....

Thank you for your help
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) are rrd files being generated and updated?
2) Copy the rrdtool graph command as seen in your second picture and run that yourself. What error do you see (if you see a lot of gibberish, pipe it into a .png file and see if it's valid) ?
doilikeit
Posts: 8
Joined: Mon Oct 17, 2005 10:42 pm

Post by doilikeit »

Hello BSOD2600,

I did what you suggested in the previous reply and got one error

C:\Documents and Settings\jchom>c:/rrdtool/rrdtool.exe graph - --imgformat=PNG -
-start=-86400 --end=-300 --title="Shanghai-RepOffice-Router - 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/shanghairepofficerouter_traffic_in_30.rrd":traffic_in:AVERAGE DEF:b="c\:/in
etpub/wwwroot/cacti/rra/shanghairepofficerouter_traffic_in_30.rrd":traffic_out:A
VERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdef
a: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:LA
ST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe
:MAX:"Maximum\:%8.2lf %s\n" COMMENT:"\n" HRULE:0#FF0000:"95th Percentile" COM
MENT:"(0 mbit in+out)" >a.png
ERROR: failed to load c:windowsfontsarialn.ttf

Thank you for your quick reply and help with this Cacti stuff.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ah, so you forgot to specify a font file in cacti settings | path. Do so and then see what error you get.
doilikeit
Posts: 8
Joined: Mon Oct 17, 2005 10:42 pm

Post by doilikeit »

The path to font files had been there, I have double-checked when I got the error message and reseted it. I did a reboot on my system.

It seems that I have issue with my rrdtool.exe program, this time, my system threw an error with "c:\rrdtool\rrdtool.exe is not a valid Win32 application.

Please advise me with this error

Thank you. :roll:
doilikeit
Posts: 8
Joined: Mon Oct 17, 2005 10:42 pm

Post by doilikeit »

I have downloaded a rrdtool version 1.2.11 with Cygwin and replaced the old one with this new one.

I executed the same command and did not get any error.
I have checked the piped .png and it generated a wonderful graph :D

It seems that I am getting close to there with your great help.

I will updates you with my final result.

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

Post by BSOD2600 »

Ahh, you used the wrong rrdtool, wouldn't be the first ;-)

Are you able to view the graphs fine now (you should, since the rrdtool graph command worked) ?
doilikeit
Posts: 8
Joined: Mon Oct 17, 2005 10:42 pm

Post by doilikeit »

I have downloaded a rrdtool version 1.2.11 with Cygwin and replaced the old one with this new one.

I executed the same command and did not get any error.
I have checked the piped .png and it generated a wonderful graph :D

It seems that I am getting close to there with your great help.

I will updates you with my final result.

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

Post by BSOD2600 »

umm, deja-vu ?
doilikeit
Posts: 8
Joined: Mon Oct 17, 2005 10:42 pm

Post by doilikeit »

Hello BSOD2600,

I appreciate your help a lot.
Thank you a bunch.

Finally, my cacti is working fine with no errors. I am really excited with this result as I have been working on it for almost 2 weeks to troulbeshoot it.

By the way, one more questions, I want to put some meanful descriptions in my graphs for my customers to understand it more easily.
do you know how I can do it?

Thank you. :D
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Edit the graph in graph management and put in what you want.
Big Al
Posts: 1
Joined: Fri Nov 04, 2005 9:54 am

What did you do to fix it?

Post by Big Al »

I am having the EXACT same problem. The .png file is created when I run it from the command prompt.

What exactly did you do to fix the problem? This is driving me batty!

I hate running it on Windows, but it is the only server we have to use. :evil:

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests