windows XP monitor disk

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

Moderators: Developers, Moderators

Post Reply
Vince_fr
Posts: 1
Joined: Tue Dec 18, 2007 6:52 am

windows XP monitor disk

Post by Vince_fr »

Mmm i'am very sad after 3 day to monitor XP disk.. not work
If any body can help me.

I installed cacti (Version 0.8.7a)
RRDtool OK (v1.2.19)
MySQL OK (Ver 14.12)
PHP OK (Version 5.2.3)

On windows XP i installed SNMP Informant and diskperf -y in command prompt before Reboot.

snmp_informant_disk.xml file into <cacti_path>/resources/snmp-queries/ OK
Import cacti_graph_template_w32_disk_statistics.xml OK
Import cacti_data_query_snmp_informant_disk_statistics.xml OK
Create Devices OK

Code: Select all

SNMP Information
System: Hardware: x86 Family 15 Model 2 Stepping 9 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.1 (Build 2600 Uniprocessor Free)
Uptime: 7310966 (0 days, 20 hours, 18 minutes)
I ) Associated Data Queries :
SNMP - Informant Disk Statistics (Verbose Query) Uptime Goes Backwards Success [3 Items, 3 Rows]

Code: Select all

Data Query Debug Information 
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti-0.8.7a/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/cacti-0.8.7a/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7a/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7a/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7a/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7a/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/var/www/cacti-0.8.7a/resource/snmp_queries/snmp_informant_disk.xml'
II) Graph Template Name :
W32 - Disk Statistics Is Being Graphed (Edit)

IV) Graph Management :

For all SNMP - Informant Disk Statistics :

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="COLAS - Disk Stats C:" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
--vertical-label="Unit (Percent / time slice)" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":PercentDiskReadTime:LAST \
DEF:b="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":PercentDiskReadTime:AVERAGE \
DEF:c="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":PercentDiskWriteTim:LAST \
DEF:d="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":PercentDiskWriteTim:AVERAGE \
DEF:e="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":PercentFreeSpace:LAST \
DEF:f="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":PercentFreeSpace:AVERAGE \
DEF:g="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":FreeMegabytes:LAST \
DEF:h="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":FreeMegabytes:AVERAGE \
DEF:i="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":AvgDiskReadPerSec:LAST \
DEF:j="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":AvgDiskReadPerSec:AVERAGE \
DEF:ba="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":AvgDiskWritePerSec:LAST \
DEF:bb="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":AvgDiskWritePerSec:AVERAGE \
DEF:bc="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":AvgDiskReadQueueLen:LAST \
DEF:bd="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":AvgDiskReadQueueLen:AVERAGE \
DEF:be="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":AvgDiskWriteQueueLe:LAST \
DEF:bf="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_220.rrd":AvgDiskWriteQueueLe:AVERAGE \
CDEF:cdefba=g,1024,/ \
CDEF:cdefdb=g,1048576,/ \
CDEF:cdefdd=a,0,*,100,+ \
COMMENT:"Statistics\n"  \
AREA:a#FF6044FF:"Read Time(%)"  \
GPRINT:a:LAST:"   Read\: (%1.1lf %%)\n"  \
AREA:a#55D6D3FF:""  \
AREA:c#00BED9FF:"Write Time(%)"  \
GPRINT:c:LAST:"             Write\: (%1.1lf %%)\n"  \
LINE1:e#004359FF:"Free Space(%)"  \
GPRINT:e:LAST:"  Free\: (%1.1lf %%)\n"  \
LINE1:e#004359FF:""  \
LINE1:g#FFC3C0FF:"Available"  \
GPRINT:cdefba:LAST:"                  Available \: %5.2lf Gb\n"  \
LINE1:i#0000FFFF:"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#DE0056FF:"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#F5F800FF:"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#00FF00FF:"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#7CB3F1FF:""  \
LINE2:g#ED7600FF:"Free Space (Mb)"  \
LINE1:cdefdd#FFFFFFFF:"" 
RRDTool Says:

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

For W32 - Disk Statistics :

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="COLAS - Disk Stats |query_diskInstance|" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
--vertical-label="Unit (Percent / time slice)" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":PercentDiskReadTime:LAST \
DEF:b="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":PercentDiskReadTime:AVERAGE \
DEF:c="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":PercentDiskWriteTim:LAST \
DEF:d="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":PercentDiskWriteTim:AVERAGE \
DEF:e="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":PercentFreeSpace:LAST \
DEF:f="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":PercentFreeSpace:AVERAGE \
DEF:g="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":FreeMegabytes:LAST \
DEF:h="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":FreeMegabytes:AVERAGE \
DEF:i="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":AvgDiskReadPerSec:LAST \
DEF:j="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":AvgDiskReadPerSec:AVERAGE \
DEF:ba="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":AvgDiskWritePerSec:LAST \
DEF:bb="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":AvgDiskWritePerSec:AVERAGE \
DEF:bc="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":AvgDiskReadQueueLen:LAST \
DEF:bd="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":AvgDiskReadQueueLen:AVERAGE \
DEF:be="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":AvgDiskWriteQueueLe:LAST \
DEF:bf="/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd":AvgDiskWriteQueueLe:AVERAGE \
CDEF:cdefba=g,1024,/ \
CDEF:cdefdb=g,1048576,/ \
CDEF:cdefdd=a,0,*,100,+ \
COMMENT:"Statistics\n"  \
AREA:a#FF6044FF:"Read Time(%)"  \
GPRINT:a:LAST:"   Read\: (%1.1lf %%)\n"  \
AREA:a#55D6D3FF:""  \
AREA:c#00BED9FF:"Write Time(%)"  \
GPRINT:c:LAST:"             Write\: (%1.1lf %%)\n"  \
LINE1:e#004359FF:"Free Space(%)"  \
GPRINT:e:LAST:"  Free\: (%1.1lf %%)\n"  \
LINE1:e#004359FF:""  \
LINE1:g#FFC3C0FF:"Available"  \
GPRINT:cdefba:LAST:"                  Available \: %5.2lf Gb\n"  \
LINE1:i#0000FFFF:"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#DE0056FF:"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#F5F800FF:"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#00FF00FF:"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#7CB3F1FF:""  \
LINE2:g#ED7600FF:"Free Space (Mb)"  \
LINE1:cdefdd#FFFFFFFF:"" 
RRDTool Says:

ERROR: opening '/var/www/cacti-0.8.7a/rra/colas_freemegabytes_219.rrd': No such file or directory
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests