RRDT tool not Graphing

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

Moderators: Developers, Moderators

Post Reply
wetryhard
Posts: 5
Joined: Thu Mar 03, 2011 8:51 am

RRDT tool not Graphing

Post by wetryhard »

Hi Everyone,

I really tried to gather as much info as i can to make this thread easy to understand and help you.
I used the installer to setup cacti on a CLEAN fresh install of Windows Server 2003 R2 (VM)
I used the installer "Cacti-0.8.7g_1.95.exe"
I included lots of screen shots and info.

My one and only problem is that the GRAPHs are not being generated.
Please help me

Operating System: Windows Server 2003 R2
Webserver: Virtual Machine
Cacti: 0.8.7g
MySQL: 5.1.50
PHP: 5.2.14
RRDTool (Cygwin or Win32 version): RRDTool 1.2.x (I believe it's 1.2.30)
Net-SNMP: 5.5

Cygwin (cygwin1.dll version):
Plugin Architecture:
Spine:

RRDTool Command:

C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="B002 Stack #2 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Apache2/htdocs/cacti/rra/3/11.rrd":5min_cpu:AVERAGE \
AREA:a#ED5394FF:"CPU Usage" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf" RRDTool Says:

ERROR: opening 'C:/Apache2/htdocs/cacti/rra/3/11.rrd': No such file or directory

Code: Select all

03/03/2011 08:15:09 AM - WEBUI: Cacti Log Cleared from Web Management Interface
03/03/2011 08:15:47 AM - AUTH LOGIN: User 'admin' Authenticated
03/03/2011 08:15:59 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'1064', SQL:"select id from graph_tree where id="
03/03/2011 09:14:01 AM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1299075241  --end=1299161641  --title="Switch - CPU Usage"  --rigid  --base=1000  --height=100  --width=300  --alt-autoscale-max  --lower-limit=0  --no-legend  COMMENT:"From 2011/03/02 09\:14\:01 To 2011/03/03 09\:14\:01\c"  COMMENT:"  \n"  --vertical-label="percent"  --slope-mode  --font TITLE:8.4:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  DEF:a="C\:/Apache2/htdocs/cacti/rra/3/11.rrd":5min_cpu:AVERAGE  AREA:a#ED5394FF:""   
03/03/2011 09:14:01 AM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1299075241  --end=1299161641  --title="Switch - Traffic"  --rigid  --base=1000  --height=100  --width=300  --alt-autoscale-max  --lower-limit=0  --no-legend  COMMENT:"From 2011/03/02 09\:14\:01 To 2011/03/03 09\:14\:01\c"  COMMENT:"  \n"  --vertical-label="bits per second"  --slope-mode  --font TITLE:8.4:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  CDEF:cdefa=a,8,*  AREA:cdefa#00CF00FF:""     LINE1:cdefa#002A97FF:""   
03/03/2011 09:14:01 AM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1299075241  --end=1299161641  --title="Switch - Temperature"  --base=1000  --height=100  --width=300  --alt-autoscale-max  --lower-limit=0  --no-legend  COMMENT:"From 2011/03/02 09\:14\:01 To 2011/03/03 09\:14\:01\c"  COMMENT:"  \n"  --vertical-label="degree"  --slope-mode  --font TITLE:8.4:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  DEF:a="C\:/Apache2/htdocs/cacti/rra/3/12.rrd":cisco_tempcur:AVERAGE  DEF:b="C\:/Apache2/htdocs/cacti/rra/3/13.rrd":cisco_tempthr:AVERAGE  AREA:a#00FF00FF:""   LINE2:b#009F67FF:""   
03/03/2011 09:14:01 AM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1299075241  --end=1299161641  --title="Switch - Traffic - Gi1/0/2"  --rigid  --base=1000  --height=100  --width=300  --alt-autoscale-max  --lower-limit=0  --no-legend  COMMENT:"From 2011/03/02 09\:14\:01 To 2011/03/03 09\:14\:01\c"  COMMENT:"  \n"  --vertical-label="bits per second"  --slope-mode  --font TITLE:8.4:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  DEF:a="C\:/Apache2/htdocs/cacti/rra/3/14.rrd":traffic_in:AVERAGE  DEF:b="C\:/Apache2/htdocs/cacti/rra/3/14.rrd":traffic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdefe=b,8,*  AREA:cdefa#00CF00FF:""   LINE1:cdefe#002A97FF:""   
03/03/2011 09:14:02 AM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1299075241  --end=1299161641  --title="Switch - CPU Usage"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  COMMENT:"From 2011/03/02 09\:14\:01 To 2011/03/03 09\:14\:01\c"  COMMENT:"  \n"  --vertical-label="percent"  --slope-mode  --font TITLE:12:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  DEF:a="C\:/Apache2/htdocs/cacti/rra/3/11.rrd":5min_cpu:AVERAGE  AREA:a#ED5394FF:"CPU Usage"   GPRINT:a:LAST:"Current\:%8.0lf"   GPRINT:a:AVERAGE:"Average\:%8.0lf"   GPRINT:a:MAX:"Maximum\:%8.0lf" 
03/03/2011 09:14:03 AM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1299075243  --end=1299161643  --title="Switch - Temperature"  --base=1000  --height=100  --width=300  --alt-autoscale-max  --lower-limit=0  --no-legend  COMMENT:"From 2011/03/02 09\:14\:03 To 2011/03/03 09\:14\:03\c"  COMMENT:"  \n"  --vertical-label="degree"  --slope-mode  --font TITLE:8.4:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  DEF:a="C\:/Apache2/htdocs/cacti/rra/3/12.rrd":cisco_tempcur:AVERAGE  DEF:b="C\:/Apache2/htdocs/cacti/rra/3/13.rrd":cisco_tempthr:AVERAGE  AREA:a#00FF00FF:""   LINE2:b#009F67FF:""   
03/03/2011 09:14:03 AM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1299075243  --end=1299161643  --title="Switch - CPU Usage"  --rigid  --base=1000  --height=100  --width=300  --alt-autoscale-max  --lower-limit=0  --no-legend  COMMENT:"From 2011/03/02 09\:14\:03 To 2011/03/03 09\:14\:03\c"  COMMENT:"  \n"  --vertical-label="percent"  --slope-mode  --font TITLE:8.4:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  DEF:a="C\:/Apache2/htdocs/cacti/rra/3/11.rrd":5min_cpu:AVERAGE  AREA:a#ED5394FF:""   
03/03/2011 09:14:03 AM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1299075243  --end=1299161643  --title="Switch - Traffic"  --rigid  --base=1000  --height=100  --width=300  --alt-autoscale-max  --lower-limit=0  --no-legend  COMMENT:"From 2011/03/02 09\:14\:03 To 2011/03/03 09\:14\:03\c"  COMMENT:"  \n"  --vertical-label="bits per second"  --slope-mode  --font TITLE:8.4:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  CDEF:cdefa=a,8,*  AREA:cdefa#00CF00FF:""     LINE1:cdefa#002A97FF:""   
03/03/2011 09:14:03 AM - WEBLOG: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe graph -  --imgformat=PNG  --start=1299075243  --end=1299161643  --title="Switch - Traffic - Gi1/0/2"  --rigid  --base=1000  --height=100  --width=300  --alt-autoscale-max  --lower-limit=0  --no-legend  COMMENT:"From 2011/03/02 09\:14\:03 To 2011/03/03 09\:14\:03\c"  COMMENT:"  \n"  --vertical-label="bits per second"  --slope-mode  --font TITLE:8.4:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  DEF:a="C\:/Apache2/htdocs/cacti/rra/3/14.rrd":traffic_in:AVERAGE  DEF:b="C\:/Apache2/htdocs/cacti/rra/3/14.rrd":traffic_out:AVERAGE  CDEF:cdefa=a,8,*  CDEF:cdefe=b,8,*  AREA:cdefa#00CF00FF:""   LINE1:cdefe#002A97FF:""   
Attachments
Device Details
Device Details
DetailDevice.PNG (108.83 KiB) Viewed 2375 times
Status Unkown
Status Unkown
Unkown.PNG (59.66 KiB) Viewed 2375 times
Little Read X on Graph
Little Read X on Graph
RedX.PNG (49.97 KiB) Viewed 2375 times
haveaday
Posts: 6
Joined: Thu Mar 03, 2011 9:51 am

Re: RRDT tool not Graphing

Post by haveaday »

I'm fairly certain that your problem is a polling problem and not graphing problem. Did you notice the MySQL error 1064? That's a syntax error. I'm wondering if your MySQL DB was created correctly for Cacti. If this is a fresh install would it be too much work to drop the DB and then rerun the sql script that came with Cacti? If not I'd start there with a clean config.

Ben
wetryhard
Posts: 5
Joined: Thu Mar 03, 2011 8:51 am

Re: RRDT tool not Graphing

Post by wetryhard »

Sounds interesting the point you made but I noticed that
ERROR: opening 'C:/Apache2/htdocs/cacti/rra/3/11.rrd': No such file or directory

That doesn't exist because it doesn't create it, could it be that's why i get the 1064 SQL error?
wetryhard
Posts: 5
Joined: Thu Mar 03, 2011 8:51 am

Re: RRDT tool not Graphing

Post by wetryhard »

I just downloaded the .CSV file from the graph window.
Is it a normal output?
Title: SWITCH - CPU Usage""
Vertical Label: percent""
Start Date: 12/31/1969 19:00
End Date: 12/31/1969 19:00
Step:
Total Rows:
Graph ID: 11
Host ID: 3

Date
wetryhard
Posts: 5
Joined: Thu Mar 03, 2011 8:51 am

Re: RRDT tool not Graphing

Post by wetryhard »

I just installed CYGWIN
Not sure how that will affect anything.
But I am just letting everyone know.
haveaday
Posts: 6
Joined: Thu Mar 03, 2011 9:51 am

Re: RRDT tool not Graphing

Post by haveaday »

wetryhard wrote:Sounds interesting the point you made but I noticed that
ERROR: opening 'C:/Apache2/htdocs/cacti/rra/3/11.rrd': No such file or directory

That doesn't exist because it doesn't create it, could it be that's why i get the 1064 SQL error?

I think it's the other way around. The .rrd files are created by the poller. It looks like the poller can't get started on its run because of the SQL error.

Ben
wetryhard
Posts: 5
Joined: Thu Mar 03, 2011 8:51 am

Re: RRDT tool not Graphing

Post by wetryhard »

haveaday wrote:
wetryhard wrote:Sounds interesting the point you made but I noticed that
ERROR: opening 'C:/Apache2/htdocs/cacti/rra/3/11.rrd': No such file or directory

That doesn't exist because it doesn't create it, could it be that's why i get the 1064 SQL error?

I think it's the other way around. The .rrd files are created by the poller. It looks like the poller can't get started on its run because of the SQL error.

Ben

Do you have any clue on how to debug it and solve this issue?
haveaday
Posts: 6
Joined: Thu Mar 03, 2011 9:51 am

Re: RRDT tool not Graphing

Post by haveaday »

Did you try dropping the cacti database and rerunning the sql script to create it?

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

Re: RRDT tool not Graphing

Post by BSOD2600 »

Have you read/followed the guides in http://forums.cacti.net/viewtopic.php?f=3&t=11747 yet?
Did you follow the installer's post-install instructions?
Cacti technical support page show any errors?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests