Windows 2000 / 2k3 Disk Statistics

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

Moderators: Developers, Moderators

Post Reply
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Is it necessary to install SNMP informant with Win2k3 hosts?

Just ask as something in the first post implies it may not be necessary...

Argon0
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
jadams
Posts: 9
Joined: Wed Jan 18, 2006 1:57 pm

Post by jadams »

Well I have followed the instructions and it seems to query ok, but it just will not generate the graphs. I just the blank graph spot. Ideas?
argon0
Cacti User
Posts: 460
Joined: Fri Mar 12, 2004 1:22 pm

Post by argon0 »

Looks like it won't work then...
No longer a n00by, probably, by now an 0ldby

Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
davide
Posts: 9
Joined: Fri Mar 25, 2005 9:14 am

Post by davide »

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
Have you resolved? I wish to use this script with 8.6i
thechicco
Posts: 16
Joined: Fri Jan 12, 2007 9:42 am

Post by thechicco »

I am going to bump this as well.


* Has anyone been able to get this working with version 8.6i? *
reboot
Posts: 16
Joined: Sun Mar 05, 2006 7:45 am
Location: The Netherlands

Post by reboot »

Yes, i've had this template running at cacti 0.8.6i
Yes, i've got this template running at cacti 0.8.6j

I did not have any problems during the upgrade to 0.8.6j. They still work!

But I had many problems setting it up too (@ 0.8.6i)!
I've modified my templates with many suggestions made in this topic.

I've exported my templates en scripts...
I hope they work for you...

My configuration:
Windows 2003 Server (=Virtual server)
Cacti 0.8.6j
IIS 6.0
PHP 5.1.6 (isapi module @ IIS)
RRDTool 1.2.15 (unzipped from stable build @ zip - 23-08-2006)
NET-SNMP 5.4.0

Cacti Variables:
Operating System: win32
PHP SNMP Support: yes

[Edit:]
Got some images for you...
Just to show how my (graph) template looks...

These graphs are from the Cacti stats server
[/Edit:]
Attachments
Graph C.jpg
Graph C.jpg (73.52 KiB) Viewed 15998 times
Graph D.jpg
Graph D.jpg (76.88 KiB) Viewed 15998 times
snmp_informant_disk.xml
Put this file in your <cacti-path>/resource/snmp_queries/
(2.21 KiB) Downloaded 1593 times
cacti_data_template_w32_disk_statistics.zip
Unzip and import into cacti...
(6.64 KiB) Downloaded 1535 times
thechicco
Posts: 16
Joined: Fri Jan 12, 2007 9:42 am

Post by thechicco »

Hey reboot,

many thanks for posting this.

Unfortunately I cannot get this to work.

RRDTools says:

"ERROR: opening 'c:/Inetpub/wwwroot/cacti/rra/t2dc02_travel2_com_avgdiskreadqueuelen_58.rrd': No such file or directory"
studionews
Posts: 4
Joined: Mon Jan 15, 2007 5:33 am

No graph....

Post by studionews »

Hi, I use this template http://forums.cacti.net/viewtopic.php?t ... =informant

I have only : 1) SNMP - Informant Disk Statistics (Verbose Query) Verify All Fields Success [3 Items, 3 Rows] not 6 like the documentation

Data Query Debug Information

+ Running data query [17].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/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='R:'] index: 2.82.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/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/snmp_informant_disk.xml'


It don't create the graph ! can anyone help me ? I'm on cactiez.. (cacti 0.6.8i)

thk
cspenpen
Cacti User
Posts: 67
Joined: Tue Dec 05, 2006 5:10 am

new one

Post by cspenpen »

version cadti j
thx ^^
Attachments
windisk io.rar
(12.4 KiB) Downloaded 1346 times
thechicco
Posts: 16
Joined: Fri Jan 12, 2007 9:42 am

Re: new one

Post by thechicco »

cspenpen wrote:version cadti j
thx ^^
Excellent, many thanks.

Seems to be working lovely.
lordlynx
Posts: 7
Joined: Fri Mar 09, 2007 11:51 am
Location: Perth, Australia

Post by lordlynx »

After having a good read through this thread, I have managed to get everything working after a lot of trial and error, except for one issue - I am (I believe) still stuck on the oid_index_parse edit for the data query XML.
The machine I am having the most problem with is a Windows 2000 machine with five disks: the C drive plus four NTFS mount points. This presents six items (C: + 4x NTFS mounts + _total), however only the C: graph is actually working.

The reason I point to the XML edit is that according to the poller cache, the OIDs for all but C: are mangled..

Poller Cache OIDs for PercentDiskReadTime:
C drive: .1.3.6.1.4.1.9600.1.1.1.1.2.2.67.58
Mount 1: .1.3.6.1.4.1.9600.1.1.1.1.2..1.3.6.1.4.1.9600.1.1.1.1.1.15.72.97.114.100.100.105.115.107.86.111.108.117.109.101.49
Mount 2: .1.3.6.1.4.1.9600.1.1.1.1.2..1.3.6.1.4.1.9600.1.1.1.1.1.15.72.97.114.100.100.105.115.107.86.111.108.117.109.101.50
Mount 3: .1.3.6.1.4.1.9600.1.1.1.1.2..1.3.6.1.4.1.9600.1.1.1.1.1.15.72.97.114.100.100.105.115.107.86.111.108.117.109.101.51
Mount 4: .1.3.6.1.4.1.9600.1.1.1.1.2..1.3.6.1.4.1.9600.1.1.1.1.1.15.72.97.114.100.100.105.115.107.86.111.108.117.109.101.52
_Total : .1.3.6.1.4.1.9600.1.1.1.1.2..1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108

Note how the broken items are two OIDs mashed together - appears to be the correct base followed by the full lDiskInstance OID, dots and all.

Obviously the poller doesn't like it - for each attempt I get a line in the log similar to:

03/10/2007 02:15:14 AM - CMDPHP: Poller[0] Host[11] DS[211] WARNING: Result from SNMP not valid. Partial Result:


I have tried:
- Changing the oid_index_parse line in snmp_informant_disk.xml as posted by rfoust
- Rebuilding the poller cache

I don't speak regexp all too well I'm afraid so I won't be surprised if I just need to move a dot, or make some tiny change to resolve the issue but I will be grateful for the help in any case!

Feel free to ask if I've left anything useful out!

ed: helps if I include info on my Cacti install ...
_________________
Cacti machine (dedicated): P3 1GHz x 1, 256MB RAM, Windows 2000 Professional SP4
Cacti 0.8.6i using cmd.php, MySQL v4.1, RRDTool 1.0
IIS 5, PHP 4.4.3, ActivePerl 5.8.8b817
~300 data sources, 15-20 hosts, polling time ~15sec.
lordlynx
Posts: 7
Joined: Fri Mar 09, 2007 11:51 am
Location: Perth, Australia

Post by lordlynx »

Problem solved - refreshed the SNMP Informant query on the host after performing an IIS reset (a couple of child CMD processes to inetinfo.exe had become stuck which stopped me from this query working properly, go figure) and the refresh fixed the OIDs.
I'm guessing the original "bad" OIDs were pulled before rfoust's XML fix was made, and it broke between there and me trying the next refresh.
Lesson: When you get down to one final fiddly problem, don't forum post at 3am - go to bed and take a look in the morning first :)

-lordlynx
ilusha10
Posts: 8
Joined: Wed Mar 07, 2007 2:15 pm

Post by ilusha10 »

I follow instructions and got this in debug mode:
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SJPRODWD02 - Disk - C:" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Unit" \
--slope-mode \
DEF:a="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.rrd":PercentDiskWriteTim:LAST \
DEF:b="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.rrd":PercentDiskReadTime:LAST \
DEF:c="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.rrd":PercentFreeSpace:LAST \
DEF:f="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.rrd":PercentDiskReadTime:LAST \
DEF:g="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.rrd":PercentFreeSpace:LAST \
DEF:h="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.rrd":FreeMegabytes:LAST \
DEF:i="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.rrd":AvgDiskReadPerSec:LAST \
DEF:j="/srv/www/htdocs/cacti/rra/sjprodwd02_avgdiskwritequeuele_161.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: Legend set but no color: Available\:
fssilva
Posts: 2
Joined: Thu Apr 12, 2007 3:30 pm

Re: new one

Post by fssilva »

cspenpen wrote:version cadti j
thx ^^
Great job... works properly... Regards!
Wedgie
Posts: 5
Joined: Mon Apr 30, 2007 2:03 pm

updated graph templates for Version 0.8.6j

Post by Wedgie »

Modified some of the graph details
Attachments
Disk io tweak.JPG
Disk io tweak.JPG (49.67 KiB) Viewed 14722 times
cacti_graph_template_w32_disk_statistics.xml
(31.23 KiB) Downloaded 1294 times
cacti_data_query_snmp_informant_disk_statistics.xml
(34.66 KiB) Downloaded 1269 times
cacti_data_template_w32_disk_statistics.xml
(11.8 KiB) Downloaded 1382 times
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests