SNMP Informant Read/Write Queue

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

Moderators: Developers, Moderators

Post Reply
Malus
Posts: 1
Joined: Fri Oct 12, 2012 3:21 am

SNMP Informant Read/Write Queue

Post by Malus »

Hello!

We have a CACTI 0.8.7g in use. The host machine is debian based.

We would like to analyze the read / write queue using SNMP Informant.

The old scripts (http://forums.cacti.net/about10707.html) does not work for us.
RRDTools bring the following message:


/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='POOL-SQL08 - Disk - E:' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='Unit' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":PercentDiskWriteTim:LAST \
DEF:b="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":PercentDiskReadTime:LAST \
DEF:c="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":PercentFreeSpace:LAST \
DEF:f="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":FreeMegabytes:LAST \
DEF:g="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":AvgDiskReadPerSec:LAST \
DEF:h="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":AvgDiskWritePerSec:LAST \
CDEF:cdefbc=f,1024,/,/ \
CDEF:cdefdc=a,0,*,100,+ \
AREA:a#2175D9FF:"Write Time(%)" \
AREA:b#8D85F3FF:"Read Time(%)" \
LINE1:c#FF0000FF:"Read Queue\:" \
LINE1:d#00FF00FF:"Write Queue\:" \
LINE2:e#000000FF:"" \
LINE1:b#000000FF:"" \
LINE1:e#FF5F00FF:"Free Space (%)\n" \
COMMENT:"Statistics" \
GPRINT:b:LAST:" Read\: (%1.1lf %%)" \
GPRINT:a:LAST:"Write\: (%1.1lf %%)" \
GPRINT:e:LAST:"Free\: (%1.1lf %%)" \
LINE1:f:"Available\:" \
GPRINT:cdefbc:LAST:" Available\: %5.2lf Gb\n" \
COMMENT:"Read IO / sec\:" \
LINE1:g:"Read /s\:\n" \
GPRINT:g:LAST:" Current\:%8.0lf" \
GPRINT:g:AVERAGE:"Average\:%8.0lf" \
GPRINT:g:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write IO / sec\:" \
LINE1:h:"Write /s" \
GPRINT:h:LAST:" Current\:%8.0lf" \
GPRINT:h:AVERAGE:"Average\:%8.0lf" \
GPRINT:h: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#FFFFFFFF:""

RRDTool Says:

ERROR: Legend set but no color: Available\:



If we assign a color, comes the following message:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='POOL-SQL08 - Disk - E:' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='Unit' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":PercentDiskWriteTim:LAST \
DEF:b="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":PercentDiskReadTime:LAST \
DEF:c="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":PercentFreeSpace:LAST \
DEF:f="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":FreeMegabytes:LAST \
DEF:g="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":AvgDiskReadPerSec:LAST \
DEF:h="/var/lib/cacti/rra/pool-sql08_percentdiskwritetim_112.rrd":AvgDiskWritePerSec:LAST \
CDEF:cdefbc=f,1024,/,/ \
CDEF:cdefdc=a,0,*,100,+ \
AREA:a#2175D9FF:"Write Time(%)" \
AREA:b#8D85F3FF:"Read Time(%)" \
LINE1:c#FF0000FF:"Read Queue\:" \
LINE1:d#00FF00FF:"Write Queue\:" \
LINE2:e#000000FF:"" \
LINE1:b#000000FF:"" \
LINE1:e#FF5F00FF:"Free Space (%)\n" \
COMMENT:"Statistics" \
GPRINT:b:LAST:" Read\: (%1.1lf %%)" \
GPRINT:a:LAST:"Write\: (%1.1lf %%)" \
GPRINT:e:LAST:"Free\: (%1.1lf %%)" \
LINE1:f#FFFFFFFF:"Available\:" \
GPRINT:cdefbc:LAST:" Available\: %5.2lf Gb\n" \
COMMENT:"Read IO / sec\:" \
LINE1:g#FFFFFFFF:"Read /s\:\n" \
GPRINT:g:LAST:" Current\:%8.0lf" \
GPRINT:g:AVERAGE:"Average\:%8.0lf" \
GPRINT:g:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write IO / sec\:" \
LINE1:h#FFFFFFFF:"Write /s" \
GPRINT:h:LAST:" Current\:%8.0lf" \
GPRINT:h:AVERAGE:"Average\:%8.0lf" \
GPRINT:h:MAX:"Maximum\:%8.0lf\n" \
LINE1:#FFFFFFFF:"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#FFFFFFFF:""

RRDTool Says:

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


Can someone please help us?

Best regards,
Malus
pixer
Posts: 1
Joined: Thu Mar 07, 2013 3:28 pm

Re: SNMP Informant Read/Write Queue

Post by pixer »

Hey,

did you ever manage to figure this out?
thanks
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: SNMP Informant Read/Write Queue

Post by phalek »

It seems like you didn't select a data source for that Line (data source = none ?):

Code: Select all

LINE1:#FFFFFFFF:"Free Space (Mb)" \
should be e.g:

Code: Select all

LINE1:h#FFFFFFFF:"Free Space (Mb)" \
(note the little "h" in front of the color ).
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest