|
|
| Author |
Message |
dust2k Cacti User
Joined: 04 Dec 2005 Posts: 85
|
Posted: Thu Jan 05, 2006 9:13 am Post subject: |
|
|
| joshm wrote: | Just upgraded to H and it seems to have killed all existing graphs for this template.... Any ideas? At a glance it appears everything else went ok with the upgrade.
-Josh |
I had the same problems, must be something wrong.
|
|
| Back to top |
|
 |
s16pt
Joined: 12 Sep 2005 Posts: 17
|
Posted: Fri Jan 06, 2006 1:17 am Post subject: |
|
|
I follow your step and get correct graph.
Thank you...
|
|
| Back to top |
|
 |
joshm Cacti User
Joined: 03 Oct 2005 Posts: 62 Location: STL
|
Posted: Fri Jan 06, 2006 8:11 am Post subject: |
|
|
| s16pt wrote: | I follow your step and get correct graph.
Thank you... |
Are you using the latest CactiH release that was just released a few days ago or G?? I tried reimporting/setting up this template and still never get any graphs returned any longer.
-Josh
|
|
| Back to top |
|
 |
s24sean
Joined: 18 Dec 2005 Posts: 14
|
Posted: Mon Jan 09, 2006 10:50 am Post subject: Upgrade to H killed stats |
|
|
Good morning,
I upgraded to version H over the weekend and the dist stats seems to be having an issue.
when I turn on Graph Debug Mode, I get the following error.
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="db1caldca - Disk - C:" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Unit" \
DEF:a="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentDiskWriteTim:LAST \
DEF:b="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentDiskReadTime:LAST \
DEF:c="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentFreeSpace:LAST \
DEF:f="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentDiskReadTime:LAST \
DEF:g="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentFreeSpace:LAST \
DEF:h="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":FreeMegabytes:LAST \
DEF:i="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskReadPerSec:LAST \
DEF:j="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskWritePerSec:LAST \
CDEF:cdefbc=h,1024,/ \
CDEF:cdefdc=a,0,*,100,+ \
AREA:a#2175D9:"Write Time(%)" \
AREA:f#8D85F3:"Read Time(%)" \
LINE1:c#FF0000:"Read Queue\:" \
LINE1:d#00FF00:"Write Queue\:" \
LINE2:g#000000:"" \
LINE1:f#000000:"" \
LINE1:g#FF5F00:"Free Space (%)\n" \
COMMENT:"Statistics" \
GPRINT:f:LAST:" Read\: (%1.1lf %%)" \
GPRINT:a:LAST:"Write\: (%1.1lf %%)" \
GPRINT:g:LAST:"Free\: (%1.1lf %%)" \
LINE1:h:"Available\:" \
GPRINT:cdefbc:LAST:" Available\: %5.2lf Gb\n" \
COMMENT:"Read IO / sec:" \
LINE1:i:"Read /s\:\n" \
GPRINT:i:LAST:" Current\:%8.0lf" \
GPRINT:i:AVERAGE:"Average\:%8.0lf" \
GPRINT:i:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write IO / sec:" \
LINE1:j:"Write /s" \
GPRINT:j:LAST:" Current\:%8.0lf" \
GPRINT:j:AVERAGE:"Average\:%8.0lf" \
GPRINT:j:MAX:"Maximum\:%8.0lf\n" \
LINE1::"Free Space (Mb)" \
COMMENT:"Read Queue:" \
GPRINT:c:LAST:" Current\:%8.0lf" \
GPRINT:c:AVERAGE:"Average\:%8.0lf" \
GPRINT:c:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write Queue:" \
GPRINT:d:LAST:" Current\:%8.0lf" \
GPRINT:d:AVERAGE:"Average\:%8.0lf" \
GPRINT:d:MAX:"Maximum\:%8.0lf\n" \
LINE1:cdefdc#FFFFFF:""
RRDTool Says:
ERROR: can't parse ':Free Space (Mb)'
|
|
| Back to top |
|
 |
dust2k Cacti User
Joined: 04 Dec 2005 Posts: 85
|
Posted: Tue Jan 10, 2006 8:37 am Post subject: |
|
|
| that's because the DOS commandline can't handle such long string as parameters, not real reason for this problem..
|
|
| Back to top |
|
 |
Phobos182 Cacti User
Joined: 21 Sep 2004 Posts: 65 Location: Madison, WI
|
Posted: Mon Jan 16, 2006 2:17 pm Post subject: |
|
|
| Quote: | DEF:a="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentDiskWriteTim:LAST \
DEF:b="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentDiskReadTime:LAST \
DEF:c="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentFreeSpace:LAST \
DEF:f="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentDiskReadTime:LAST \
DEF:g="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentFreeSpace:LAST \
DEF:h="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":FreeMegabytes:LAST \
DEF:i="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskReadPerSec:LAST \
DEF:j="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskWritePerSec:LAST \ |
I apologize for not getting back sooner, it's been a busy new years.
It looks like the Data Source matching for the graph got screwed up. I have not had any time to upgrade to the newest Cacti release. Off the top of my head, go into "Graph Management", click on the graph and question, and then set the Data Sources to the correct values. Like
Data Source [AvgDiskReadPerSec] = HOSTNAME - Disk Stats - E: (AvgDiskReadPerSec)
That should work.
|
|
| Back to top |
|
 |
dust2k Cacti User
Joined: 04 Dec 2005 Posts: 85
|
Posted: Tue Jan 17, 2006 7:14 pm Post subject: |
|
|
Weired thing is I can't save them except FreeMegabytes, I used to change the graph template to see what's wrong, but I have already re-import the original one.
I think I found some problem, for whatever reason, new 0.8.6h version doesn't let those comments, Gprint graph item handle their index value like disk C, D, E, F ... this is caused graph doesn't display, so if u delete all these non area or line field, graph will be displayed, but I don't know how to fixed the original XML to get full graph displayed.
| Description: |
|
| Filesize: |
33.57 KB |
| Viewed: |
9266 Time(s) |

|
| Description: |
|
| Filesize: |
8.99 KB |
| Viewed: |
9266 Time(s) |

|
|
|
| Back to top |
|
 |
chkaotic
Joined: 06 Oct 2004 Posts: 11 Location: Wichita, KS
|
Posted: Wed Jan 18, 2006 1:50 pm Post subject: |
|
|
I have an interesting problem w/ this graph:
I have everything working, no errors, but the Free Space (Mb) comes back as 0 all the time.
I have checked the query .xml file for the OID and snmpwalked it to get the correct return value, I have also set the log to medium and watched it say it returned the correct value, but that value is not making it to my graph.
The data sources match up in the graph, and they match up in the query as well.. am I missing something?
I setup a separate data source/template for SNMP (unindexed) and pointed it to that oid, and it graphs fine.. but i still get a 0 value from the original graph..
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5469 Location: Wisconsin, USA
|
Posted: Wed Jan 18, 2006 10:42 pm Post subject: Re: Upgrade to H killed stats |
|
|
| s24sean wrote: | Good morning,
I upgraded to version H over the weekend and the dist stats seems to be having an issue.
when I turn on Graph Debug Mode, I get the following error.
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="db1caldca - Disk - C:" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Unit" \
DEF:a="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentDiskWriteTim:LAST \
DEF:b="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentDiskReadTime:LAST \
DEF:c="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentFreeSpace:LAST \
DEF:f="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentDiskReadTime:LAST \
DEF:g="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":PercentFreeSpace:LAST \
DEF:h="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":FreeMegabytes:LAST \
DEF:i="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskReadPerSec:LAST \
DEF:j="/var/www/cacti/rra/db1caldca_avgdiskwritepersec_375.rrd":AvgDiskWritePerSec:LAST \
CDEF:cdefbc=h,1024,/ \
CDEF:cdefdc=a,0,*,100,+ \
AREA:a#2175D9:"Write Time(%)" \
AREA:f#8D85F3:"Read Time(%)" \
LINE1:c#FF0000:"Read Queue\:" \
LINE1:d#00FF00:"Write Queue\:" \
LINE2:g#000000:"" \
LINE1:f#000000:"" \
LINE1:g#FF5F00:"Free Space (%)\n" \
COMMENT:"Statistics" \
GPRINT:f:LAST:" Read\: (%1.1lf %%)" \
GPRINT:a:LAST:"Write\: (%1.1lf %%)" \
GPRINT:g:LAST:"Free\: (%1.1lf %%)" \
LINE1:h:"Available\:" \
GPRINT:cdefbc:LAST:" Available\: %5.2lf Gb\n" \
COMMENT:"Read IO / sec:" \
LINE1:i:"Read /s\:\n" \
GPRINT:i:LAST:" Current\:%8.0lf" \
GPRINT:i:AVERAGE:"Average\:%8.0lf" \
GPRINT:i:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write IO / sec:" \
LINE1:j:"Write /s" \
GPRINT:j:LAST:" Current\:%8.0lf" \
GPRINT:j:AVERAGE:"Average\:%8.0lf" \
GPRINT:j:MAX:"Maximum\:%8.0lf\n" \
LINE1::"Free Space (Mb)" \
COMMENT:"Read Queue:" \
GPRINT:c:LAST:" Current\:%8.0lf" \
GPRINT:c:AVERAGE:"Average\:%8.0lf" \
GPRINT:c:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write Queue:" \
GPRINT:d:LAST:" Current\:%8.0lf" \
GPRINT:d:AVERAGE:"Average\:%8.0lf" \
GPRINT:d:MAX:"Maximum\:%8.0lf\n" \
LINE1:cdefdc#FFFFFF:""
RRDTool Says:
ERROR: can't parse ':Free Space (Mb)' |
Just a note to the template developer. This is an issue, because in 0.8.6h, we change the way graph items are processed. Items which did not have a color in the past would not be rendered on the graph, this behavor has changed, they are now rendered. Also RRDTool 1.0.x is more forgiving in the syntax, but 1.2.x is not.
Please contact me so that I can help with this situation.
|
|
| Back to top |
|
 |
dust2k Cacti User
Joined: 04 Dec 2005 Posts: 85
|
Posted: Thu Jan 19, 2006 7:20 pm Post subject: Re: Upgrade to H killed stats |
|
|
| rony wrote: |
Just a note to the template developer. This is an issue, because in 0.8.6h, we change the way graph items are processed. Items which did not have a color in the past would not be rendered on the graph, this behavor has changed, they are now rendered. Also RRDTool 1.0.x is more forgiving in the syntax, but 1.2.x is not.
Please contact me so that I can help with this situation. |
that's what I wanna know the changes between g and h, because everything point to version h for the problem of this graph, anyway, is that change is the only change for graph between those two version? I feel some other cross reference for subitem has been lost.
I don't think rrdtool 1.2.x is the reason to cause this problem because previous 0.8.6g is using 1.2.x .
|
|
| Back to top |
|
 |
ajohnson
Joined: 27 Dec 2005 Posts: 36
|
Posted: Mon Jan 23, 2006 11:42 am Post subject: TTT |
|
|
| Any chance someone has figured out how to fix this?
|
|
| Back to top |
|
 |
argon0 Cacti User
Joined: 12 Mar 2004 Posts: 238
|
Posted: Thu Jan 26, 2006 10:09 am Post subject: |
|
|
Just downloaded and tried out - got an error to do with no colour assigned to various graphed variables.
Went to the template and chose some colours for the line variables...
Also the FreeMB variable had no data source associated with it so had to associate the w32 - disk statistics (Free Megabytes) source, all done from graph template...
seems to be working... time will tell...
At least I've now worked out how to graph multiple CPUs on the same graph... I think...
|
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5469 Location: Wisconsin, USA
|
Posted: Thu Jan 26, 2006 11:38 am Post subject: |
|
|
Here's the scoop...
In version previous to 0.8.6h, graph items that did not have a color assigned, that where of the types: LINE123, AREA and STACK, where not passed to rrdtool as items on the graph, but the defs where still added.
In version after and including 0.8.6h, graph items that do have have a color are rendered on the graph. This change was to allow for more functional graphs to be created. I made some attempts to fix broken graphs, which did fix most issues for people. But this template, and they way it's written, don't play nice with the new constraints.
I can only suggest that the graph templates be updated to work properly with 0.8.6h, as this change will not be reversed.
|
|
| Back to top |
|
 |
dust2k Cacti User
Joined: 04 Dec 2005 Posts: 85
|
Posted: Sun Jan 29, 2006 8:58 pm Post subject: |
|
|
sooner after adding on colors to all elements, everything go back to normal except the FreeMegabytes, I can't make it work because no matter what I put on, it always show 0.00Gb and the value of data is exist in rrd file, for some how the cacti just can't pick it up.
Found the problem
CACTI2RRD: D:/rrdtool_cygwin/rrdtool.exe graph - --imgformat=PNG --start=1138511460 --end=1138597860 --title="Mainserver - Disk Stats E:" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2006/01/29 16\:11\:00 To 2006/01/30 16\:11\:00\c" COMMENT:" \n" --vertical-label="Unit (Percent / time slice)" --slope-mode
DEF:a="G:\cacti/rra/mainserver_avgdiskwritequeuele_82.rrd":PercentDiskWriteTim:LAST
DEF:b="G:\cacti/rra/mainserver_avgdiskwritequeuele_82.rrd":PercentDiskReadTime:LAST
DEF:c="G:\cacti/rra/mainserver_avgdiskwritequeuele_82.rrd":AvgDiskReadQueueLen:LAST
DEF:d="G:\cacti/rra/mainserver_avgdiskwritequeuele_82.rrd":AvgDiskWriteQueueLe:LAST
DEF:e="G:\cacti/rra/mainserver_avgdiskwritequeuele_82.rrd":PercentFreeSpace:LAST
DEF:f="G:\cacti/rra/mainserver_avgdiskwritequeuele_82.rrd":PercentDiskReadTime:LAST
DEF:g="G:\cacti/rra/mainserver_avgdiskwritequeuele_82.rrd":PercentFreeSpace:LAST
DEF:h="G:\cacti/rra/mainserver_avgdiskwritequeuele_82.rrd":AvgDiskReadPerSec:LAST
DEF:i="G:\cacti/rra/mainserver_avgdiskwritequeuele_82.rrd":AvgDiskWritePerSec:LAST CDEF:cdefbb=a,1024,/ AREA:a#2175D9:"Write Time(%)" AREA:f#FF6044:"Read Time(%)" LINE1:c#F5F800:"Read Queue\:" LINE1:d#00FF00:"Write Queue\:" LINE2:g#000000:"" LINE1:f#00A348:"" LINE1:g#002A97:"Free Space (%)\n" COMMENT:"Statistics" GPRINT:f:LAST:" Read\: (%1.1lf %%)" GPRINT:a:LAST:"Write\: (%1.1lf %%)" GPRINT:g:LAST:"Free\: (%1.1lf %%)" GPRINT:cdefbb:AVERAGE:"Available \: %5.2lf Gb\n" <---- (this should refer to FreeMegaBytes) COMMENT:"Read IO / sec\:" LINE1:h#8F9286:"Read /s\:" GPRINT:h:LAST:" Current\:%8.0lf" GPRINT:h:AVERAGE:"Average\:%8.0lf" GPRINT:h:MAX:"Maximum\:%8.0lf\n" COMMENT:"Write IO / sec\:" LINE1:i#FF6044:"Write /s" GPRINT:i:LAST:" Current\:%8.0lf" GPRINT:i:AVERAGE:"Average\:%8.0lf" GPRINT:i:MAX:"Maximum\:%8.0lf\n" COMMENT:"Read Queue\:" GPRINT:c:LAST:"Current\:%8.0lf" GPRINT:c:AVERAGE:"Average\:%8.0lf" GPRINT:c:MAX:"Maximum\:%8.0lf\n" COMMENT:"Write Queue\:" GPRINT:d:LAST:"Current\:%8.0lf" GPRINT:d:AVERAGE:"Average\:%8.0lf" GPRINT:d:MAX:"Maximum\:%8.0lf\n"
it's looks like a bug, if any item doesn't display by AREA, LINE, then it won't go to DEF lists, then any GPrint use the item will just reference the first DEF one, that's certainly not right. see the red color text you see what I mean.
| chkaotic wrote: | I have an interesting problem w/ this graph:
I have everything working, no errors, but the Free Space (Mb) comes back as 0 all the time.
|
you need add a FreeMegabytes as a Line/Area/Stack item to your graph, then the number will shows correctly
|
|
| Back to top |
|
 |
joshm Cacti User
Joined: 03 Oct 2005 Posts: 62 Location: STL
|
Posted: Mon Jan 30, 2006 8:33 am Post subject: |
|
|
| dust2k wrote: | sooner after adding on colors to all elements, everything go back to normal except the FreeMegabytes, I can't make it work because no matter what I put on, it always show 0.00Gb and the value of data is exist in rrd file, for some how the cacti just can't pick it up.
|
Any chance you could export your now color selected and fixed template that u fixed yourself?
Thanks
-Josh
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|