Windows 2000 / 2k3 Disk Statistics

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

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.
s16pt
Posts: 17
Joined: Mon Sep 12, 2005 12:03 am

Post by s16pt »

I follow your step and get correct graph.
Thank you...
joshm
Cacti User
Posts: 82
Joined: Mon Oct 03, 2005 1:34 pm
Location: STL

Post by joshm »

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
s24sean
Posts: 14
Joined: Sun Dec 18, 2005 1:34 pm

Upgrade to H killed stats

Post by s24sean »

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)'
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

that's because the DOS commandline can't handle such long string as parameters, not real reason for this problem..
Phobos182
Cacti User
Posts: 65
Joined: Tue Sep 21, 2004 2:22 pm
Location: Madison, WI

Post by Phobos182 »

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.
[size=84][color=red] Electronic Frontier Foundation[/color]
[url]http://eff.org[/url][/size]
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

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.
Attachments
Snap1.gif
Snap1.gif (8.99 KiB) Viewed 19792 times
Snap2.gif
Snap2.gif (33.57 KiB) Viewed 19792 times
User avatar
chkaotic
Posts: 11
Joined: Wed Oct 06, 2004 3:17 pm
Location: Wichita, KS

Post by chkaotic »

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..
^
chkaotic
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Re: Upgrade to H killed stats

Post by rony »

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.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Re: Upgrade to H killed stats

Post by dust2k »

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 .
User avatar
ajohnson
Posts: 36
Joined: Tue Dec 27, 2005 5:36 pm

TTT

Post by ajohnson »

Any chance someone has figured out how to fix this?
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

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...
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

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.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

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
joshm
Cacti User
Posts: 82
Joined: Mon Oct 03, 2005 1:34 pm
Location: STL

Post by joshm »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests