Windows 2000 / 2k3 Disk Statistics

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

Moderators: Developers, Moderators

Post Reply
undeaddemon
Posts: 35
Joined: Sat May 13, 2006 2:07 am
Location: Philadelphia Area

Re: updated graph templates for Version 0.8.6j

Post by undeaddemon »

Wedgie wrote:Modified some of the graph details
Did you get you _Total working? I tried the snmp_informant_disk.xml here:
rfoust wrote: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


But no luck.... still not sure why this one graph will not display...???

BTW... I am still running 8.6h....
| cacti 0.8.7h | PIA 3.0 | RRDTool 1.4.x |
| PHP 5.3.3 | mysql Ver 14.14 Distrib 5.1.52 |
| NET-SNMP 5.5 | RedHat el6 | Apache/2.2.15 |
undeaddemon
Posts: 35
Joined: Sat May 13, 2006 2:07 am
Location: Philadelphia Area

well....

Post by undeaddemon »

OK... I fixed it... you'll prob hate me for it... but I am not SURE how.....

Poller cache didn't seem to do it.... I THINK it had to do with going back into the data source.... and saving it (though I didn't change anything...)

Both my servers are now displaying _Total Win32 Disk Statistics, and I am sure the disk_informant.xml was a huge part of that!... TANKS HALOT!

:)
Attachments
As you can see.... I was up late....
As you can see.... I was up late....
_Total.png (52.2 KiB) Viewed 31771 times
| cacti 0.8.7h | PIA 3.0 | RRDTool 1.4.x |
| PHP 5.3.3 | mysql Ver 14.14 Distrib 5.1.52 |
| NET-SNMP 5.5 | RedHat el6 | Apache/2.2.15 |
tonzy0907
Posts: 19
Joined: Wed May 30, 2007 6:16 am

IMPORTING TEMPLATES

Post by tonzy0907 »

I got these error when i tried to import xml templates...
ERROR : XML Parse error.

Please help..
Thnx in advance
cwalton
Posts: 15
Joined: Wed May 10, 2006 7:53 am

64-bit

Post by cwalton »

I'm guessing that I'll have to purchase the full version of SNMP-informant to monitor my 64-bit Storage Server systems, or is there a workaround?
oakfan52
Posts: 28
Joined: Mon Jan 02, 2006 9:26 pm
Location: Sacramento, CA

Post by oakfan52 »

I keeping getting for the data query
"No more variables left in this MIB View"
jukke
Posts: 16
Joined: Wed Feb 16, 2005 3:09 pm

Problems with Disk Statistics

Post by jukke »

Problem SOLVED.

Hi,

I have some problems after installing these templates.

I get the message End Of Mib

See Attached file

Regards

+ Running data query [18].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/opt/csw/apache2/share/htdocs/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='End of MIB'] index: End of MIB [from value]
+ Found data query XML file at '/opt/csw/apache2/share/htdocs/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/opt/csw/apache2/share/htdocs/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/opt/csw/apache2/share/htdocs/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/opt/csw/apache2/share/htdocs/cacti/resource/snmp_queries/snmp_informant_disk.xml'
Attachments
test.jpg
test.jpg (42.97 KiB) Viewed 30292 times
Ixne
Posts: 12
Joined: Wed Oct 24, 2007 7:13 am

Post by Ixne »

I'm trying to monitor disk space on a Windows2003 server. I have SNMP-Informant installed on it and the templates imported into Cacti. I have configured the SNMP service to include our Community string.

When I add the device in Cacti, I have this line under Associated Data Queries:

1) SNMP - Informant Disk Statistics (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]

Verbose Query returns this:

+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:/Inetpub/wwwroot/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'
+ No SNMP data returned
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at 'C:/Inetpub/wwwroot/cacti/resource/snmp_queries/snmp_informant_disk.xml'


What have I missed?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Do you have SNMP Informant "Advanced" installed? If you don't, I think you are SOL.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Ixne
Posts: 12
Joined: Wed Oct 24, 2007 7:13 am

Post by Ixne »

I have Standard installed. I found the problem; the server wasn't able to resolve (DNS) the monitoring system which was entered under the SNMP Service > Security > Accept SNMP Packets from these hosts. So I put in the IP address instead.
bunglega
Posts: 9
Joined: Mon Nov 12, 2007 9:06 am

No Graph Data?

Post by bunglega »

Hello ... I have SNMP-Informant Std. running on my machine, I have added this script and the .xml files and a verbose query does not return any errors. However, when I view my graphs, cacti display the missing picture icon and no graphs are displayed at all.

Any suggestions as to what I should try next?

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

This is the last piece in my Cacti install and I'll be quite happy with the product!

Thanks!
User avatar
Darwin
Posts: 27
Joined: Mon May 27, 2002 10:34 am
Location: Montreal, QC
Contact:

Post by Darwin »

Someone requested, a while back, an updated version of these templates, considering all that has been mentionned, fixes, modifications and all.

Here's my version, functional on 0.8.7 and all 4 necessary files included.

Layout is based on Wedgie's version, colors are inspired on undeaddemon screenshots.
Attachments
graph_image.php.png
graph_image.php.png (108.35 KiB) Viewed 28765 times
cacti_graph_template_w32_-_disk_statistics.xml
Import Into Cacti via Import Templates

Updated 2008-01-30
(33.82 KiB) Downloaded 4688 times
snmp_informant_disk.xml
Save under &lt;CACTI_PATH&gt;/resources/snmp-queries
(2.21 KiB) Downloaded 4779 times
cacti_data_query_snmp_-_informant_disk_statistics.xml
Import Into Cacti via Import Templates
(36.6 KiB) Downloaded 4647 times
cacti_data_template_w32_-_disk_statistics.xml
Import Into Cacti via Import Templates
(13.67 KiB) Downloaded 4564 times
Last edited by Darwin on Wed Jan 30, 2008 2:19 pm, edited 3 times in total.
IRC: Verilium / irc.freenode.net
AndrewRobinson
Posts: 13
Joined: Mon Dec 04, 2006 6:18 am

Post by AndrewRobinson »

RRDTool Command:

c:/cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="LANDISA - Disk Stats C:" \
--rigid \
--base=1000 \
--height=160 \
--width=500 \
--upper-limit=100 \
--lower-limit=1 \
--vertical-label="Unit (Percent / time slice)" \
--slope-mode \
--font TITLE:10:c:/windows/fonts/calibri.ttf \
--font AXIS:8:c:/windows/fonts/calibri.ttf \
--font LEGEND:8:c:/windows/fonts/calibri.ttf \
--font UNIT:8:c:/windows/fonts/calibri.ttf \
DEF:a="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":PercentFreeSpace:LAST \
DEF:b="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":PercentFreeSpace:AVERAGE \
DEF:c="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":FreeMegabytes:AVERAGE \
DEF:d="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":PercentDiskReadTime:LAST \
DEF:e="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":PercentDiskReadTime:AVERAGE \
DEF:f="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":PercentDiskWriteTim:LAST \
DEF:g="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":PercentDiskWriteTim:AVERAGE \
DEF:h="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":AvgDiskReadPerSec:LAST \
DEF:i="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":AvgDiskReadPerSec:AVERAGE \
DEF:j="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":FreeMegabytes:LAST \
DEF:ba="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":AvgDiskWritePerSec:LAST \
DEF:bb="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":AvgDiskWritePerSec:AVERAGE \
DEF:bc="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":AvgDiskReadQueueLen:LAST \
DEF:bd="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":AvgDiskReadQueueLen:AVERAGE \
DEF:be="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":AvgDiskWriteQueueLe:LAST \
DEF:bf="C\:/htdocs/cacti/rra/landisa_avgdiskreadqueuelen_536.rrd":AvgDiskWriteQueueLe:AVERAGE \
CDEF:cdefc=j,1024,/ \
CDEF:cdefdg=a,0,*,100,+ \
AREA:a#E8CDEF:"Disk Usage\:" \
GPRINT:a:LAST:" Free Space\: (%1.1lf %%)" \
GPRINT:cdefc:LAST:"Available \: %5.2lf Gb\n" \
AREA:d#8D85F3:"Read Time(%)" \
LINE2:a#000000:"" \
GPRINT:d:LAST:" Current\: (%1.1lf %%)" \
GPRINT:e:AVERAGE:"Average\: (%1.1lf %%)" \
LINE1:d#000000:"" \
GPRINT:e:MAX:" Maximum\: (%1.1lf %%)\n" \
AREA:f#96E78A:"Write Time(%)" \
COMMENT:"Statistics" \
GPRINT:f:LAST:" Current\: (%1.1lf %%)" \
GPRINT:g:AVERAGE:"Average\: (%1.1lf %%)" \
GPRINT:g:MAX:"Maximum\: (%1.1lf %%)\n" \
LINE1:h#005199:"Disk Reads/sec\:" \
GPRINT:h:LAST:" Current\:%8.0lf" \
LINE1:j#AAAAAA:"Available\:" \
GPRINT:i:AVERAGE:" Average\:%8.0lf" \
GPRINT:i:MAX:"Maximum\:%8.0lf\n" \
LINE1:ba#00BF47:"Disk Writes/sec\:" \
COMMENT:"Read IO / sec\:" \
GPRINT:ba:LAST:"Current\:%8.0lf" \
GPRINT:bb:AVERAGE:"Average\:%8.0lf" \
GPRINT:bb:MAX:"Maximum\:%8.0lf\n" \
LINE1:bc#FF0000:"Read Queue\:" \
GPRINT:bc:LAST:" Current\:%8.0lf" \
COMMENT:"Write IO / sec\:" \
GPRINT:bd:AVERAGE:" Average\:%8.0lf" \
GPRINT:bd:MAX:"Maximum\:%8.0lf\n" \
LINE1:be#EA8F00:"Write Queue\:" \
GPRINT:be:LAST:" Current\:%8.0lf" \
GPRINT:bf:AVERAGE:"Average\:%8.0lf" \
LINE1:#CDCFC4:"Free Space (Mb)" \
GPRINT:bf:MAX:" Maximum\:%8.0lf\n" \
COMMENT:"Read Queue\:" \
COMMENT:"Write Queue\:" \
LINE1:cdefdg#FFFFFF:""
RRDTool Says:

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

Any help please!
econ
Posts: 11
Joined: Fri Nov 16, 2007 7:20 pm

Post by econ »

I upgraded to 0.8.7a and now all my disk stats have a vertical axis of showing 1e+00 and etc. I have attached a screenshot of the problem. Has anyone run into anything similar?
Attachments
cacti.jpg
cacti.jpg (37.66 KiB) Viewed 29884 times
ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

Post by ABX »

After the upgrade to 0.8.7 I get the

ERROR: the RRD does not contain an RRA matching the chosen CF

Error.
slech
Cacti User
Posts: 90
Joined: Tue Nov 06, 2007 7:51 am

Post by slech »

cacti 0.8.7a - the same problem.

RRDTool Command:

c:/cacti/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-10 \
--title="localhost - Disk Stats - E:" \
--rigid \
--base=1000 \
--height=160 \
--width=500 \
--upper-limit=100 \
--lower-limit=1 \
--logarithmic \
--vertical-label="Unit (Percent / time slice)" \
--slope-mode \
--font TITLE:11: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
DEF:a="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":PercentFreeSpace:LAST \
DEF:b="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":PercentFreeSpace:AVERAGE \
DEF:c="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":FreeMegabytes:AVERAGE \
DEF:d="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":PercentDiskReadTime:LAST \
DEF:e="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":PercentDiskReadTime:AVERAGE \
DEF:f="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":PercentDiskWriteTim:LAST \
DEF:g="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":PercentDiskWriteTim:AVERAGE \
DEF:h="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":AvgDiskReadPerSec:LAST \
DEF:i="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":AvgDiskReadPerSec:AVERAGE \
DEF:j="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":AvgDiskWritePerSec:LAST \
DEF:ba="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":AvgDiskWritePerSec:AVERAGE \
DEF:bb="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":AvgDiskReadQueueLen:LAST \
DEF:bc="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":AvgDiskReadQueueLen:AVERAGE \
DEF:bd="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":AvgDiskWriteQueueLe:LAST \
DEF:be="E\:/cacti/rra/localhost_avgdiskreadqueuelen_49.rrd":AvgDiskWriteQueueLe:AVERAGE \
CDEF:cdefc=c,1024,/ \
AREA:a#E8CDEFFF:"Disk Usage\:" \
GPRINT:a:LAST:" Free Space\: (%1.1lf %%)" \
GPRINT:cdefc:LAST:"Available \: %5.2lf Gb\n" \
AREA:d#8D85F3FF:"Read Time(%)" \
GPRINT:d:LAST:" Current\: (%1.1lf %%)" \
GPRINT:e:AVERAGE:"Average\: (%1.1lf %%)" \
GPRINT:e:MAX:"Maximum\: (%1.1lf %%)\n" \
AREA:f#96E78AFF:"Write Time(%)" \
GPRINT:f:LAST:" Current\: (%1.1lf %%)" \
GPRINT:g:AVERAGE:"Average\: (%1.1lf %%)" \
GPRINT:g:MAX:"Maximum\: (%1.1lf %%)\n" \
LINE1:h#005199FF:"Disk Reads/sec\:" \
GPRINT:h:LAST:" Current\:%8.0lf" \
GPRINT:i:AVERAGE:"Average\:%8.0lf" \
GPRINT:i:MAX:"Maximum\:%8.0lf\n" \
LINE1:j#00BF47FF:"Disk Writes/sec\:" \
GPRINT:j:LAST:"Current\:%8.0lf" \
GPRINT:ba:AVERAGE:"Average\:%8.0lf" \
GPRINT:ba:MAX:"Maximum\:%8.0lf\n" \
LINE1:bb#FF0000FF:"Read Queue\:" \
GPRINT:bb:LAST:" Current\:%8.0lf" \
GPRINT:bc:AVERAGE:"Average\:%8.0lf" \
GPRINT:bc:MAX:"Maximum\:%8.0lf\n" \
LINE1:bd#EA8F00FF:"Write Queue\:" \
GPRINT:bd:LAST:" Current\:%8.0lf" \
GPRINT:be:AVERAGE:"Average\:%8.0lf" \
GPRINT:be:MAX:"Maximum\:%8.0lf\n"

RRDTool Says:

ERROR: the RRD does not contain an RRA matching the chosen CF

[size=75]
[color=green]|Cacti 0.87|[/color][color=green]|PA 1.3|[/color][color=green]|Poller cmd.php|[/color][color=green]|IIS 6.0|[/color][color=green]|PHP Version 5.2.4|[/color][color=green]|MySQL 5.0.27|[/color][color=green]|RRDtool 1.2.15|[/color][/size]
[color=brown]|Thold 0.3.8 |[/color] [color=red]|Zond 0.34 |[/color]
[url=http://forums.cacti.net/viewtopic.php?t=15067][size=75]Complete List of Cacti Scripts and Templates[/size][/url]
[url=http://forums.cacti.net/viewtopic.php?t=14985][size=75]Currently Known Plugins[/size][/url]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests