Windows 2000 / 2k3 Disk Statistics

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

Moderators: Developers, Moderators

Post Reply
rfoust
Posts: 4
Joined: Thu Aug 24, 2006 8:09 pm

_Total not working

Post by rfoust »

Hi,

_Total isn't working because oid_index_parse isn't including it. Here is what I'm currently using to also include _Total:

<oid_index_parse>OID/REGEXP:.*((2\.[0-9]{1,2}\.58)|(6\.95\.84\.111\.116\.97\.108))$</oid_index_parse>

This makes a lot of assumptions about the OID (basically a known length). I had to modify that even more to get Physical disk statistics to include everything properly. In fact with some minor modifications it would probably work for anything similar based around SNMP Informant (standard or advanced).

<oid_index_parse>OID/REGEXP:.*\.61\.1\.1\.(.*)$</oid_index_parse>


- Robbie
- Duke University
ynot5
Posts: 16
Joined: Mon Jul 24, 2006 3:15 am

Pls advise

Post by ynot5 »

What's the next step to alter this ?
I think the above post is related to mine but I'm not sure how to configure it ? Pl advice , thanks

08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: PercentFreeSpace, oid: .1.3.6.1.4.1.9600.1.1.1.1.5.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: AvgDiskReadQueueLen, oid: .1.3.6.1.4.1.9600.1.1.1.1.8.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: PercentDiskWriteTim, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: PercentDiskReadTime, oid: .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, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: FreeMegabytes, oid: .1.3.6.1.4.1.9600.1.1.1.1.20.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: AvgDiskWritePerSec, oid: .1.3.6.1.4.1.9600.1.1.1.1.19.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
rfoust
Posts: 4
Joined: Thu Aug 24, 2006 8:09 pm

Post by rfoust »

Edit the snmp_informant_disk.xml file (your data source) and where this line is:

<oid_index_parse>OID/REGEXP:.*(2\.[0-9]{1,2}\.58)$</oid_index_parse>

you need to change it to be this:

<oid_index_parse>OID/REGEXP:.*\.1\.1\.1\.(.*)$</oid_index_parse>

otherwise _Total will never work. I don't know if thats the source of your errors or not, but without that change, _Total will be broken.

- Robbie
ynot5
Posts: 16
Joined: Mon Jul 24, 2006 3:15 am

thanks

Post by ynot5 »

it seem to work perfectly
rfoust
Posts: 4
Joined: Thu Aug 24, 2006 8:09 pm

Post by rfoust »

Great! Glad you got it working.

- Robbie
User avatar
AndyStewart
Cacti User
Posts: 102
Joined: Thu Sep 29, 2005 5:21 am
Location: Edinburgh, Scotland

Post by AndyStewart »

Just installed this on one of our SAN servers (normal disk stats were only showing 200GB on the graphs - 2^32 limit or something)

but i'm getting the following error - can anyone help?
RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SAN - NETEHNAS01 - Disk - E:" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Unit" \
--slope-mode \
DEF:a="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentDiskWriteTim:LAST \
DEF:b="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentDiskReadTime:LAST \
DEF:c="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentFreeSpace:LAST \
DEF:f="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentDiskReadTime:LAST \
DEF:g="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentFreeSpace:LAST \
DEF:h="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":FreeMegabytes:LAST \
DEF:i="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":AvgDiskReadPerSec:LAST \
DEF:j="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.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\:
I don't care if the glass is half full or half empty, i want to know, who's been drinking my pint!!!

[size=75][Windows 2003 & IIS6] [Cacti 0.8.7b] [ActivePerl 5.8.8.817] [MySql 5.0.19] [NetSNMP 5.2.1.2-1] [PHP 5.1.2] [RRDTool 1.2.11]
[Plugins: PluginArchitecture, Monitor, Discovery, Threshold, Update, Reports, Manage, RealTime][/size]
snipefoo
Posts: 1
Joined: Wed Sep 20, 2006 4:41 am

Post by snipefoo »

Hi,

I followed the instructions. I got this in the verbose snmp querie :

Code: Select all

+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/share/cacti/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='D:'] index: 2.68.58 [from value]
+ Found item [diskInstance='_Total'] index: 6.95.84.111.116.97.108 [from value]
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
So, it seems OK; but in the cacti logs, I got that :

Code: Select all

09/20/2006 11:45:04 AM - CMDPHP: Poller[0] Host[2] DS[38] WARNING: Result from SNMP not valid. Partial Result:
Repeated 8 times 
The DS 38 is "Disk Stats - _Total "
I tried the "<oid_index_parse>" change in the xml file, without success :
The C, D and _Total didn't work at all

Thanks by advance
kikiche
Posts: 1
Joined: Thu Sep 21, 2006 10:43 am

Post by kikiche »

I have the same problem as moles3144.

The graph aren't create.

I have this message in Graph Debug Mode:

Code: Select all

ERROR: can't parse ':Free Space (Mb)'

but I add SNMP Informant Disk statistics for my device, I only see 2 rows.

If you have a solution, I am taking.


Cordially
tmessers
Posts: 1
Joined: Thu Sep 28, 2006 4:42 pm

Has anyone actuall got this working????

Post by tmessers »

Man,

I can't seem to get any of the graphs working.. I have followed this entire post and all I come up with is.

RRDTool Says:

ERROR: Legend set but no color: Available\:

Anything would be helpful.
cgoguyer
Posts: 1
Joined: Mon Oct 02, 2006 4:54 am

Post by cgoguyer »

I have the same problem as many people : ERROR: can't parse ':Free Space (Mb)'

I follow the thread but I haven't find any solution.

Has anybody templates wich work with cacti 0.8.6.h ?

Thx
rickyboone
Posts: 4
Joined: Wed Aug 23, 2006 9:07 am

Post by rickyboone »

Any chance of getting an updated version of all templates that address the issues raised in recent messages in this thread? The various "fixed" templates posted somewhere in the middle of this topic don't seem to work well with the original templates, etc. Having the original message updated would prevent a lot of confusion for people trying to add this to their instances of Cacti.
richardkraal
Posts: 3
Joined: Thu Apr 28, 2005 3:00 pm

Post by richardkraal »

after upgrading from .g to .i my graphs stops working, they don't appear anymore, getting the red cross in IE

when going to the url of the picture it says

" 0 "

any body any idea?

does somebody has working templates for .i???
WizardofAus
Posts: 7
Joined: Thu Nov 09, 2006 3:25 pm
Location: London

Not sure why I am getting O in all my columns? Help

Post by WizardofAus »

Everything looks great - debug attached and graph pic attached - any ideas. I would be so grateful.

The Cacti log gives me this error, the only error I am getting what could it be?

CMDPHP: Poller[0] Host[18] DS[186] WARNING: Result from SNMP not valid. Partial Result:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="uksdcclums0301 - Disk Stats E:Data_1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
--vertical-label="Unit (Percent / time)" \
--slope-mode \
DEF:a="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentDiskReadTime:LAST \
DEF:b="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentDiskReadTime:AVERAGE \
DEF:c="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentDiskWriteTim:LAST \
DEF:d="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentDiskWriteTim:AVERAGE \
DEF:e="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentFreeSpace:LAST \
DEF:f="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentFreeSpace:AVERAGE \
DEF:g="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":FreeMegabytes:LAST \
DEF:h="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":FreeMegabytes:AVERAGE \
DEF:i="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskReadPerSec:LAST \
DEF:j="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskReadPerSec:AVERAGE \
DEF:ba="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskWritePerSec:LAST \
DEF:bb="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskWritePerSec:AVERAGE \
DEF:bc="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskReadQueueLen:LAST \
DEF:bd="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskReadQueueLen:AVERAGE \
DEF:be="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskWriteQueueLe:LAST \
DEF:bf="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskWriteQueueLe:AVERAGE \
CDEF:cdefba=g,1024,/ \
CDEF:cdefdb=g,1048576,/ \
COMMENT:"Statistics\n" \
AREA:a#FF6044:"Read Time(%)" \
GPRINT:a:LAST:" Read\: (%1.1lf %%)\n" \
AREA:a#55D6D3:"" \
AREA:c#00BED9:"Write Time(%)" \
GPRINT:c:LAST:" Write\: (%1.1lf %%)\n" \
LINE1:e#004359:"Free Space(%)" \
GPRINT:e:LAST:" Free\: (%1.1lf %%)\n" \
LINE1:e#004359:"" \
LINE1:g#FFC3C0:"Available" \
GPRINT:cdefba:LAST:" Available \: %5.2lf Gb\n" \
LINE1:i#0000FF:"Read per sec\n" \
COMMENT:"Read IO / sec\:" \
GPRINT:i:LAST:" Current\:%8.0lf" \
GPRINT:j:AVERAGE:"Average\:%8.0lf" \
GPRINT:j:MAX:"Maximum\:%8.0lf\n" \
LINE1:ba#DE0056:"Write per sec\:\n" \
COMMENT:"Write IO / sec\:" \
GPRINT:ba:LAST:" Current\:%8.0lf" \
GPRINT:bb:AVERAGE:"Average\:%8.0lf" \
GPRINT:bb:MAX:"Maximum\:%8.0lf\n" \
LINE1:bc#F5F800:"Read Queue\:\n" \
COMMENT:"Read Queue\:" \
GPRINT:bc:LAST:" Current\:%8.0lf" \
GPRINT:bd:AVERAGE:"Average\:%8.0lf" \
GPRINT:bd:MAX:"Maximum\:%8.0lf\n" \
LINE1:be#00FF00:"Write Queue\:\n" \
COMMENT:"Write Queue\:" \
GPRINT:be:LAST:" Current\:%8.0lf" \
GPRINT:bf:AVERAGE:"Average\:%8.0lf" \
GPRINT:bf:MAX:"Maximum\:%8.0lf\n" \
LINE1:cdefdb#7CB3F1:"" \
LINE2:g#ED7600:"Free Space (Mb)"
RRDTool Says:

OK
Attachments
Help?
Help?
graph.jpg (22.86 KiB) Viewed 15083 times
WizardofAus
Posts: 7
Joined: Thu Nov 09, 2006 3:25 pm
Location: London

I should read..

Post by WizardofAus »

I shoudl have been more through reading the previous posts

<oid_index_parse>OID/REGEXP:.*\.1\.1\.1\.(.*)$</oid_index_parse>

sorted it all out. awesome stuff
dcabai
Posts: 1
Joined: Wed Nov 22, 2006 11:01 am

Graph Problems

Post by dcabai »

Hi, I'm new with cacti and my boss ask me to add Disk IO Statistics to the console.

I follow all the steps, all the files installed correctly. All the imports works fine. I read all the pages of this topic and tried many things that are posted here, but the graphs aren't generated.

All the other SNMP information that are gathered from the server works fine and generate the graphs correctly.
I only see under W32 - Disk Statistics the "name of the server - Disk - C:" and the icon of the magnifying glass. I have this for all the units of my server.

I have other counters that when they don't have information create the graph blank, but in this case there is no graph. I imported the graph correctly following the steps. I would appreciate some help here, and sorry about my english.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests