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 - upgrade issues
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
jpimentel



Joined: 18 Jan 2006
Posts: 38

PostPosted: Tue Mar 14, 2006 10:12 am    Post subject: Windows 2000 / 2k3 Disk Statistics - upgrade issues Reply with quote

Hi All,


In our environment we have application owners who have databases and programs running on powerful machines not utilizing the full potential of the hardware. To determine which machines are eligible to be moved over to a virtualized environment we use cacti as our reference point. Recently I was forced to upgrade cacti to h from g, because we were running into problems with gaps at the end of the graphs. ( http://forums.cacti.net/viewtopic.php?t=12067&highlight= ) Now one of the most important graphs no longer work. I have been working on this issue for over a week now with no luck. I hope one of you can help me with this.


I downloaded the script/template at http://forums.cacti.net/viewtopic.php?t=10707&highlight=perfmon .
We are running cacti on a linux box using cmd.php as the poller.

VERBOS QUERY

+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti-0.8.6g/resource/snmp_queries/snmp_informant_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Located input field 'diskInstance' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Found item [diskInstance='C:'] index: 2.67.58 [from value]
+ Found item [diskInstance='_Total'] index: 1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108 [from value]
+ Found data query XML file at '/var/www/html/cacti-0.8.6g/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/html/cacti-0.8.6g/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/html/cacti-0.8.6g/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/html/cacti-0.8.6g/resource/snmp_queries/snmp_informant_disk.xml'



GRAPH DEBUG

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="test123 - Disk Stats |query_diskInstance|" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Unit (Percent / time slice)" \
DEF:a="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":PercentDiskReadTime:LAST \
DEF:b="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":PercentDiskWriteTim:LAST \
DEF:c="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":PercentFreeSpace:LAST \
DEF:f="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":PercentDiskReadTime:LAST \
DEF:g="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":AvgDiskReadPerSec:LAST \
DEF:h="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":AvgDiskWritePerSec:LAST \
DEF:i="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":PercentFreeSpace:LAST \
DEF:j="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":FreeMegabytes:LAST \
DEF:ba="/var/www/html/cacti-0.8.6g/rra/test123_avgdiskwritequeuele_1980.rrd":FreeMegabytes:LAST \
CDEF:cdefbe=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 %%)" \
LINE1:ba:"Available\:" \
GPRINT:cdefbe:LAST:" Available \: %5.2lf Gb\n" \
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" \
LINE1::"Free Space (Mb)" \
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:"" \
LINE1:cdefdd#FFFFFF:""
RRDTool Says:
ERROR: can't parse ':Free Space (Mb)'
Back to top
tgk



Joined: 11 Mar 2006
Posts: 28

PostPosted: Tue Mar 14, 2006 8:44 pm    Post subject: Reply with quote

It seems your 9th LINE1 doesn't have a data source. Check it in your graph template.


Quote:
LINE1::"Free Space (Mb)" \
Back to top
jpimentel



Joined: 18 Jan 2006
Posts: 38

PostPosted: Wed Mar 15, 2006 9:17 am    Post subject: Reply with quote

The datasource is selected. :S


datasource.JPG
 Description:
 Filesize:  140.65 KB
 Viewed:  16324 Time(s)

datasource.JPG


Back to top
tgk



Joined: 11 Mar 2006
Posts: 28

PostPosted: Wed Mar 15, 2006 9:23 am    Post subject: Reply with quote

It's not that one, but the one with "Free Space (Mb)" in the "Text Format" field.
Your screenshot is from the "Free Space (%)" field.
Back to top
jpimentel



Joined: 18 Jan 2006
Posts: 38

PostPosted: Wed Mar 15, 2006 2:20 pm    Post subject: Reply with quote

I made the change you suggested and my graph finally appeared. This is what my graph looks like now, but seems that there is no lines being graphed. Reading the original document it said somthing about a color not being assigned, but I was not sure where to make the change. Do you think this is why the graph is not showing any lines?


image.JPG
 Description:
 Filesize:  52.22 KB
 Viewed:  16303 Time(s)

image.JPG


Back to top
tgk



Joined: 11 Mar 2006
Posts: 28

PostPosted: Wed Mar 15, 2006 3:29 pm    Post subject: Reply with quote

No, I think your problem is scale. Your vertical scale goes up to 40000. You are probably graphing the available disk space (instead of %), or something huge, together with tiny numbers like writes per sec.
Back to top
jpimentel



Joined: 18 Jan 2006
Posts: 38

PostPosted: Wed Mar 15, 2006 4:34 pm    Post subject: Reply with quote

Okay I change the auto scale options to use ( --alt-autoscale-max )
and unselected ""auto scale"". My graph looks much better than it originally did.


What I would like to do is have all the legend (colors/names) info line up at the left side and statics r/w on the right side.
Can you provide me an example on how to do that? Once this template is complete I will upload the final copy on the original post.

http://forums.cacti.net/viewtopic.php?t=10707&highlight=perfmon



image.JPG
 Description:
 Filesize:  57.45 KB
 Viewed:  16258 Time(s)

image.JPG



snmp_informant_disk.xml
 Description:

Download
 Filename:  snmp_informant_disk.xml
 Filesize:  38.36 KB
 Downloaded:  1410 Time(s)


cacti_graph_template_w32_disk_statistics.xml
 Description:

Download
 Filename:  cacti_graph_template_w32_disk_statistics.xml
 Filesize:  34.93 KB
 Downloaded:  1155 Time(s)


cacti_data_template_w32_disk_statistics.xml
 Description:

Download
 Filename:  cacti_data_template_w32_disk_statistics.xml
 Filesize:  10.83 KB
 Downloaded:  1176 Time(s)

Back to top
tgk



Joined: 11 Mar 2006
Posts: 28

PostPosted: Thu Mar 16, 2006 9:30 am    Post subject: Reply with quote

I had the same problem with that template. I finally found that it looks great if you are using RRDTool 1.2 (which uses nicer and smaller fonts, and font size can be adjusted), but looks like your screenshot with RRDTool 1.0.
Realigning it will take you a while. You'll have to go to the Graph Template and move the LINE and GPRINT lines up and down, add a few Hard Returns, etc.
It's much easier (and completely worth it) to upgrade to RRDTool 1.2. If you do, remember to go to Settings and change the version there.
Back to top
jpimentel



Joined: 18 Jan 2006
Posts: 38

PostPosted: Thu Mar 16, 2006 12:28 pm    Post subject: Reply with quote

Thanks a lot, I will make that change, and when complete I will post my new graph.
Back to top
Khan



Joined: 03 Nov 2003
Posts: 47
Location: Madtown, WI

PostPosted: Mon Apr 10, 2006 11:26 am    Post subject: Reply with quote

jpimentel wrote:
Thanks a lot, I will make that change, and when complete I will post my new graph.


jpimentel,
Were you able to get this graph to show up correctly? And if so, can you please post the final scripts/xml files? Thanks.
Back to top
jpimentel



Joined: 18 Jan 2006
Posts: 38

PostPosted: Mon Apr 10, 2006 8:41 pm    Post subject: Reply with quote

My graph at the momment does not look any better. I am still working on it, and will post as soon as its complete.
Back to top
Khan



Joined: 03 Nov 2003
Posts: 47
Location: Madtown, WI

PostPosted: Mon Apr 10, 2006 9:45 pm    Post subject: Reply with quote

jpimentel wrote:
My graph at the momment does not look any better. I am still working on it, and will post as soon as its complete.


Good deal. I'll keep an eye on this thread. Thanks for the quick reply and good luck with the graph.
Back to top
dt9394



Joined: 10 Apr 2006
Posts: 3

PostPosted: Mon Apr 10, 2006 10:47 pm    Post subject: soft "patching"? Reply with quote

I found a way how to make the graph show up.

1) remove snmp_disk_informant data & graph template

2) import data template then graph template (original with lack of legend color)

3) create your device graph.

4)After creating your graph go to grapgh management and turn on graph debug. And u will notice some legen color not available warning.

5) download the graph template with all the legend color then re-import again (do not remove the original grapgh template)

6) done... after u go back to graph debug option it will tell u all ok

7) auto scale = off , alt-sclae-max = on

happy cacti-ing
Back to top
ynot5



Joined: 24 Jul 2006
Posts: 16

PostPosted: Thu Aug 24, 2006 5:07 am    Post subject: graph template Reply with quote

made some adjustments


cacti_graph_template_w32_disk_statistics.xml
 Description:

Download
 Filename:  cacti_graph_template_w32_disk_statistics.xml
 Filesize:  34.3 KB
 Downloaded:  1141 Time(s)

Back to top
JonMikel



Joined: 02 Jul 2007
Posts: 16

PostPosted: Tue Jul 10, 2007 4:03 am    Post subject: Reply with quote

Hello, i don't know how to solve the problem have anyone done it??

In fact, i can see the graph and it seems that everithing's right but if i zoom it, i can't see anything!!



zoom.png
 Description:
 Filesize:  21.74 KB
 Viewed:  10645 Time(s)

zoom.png



graph.png
 Description:
 Filesize:  16.84 KB
 Viewed:  10645 Time(s)

graph.png


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 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group