No Graph

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

Moderators: Developers, Moderators

Post Reply
sirheaven
Posts: 9
Joined: Mon Oct 03, 2005 3:37 am

No Graph

Post by sirheaven »

Hi

I have a problem with a graph from a custome script.
I went trouht the steps of your documentation http://www.cacti.net/downloads/docs/htm ... graph.html .
No graph will created, but the rrd file will be updated every round. :cry:
I checked the logs i found the following passage:

10/19/2005 09:12:41 AM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=1129619557 --end=1129705957 --title="|host_description| - CPU Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/10/18 09\:12\:37 To 2005/10/19 09\:12\:37\c" COMMENT:" \n" --vertical-label="percent" --slope-mode AREA:#B1441E:"CPU Usage" GPRINT::LAST:"Current\:%8.0lf" GPRINT::AVERAGE:"Average\:%8.0lf" GPRINT::MAX:"Maximum\:%8.0lf"

On a good graph you will see this :

10/19/2005 09:12:32 AM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="NSBDN012 - Traffic - 4/7" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bytes per second" --slope-mode DEF:a="C\:/Apache2/htdocs/cacti/rra/nsbdn012_traffic_in_49.rrd":traffic_in:AVERAGE DEF:b="C\:/Apache2/htdocs/cacti/rra/nsbdn012_traffic_in_49.rrd":traffic_out:AVERAGE AREA:a#00CF00:"Inbound" GPRINT:a:LAST:" Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" LINE1:b#002A97:"Outbound" GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s"

Any ideas where i made a mistake?

Greetz
Chris

W2K3
Php 5
Latest Cacti (0.8.6g with patches)
Latest rrdtool (from your webside)
Latest MYSql version 4.1.14
Latest cactid version 0.8.6e
Last edited by sirheaven on Wed Oct 19, 2005 5:33 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

MySQL 5.x is not supported as of today.

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?
sirheaven
Posts: 9
Joined: Mon Oct 03, 2005 3:37 am

Post by sirheaven »

Hi Witness

I use MySQL 4.1 not the 5.x version.

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

Post by BSOD2600 »

1) Other graphs work fine?
2) manually run the rrdtool graph command output and see what the error(s) are. If you see a lot of gibberish, pipe it into a .png file and see if thats valid.
sirheaven
Posts: 9
Joined: Mon Oct 03, 2005 3:37 am

Post by sirheaven »

Hi BSOD2600

1. All other graphs woks fine.

2. when we run the the rrd tool manually its generate the graph with the corrcte values!

It seems that cacti not generate the complete command for the rrd tool. :(
The DEF Parameter doesn't exist. Look at the example :

10/19/2005 09:12:41 AM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=1129619557 --end=1129705957 --title="|host_description| - CPU Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/10/18 09\:12\:37 To 2005/10/19 09\:12\:37\c" COMMENT:" \n" --vertical-label="percent" --slope-mode AREA:#B1441E:"CPU Usage" GPRINT::LAST:"Current\:%8.0lf" GPRINT::AVERAGE:"Average\:%8.0lf" GPRINT::MAX:"Maximum\:%8.0lf"

On a good graph you will see this :

10/19/2005 09:12:32 AM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="NSBDN012 - Traffic - 4/7" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bytes per second" --slope-mode DEF:a="C\:/Apache2/htdocs/cacti/rra/nsbdn012_traffic_in_49.rrd":traffic_in:AVERAGE DEF:b="C\:/Apache2/htdocs/cacti/rra/nsbdn012_traffic_in_49.rrd":traffic_out:AVERAGE AREA:a#00CF00:"Inbound" GPRINT:a:LAST:" Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" LINE1:b#002A97:"Outbound" GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s"





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

Post by BSOD2600 »

If it's just one graph thats broken, try deleting and recreating it.

You're using rrdtool 1.2.11 ?
sirheaven
Posts: 9
Joined: Mon Oct 03, 2005 3:37 am

Post by sirheaven »

Hi

Yes just that Graph is broken.
I deleted this graph and the sources and creted it again. I did also repeated the How-to several times. But always the same result.

I use the rrdtool version:
RRDtool 1.2.11 Copyright 1997-2005 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Tue Aug 2 21:46:25 EST 2005

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

Post by BSOD2600 »

1) Have you applied the patches for cacti?
2) Did you specify (or double check) the data sources for that graph have been properly been selected?
3) When you recreated the graph, all you deleted was the graph template, right? Might need to delete the data source too (you can probably use the same rrd file again though) and recreate that as well.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest