Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Windows 2000 / 2k3 Disk Statistics
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
dust2k
Cacti User


Joined: 04 Dec 2005
Posts: 85

PostPosted: Mon Jan 30, 2006 7:44 pm    Post subject: Reply with quote

joshm wrote:
Any chance you could export your now color selected and fixed template that u fixed yourself?


no problem at all, Here it is



Snap1.gif
 Description:
 Filesize:  19.1 KB
 Viewed:  10023 Time(s)

Snap1.gif



cacti_graph_template_w32_disk_statistics.xml
 Description:
bug fixed version

Download
 Filename:  cacti_graph_template_w32_disk_statistics.xml
 Filesize:  31.74 KB
 Downloaded:  1426 Time(s)

Back to top
joshm
Cacti User


Joined: 03 Oct 2005
Posts: 62
Location: STL

PostPosted: Thu Feb 02, 2006 3:02 pm    Post subject: Reply with quote

Thanks for posting but still having issues with these graphs... A debug of the graph and I get the following...

RRDTool Command:

n:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="AlphaSQL (SQL3) - Disk - E:" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Unit (Percent / time slice)" \
--slope-mode \
--font TITLE:10:c:/winnt/fonts/timesbd.ttf \
--font AXIS:9:c:/winnt/fonts/arial.ttf \
--font LEGEND:11:c:/winnt/fonts/arial.ttf \
--font UNIT:9:c:/winnt/fonts/arial.ttf \
DEF:a="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentDiskReadTime:LAST \
DEF:b="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentDiskWriteTim:LAST \
DEF:c="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentFreeSpace:LAST \
DEF:f="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentDiskReadTime:LAST \
DEF:g="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":AvgDiskReadPerSec:LAST \
DEF:h="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":AvgDiskWritePerSec:LAST \
DEF:i="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentFreeSpace:LAST \
DEF:j="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":FreeMegabytes:LAST \
DEF:ba="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":FreeMegabytes:LAST \
CDEF:cdefbd=ba,1024,/ \
CDEF:cdefdc=ba,1048576,/ \
CDEF:cdefdd=a,0,*,100,+ \
AREA:f#FF6044:"Read Time(%)" \
AREA:b#00BED9:"Write Time(%)" \
LINE1:c#F5F800:"Read Queue\:" \
LINE1:d#00FF00:"Write Queue\:\n" \
LINE2:i#000000:"" \
LINE1:f#000000:"" \
LINE1:g#0000FF:"Read /s\:" \
LINE1:h#DE0056:"Write /s" \
LINE1:i#000000:"Free Space (%)\n" \
COMMENT:"Statistics" \
GPRINT:f:LAST:" Read\: (%1.1lf %%)" \
GPRINT:b:LAST:"Write\: (%1.1lf %%)" \
GPRINT:i:LAST:"Free\: (%1.1lf %%)" \
GPRINT:cdefbd:AVERAGE:"Available \: %5.2lf Gb\n" \
LINE1:ba:"Available\:" \
COMMENT:"Read IO / sec\:" \
GPRINT:g:LAST:" Current\:%8.0lf" \
GPRINT:g:AVERAGE:"Average\:%8.0lf" \
GPRINT:g:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write IO / sec\:" \
GPRINT:h:LAST:" Current\:%8.0lf" \
GPRINT:h:AVERAGE:"Average\:%8.0lf" \
GPRINT:h: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" \
LINE1::"Free Space (Mb)" \
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:"" \
LINE1:cdefdd#FFFFFF:""

RRDTool Says:

ERROR: Legend set but no color: Available\:


Cancel
Back to top
dust2k
Cacti User


Joined: 04 Dec 2005
Posts: 85

PostPosted: Thu Feb 02, 2006 6:31 pm    Post subject: Reply with quote

Oooops, I found that one have some problem, here is the new one, but both of them works for me, I use poller.php instead of cactid.

after you import the graph template, you may need go to each graph to re-mapping those data source fields.



cacti_graph_template_w32_disk_statistics.xml
 Description:
new one.

Download
 Filename:  cacti_graph_template_w32_disk_statistics.xml
 Filesize:  31.74 KB
 Downloaded:  1684 Time(s)

Back to top
phantom_rgs



Joined: 16 Jan 2006
Posts: 38
Location: Brasil

PostPosted: Thu Feb 23, 2006 8:30 am    Post subject: broken graphs Reply with quote

in my hosts the graphs are show as broken

what i do?
Back to top
BobDole



Joined: 03 Dec 2005
Posts: 2

PostPosted: Thu Feb 23, 2006 4:36 pm    Post subject: Reply with quote

I'm also getting errors:

[cut out details]
RRDTool Says:

ERROR: Legend set but no color: \n

I just upgraded to 0.8.6h this morning and these graphs broke. I've imported the last updated template that was posted but no luck.
Back to top
argon0
Cacti User


Joined: 12 Mar 2004
Posts: 238

PostPosted: Fri Feb 24, 2006 4:33 am    Post subject: Reply with quote

The graph breaks with h, its simple to fix though and has been discussed above.

Just goto graph templates, click on the right one, one of the line items won't have a colour associated with it, click on that item and assign a colour. Ry viola, your graph should work.

Argon0
Back to top
BobDole



Joined: 03 Dec 2005
Posts: 2

PostPosted: Thu Mar 02, 2006 1:02 pm    Post subject: Reply with quote

argon0 wrote:
The graph breaks with h, its simple to fix though and has been discussed above.

Just goto graph templates, click on the right one, one of the line items won't have a colour associated with it, click on that item and assign a colour. Ry viola, your graph should work.

Argon0


Argon0

I've added the missing color but I continue to get errors. I'm having difficulties interpreting the specific line that's having trouble. When I read the debug output the colors it lists for certain lines do not correspond to the graph template config. That or I'm just reading it wrong.
Back to top
argon0
Cacti User


Joined: 12 Mar 2004
Posts: 238

PostPosted: Fri Mar 03, 2006 4:45 am    Post subject: Reply with quote

Can you post your Graph Debug here please?
Back to top
EC



Joined: 06 Mar 2006
Posts: 5

PostPosted: Wed Mar 08, 2006 9:57 pm    Post subject: Reply with quote

rj wrote:
Problem solved, Typo error in XML file snmp_informant_disk.xml.


Mind sharing where the typo is? I've got those same errors and can't figure it out.
Back to top
kelbyc



Joined: 28 Nov 2005
Posts: 44

PostPosted: Wed Mar 22, 2006 11:32 am    Post subject: 0.8.6h? Reply with quote

Has anyone finally got this workign with 0.8.6h?? If so can you please post your data query template and graph template? I've tried this version and one from another post but 0.8.6h just won't do it. The graphs show up as a red X. Everything seems to be right and I even assigned a color to every graph item but I still get the red X.
Back to top
dt9394



Joined: 10 Apr 2006
Posts: 3

PostPosted: Tue Apr 11, 2006 11:38 pm    Post subject: rrdtool problem? Reply with quote

my graph sometime is "corrupted" especially the "Available" value in rra file is misplaced.
anyone have the same problem?
Back to top
usefulidiot010



Joined: 14 Apr 2006
Posts: 1

PostPosted: Fri Apr 14, 2006 8:31 am    Post subject: Reply with quote

this seems like a really useful graph and seems to run the snmp query correctly yet for some reason the RRA is never created on my system.

is anyone else having issues running 0.8.6h where it is not creating the RRA?
Back to top
mikesphar



Joined: 19 Apr 2006
Posts: 6
Location: Chicago, IL

PostPosted: Wed Apr 19, 2006 6:31 pm    Post subject: Reply with quote

Well, I'm having trouble with this too, I've update the color for the line item that didn't have it, but I'm now getting this error:

Code:
ERROR: parameter '#000000' does not represent a number in line LINE1:#000000:Free Space (Mb)


This appears to be coming from item #27:
Code:
Data Source:  None
Color:  (This was none, but I set it to Black after the earlier legend error)
Graph Item Type:  LINE1
Consolidation Function: LAST
CDEF Function:  None
Value:  <blank>
GPRINT Type: Normal
Text Format:  Free Space <Mb>
Insert Hard Return:  Not checked
Sequence:  26



I'm guessing this has something to do with item#33, but I'm not clear how to fix it:
Code:
Data Source:  W32 - Disk Statistics - (FreeMegabytes)
Color:  FFFFFF
Graph Item Type:  LINE1
Consolidation Function:  LAST
CDEF Function:  Kilobyte to Gigabyte
Value:  <blank>
GPRINT Type:  Gigabytes
Text Format:  <blank>
Insert Hard Return:  <not checked>
Sequence: 31


Edit: Okay, I think I got those errors resolved after I noticed the earlier post I had somehow missed before about associating the data source with the Free Space (MB) item in the graph template.

At this point I'm not getting errors but I also don't seem to be getting disk statistics, but I need to poke at it some more.
Back to top
kokkers



Joined: 16 Feb 2006
Posts: 6

PostPosted: Thu Apr 27, 2006 9:42 am    Post subject: Reply with quote

Man, did I have some troubles installing this template

With all its nice and flexible features Cacti is getting way too complex for the average user.
Alot of users start with Cacti without any experience in using SNMP / RRDtool or scripting whatsoever.

It is just hard to get the needed system feedback when stuff is not working as intended.

That being off my chest, this is what I had to do to get the template working properly.

(I have a running 0.8.6h Cacti environment)

- Had to fiddle with the template, manually setting the colors.
- Got rid of the free disk space (not relevant, clogging screen)
- Restructure the template, so the now crippled legend looks nice again.
- Cacti would somehow not create the corresponding RRD's (even after waiting a few cycles, fiddled some more and got it fixed)
- Read and write queue length would not get updated in the RRD (display as NaN). I had to change the OID in the data query template after looking it up doing a manual snmpwalk.
x.x.x.x.8 and x.x.x.x.x.9, had to be changed to x.x.x.x.11 and x.x.x.x.x.12
(Dont forget to reset the xml file in the dataquery settings overview!)

Hours later I got 6 working graphs...

\ o /

For what it's worth, I attached my w32_disk_template.



cacti_graph_template_w32_disk_statistics.xml
 Description:

Download
 Filename:  cacti_graph_template_w32_disk_statistics.xml
 Filesize:  26.37 KB
 Downloaded:  1360 Time(s)

Back to top
mikesphar



Joined: 19 Apr 2006
Posts: 6
Location: Chicago, IL

PostPosted: Thu Apr 27, 2006 3:41 pm    Post subject: Reply with quote

I think part of the problem at least I was having was that the updated "corrected" templates provided by people later in this thread didn't include the data query templates. And when I imported the original data query templates along with the new updated "fixed" graph templates, you end up with a seriously munged up graph template, or at least I did.

I finally went through the whole graph template and re-ordered many items and deleted others to get it to actually look like the samples provided. Also one of the CDEFs from one of the templates seemed to have some sort of typo in it that was causing an RPN Stack Underflow error for me.

I do think I've got it mostly sorted out now, but I'm watching the stats for a while to make sure I like what I'm getting.

If nothing else, getting these templates actually working has been something of a crash course in cacti customization.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 3 of 9

 



Powered by phpBB © 2001, 2005 phpBB Group