ucd/net snmp Device (Disk) I/O templates - Updated - v3.1

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

Moderators: Developers, Moderators

Post Reply

Would you or your company pay someone to create more graph templates?

Poll ended at Wed Nov 02, 2005 7:01 pm

Yes
14
17%
No
28
33%
Maybe
23
27%
You suck for even asking
19
23%
 
Total votes: 84

natrlhy
Posts: 6
Joined: Wed Mar 14, 2007 6:48 pm

Post by natrlhy »

mr.Scamp wrote:What data do i have to input in the fields on the picture below to get it working?
In what field do i have to type the disk`s name such as hda or ad0?
I get the same thing on a Solaris host I'm trying to monitor the Disk I/O. The cacti server supports php-snmp...

EDIT: I downloaded the diskio.tgz files provided by gandalf and they were imported successfully.

I can now add ucd/net - Device I/O as a Associated Data Queries for my Solaris host, but now I am realizing that Solaris 9 might not support the diskio module. Is this correct?
bithajcsar
Posts: 1
Joined: Wed Aug 22, 2007 6:44 am

Data Query does not show up

Post by bithajcsar »

Hi,

I think I did everything like advised, but the data query does not show up in the list. Therefore I can not create graphs.
I use 0.8.6i
Please help to find the error.


Bithajcsar
User avatar
exploit-soget
Posts: 40
Joined: Tue Jan 23, 2007 5:31 am

Post by exploit-soget »

I have no data for this template and when i tried to verbose query i have this :

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/net-snmp_devio.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.13.15.1.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/html/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/net-snmp_devio.xml'

Can you help me ?
User avatar
RCK
Cacti User
Posts: 54
Joined: Fri Jan 26, 2007 12:38 pm

Post by RCK »

raindrift wrote:To get diskio support on Linux systems without recompiling net-snmp:

http://spacepants.org/blog/net-snmp-lin ... ollector-2
Very usefull link !
But there is one update 8)

For user without diskio support into their distribution, you can use this script to add disk-io support without rebuilding your net-snmp
http://spacepants.org/blog/net-snmp-lin ... ollector-3
Cacti: 0.8.7g | Spine: 0.8.7g
Plugins: RRDclean - Weathermap - Thold - Realtime
My Template: ApacheStats 0.8.2 (multiple RRD, Low disk usage, Script Server)
User avatar
MagnaChef
Cacti User
Posts: 164
Joined: Tue Nov 25, 2003 3:58 pm
Location: Buffalo, NY

Post by MagnaChef »

For some reason, I am only seeing the first 20 diskIODevice. Is this something with the Cacti frontend, or is it something with the query?

cacti-0.8.7a-1
CentOS 4.4

Thanks!
User avatar
MagnaChef
Cacti User
Posts: 164
Joined: Tue Nov 25, 2003 3:58 pm
Location: Buffalo, NY

Post by MagnaChef »

Nevermind, I see the issue (just need to hit the "next" button)
karias
Cacti User
Posts: 60
Joined: Wed Oct 25, 2006 10:36 am

Post by karias »

natrlhy wrote:
mr.Scamp wrote:What data do i have to input in the fields on the picture below to get it working?
In what field do i have to type the disk`s name such as hda or ad0?
I get the same thing on a Solaris host I'm trying to monitor the Disk I/O. The cacti server supports php-snmp...

EDIT: I downloaded the diskio.tgz files provided by gandalf and they were imported successfully.

I can now add ucd/net - Device I/O as a Associated Data Queries for my Solaris host, but now I am realizing that Solaris 9 might not support the diskio module. Is this correct?
Ditto to these 2....what should be put in the blanks?
feld
Posts: 3
Joined: Thu Feb 21, 2008 12:01 pm

Post by feld »

when I go to create a graph what do I put for index type, index value, and output type id?


I'm also having a hard time figuring out which ones are my fiber SAN luns. I think it's the ssd's because there is some ssds for the luns in the /devices/scsi_vhci? (I'm on Solaris).

Here's some (hopefully) helpful info.

Code: Select all

UCD-DISKIO-MIB::diskIOIndex.1 = INTEGER: 1
UCD-DISKIO-MIB::diskIOIndex.2 = INTEGER: 2
UCD-DISKIO-MIB::diskIOIndex.3 = INTEGER: 3
UCD-DISKIO-MIB::diskIOIndex.4 = INTEGER: 4
UCD-DISKIO-MIB::diskIOIndex.5 = INTEGER: 5
UCD-DISKIO-MIB::diskIOIndex.6 = INTEGER: 6
UCD-DISKIO-MIB::diskIOIndex.7 = INTEGER: 7
UCD-DISKIO-MIB::diskIOIndex.8 = INTEGER: 8
UCD-DISKIO-MIB::diskIOIndex.9 = INTEGER: 9
UCD-DISKIO-MIB::diskIOIndex.10 = INTEGER: 10
UCD-DISKIO-MIB::diskIOIndex.11 = INTEGER: 11
UCD-DISKIO-MIB::diskIOIndex.12 = INTEGER: 12
UCD-DISKIO-MIB::diskIOIndex.13 = INTEGER: 13
UCD-DISKIO-MIB::diskIODevice.1 = STRING: sd15
UCD-DISKIO-MIB::diskIODevice.2 = STRING: sd16
UCD-DISKIO-MIB::diskIODevice.3 = STRING: md10
UCD-DISKIO-MIB::diskIODevice.4 = STRING: md20
UCD-DISKIO-MIB::diskIODevice.5 = STRING: md0
UCD-DISKIO-MIB::diskIODevice.6 = STRING: ssd7
UCD-DISKIO-MIB::diskIODevice.7 = STRING: ssd3
UCD-DISKIO-MIB::diskIODevice.8 = STRING: ssd4
UCD-DISKIO-MIB::diskIODevice.9 = STRING: ssd5
UCD-DISKIO-MIB::diskIODevice.10 = STRING: ssd6
UCD-DISKIO-MIB::diskIODevice.11 = STRING: md11
UCD-DISKIO-MIB::diskIODevice.12 = STRING: md21
UCD-DISKIO-MIB::diskIODevice.13 = STRING: md1
UCD-DISKIO-MIB::diskIONRead.1 = Counter32: 747038936
UCD-DISKIO-MIB::diskIONRead.2 = Counter32: 750989261
UCD-DISKIO-MIB::diskIONRead.3 = Counter32: 744883712
UCD-DISKIO-MIB::diskIONRead.4 = Counter32: 750830080
UCD-DISKIO-MIB::diskIONRead.5 = Counter32: 1495713792
UCD-DISKIO-MIB::diskIONRead.6 = Counter32: 362508712
UCD-DISKIO-MIB::diskIONRead.7 = Counter32: 3432272
UCD-DISKIO-MIB::diskIONRead.8 = Counter32: 2683681616
UCD-DISKIO-MIB::diskIONRead.9 = Counter32: 2911893988
UCD-DISKIO-MIB::diskIONRead.10 = Counter32: 3187868348
UCD-DISKIO-MIB::diskIONRead.11 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.12 = Counter32: 8192
UCD-DISKIO-MIB::diskIONRead.13 = Counter32: 8192
UCD-DISKIO-MIB::diskIONWritten.1 = Counter32: 1003999232
UCD-DISKIO-MIB::diskIONWritten.2 = Counter32: 980625408
UCD-DISKIO-MIB::diskIONWritten.3 = Counter32: 980591616
UCD-DISKIO-MIB::diskIONWritten.4 = Counter32: 980591616
UCD-DISKIO-MIB::diskIONWritten.5 = Counter32: 980591616
UCD-DISKIO-MIB::diskIONWritten.6 = Counter32: 371173888
UCD-DISKIO-MIB::diskIONWritten.7 = Counter32: 181182464
UCD-DISKIO-MIB::diskIONWritten.8 = Counter32: 3755909632
UCD-DISKIO-MIB::diskIONWritten.9 = Counter32: 3486520320
UCD-DISKIO-MIB::diskIONWritten.10 = Counter32: 3335225856
UCD-DISKIO-MIB::diskIONWritten.11 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.12 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.13 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.1 = Counter32: 66043
UCD-DISKIO-MIB::diskIOReads.2 = Counter32: 65746
UCD-DISKIO-MIB::diskIOReads.3 = Counter32: 63573
UCD-DISKIO-MIB::diskIOReads.4 = Counter32: 63572
UCD-DISKIO-MIB::diskIOReads.5 = Counter32: 127145
UCD-DISKIO-MIB::diskIOReads.6 = Counter32: 25243
UCD-DISKIO-MIB::diskIOReads.7 = Counter32: 91
UCD-DISKIO-MIB::diskIOReads.8 = Counter32: 152085
UCD-DISKIO-MIB::diskIOReads.9 = Counter32: 28193
UCD-DISKIO-MIB::diskIOReads.10 = Counter32: 9797904
UCD-DISKIO-MIB::diskIOReads.11 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.12 = Counter32: 1
UCD-DISKIO-MIB::diskIOReads.13 = Counter32: 1
UCD-DISKIO-MIB::diskIOWrites.1 = Counter32: 189148
UCD-DISKIO-MIB::diskIOWrites.2 = Counter32: 146860
UCD-DISKIO-MIB::diskIOWrites.3 = Counter32: 141802
UCD-DISKIO-MIB::diskIOWrites.4 = Counter32: 141802
UCD-DISKIO-MIB::diskIOWrites.5 = Counter32: 141802
UCD-DISKIO-MIB::diskIOWrites.6 = Counter32: 7471
UCD-DISKIO-MIB::diskIOWrites.7 = Counter32: 1923
UCD-DISKIO-MIB::diskIOWrites.8 = Counter32: 326839
UCD-DISKIO-MIB::diskIOWrites.9 = Counter32: 3000845
UCD-DISKIO-MIB::diskIOWrites.10 = Counter32: 15089283
UCD-DISKIO-MIB::diskIOWrites.11 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.12 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.13 = Counter32: 0

Code: Select all

# ls
ssd@g000b08001d001967         ssd@g000b08001d001967:g,raw   ssd@g000b08001f001967:f       ssd@g000b080020001967:d,raw   ssd@g000b080021001967:c
ssd@g000b08001d001967:a       ssd@g000b08001d001967:wd      ssd@g000b08001f001967:f,raw   ssd@g000b080020001967:e       ssd@g000b080021001967:c,raw
ssd@g000b08001d001967:a,raw   ssd@g000b08001d001967:wd,raw  ssd@g000b08001f001967:g       ssd@g000b080020001967:e,raw   ssd@g000b080021001967:d
ssd@g000b08001d001967:b       ssd@g000b08001f001967         ssd@g000b08001f001967:g,raw   ssd@g000b080020001967:f       ssd@g000b080021001967:d,raw
ssd@g000b08001d001967:b,raw   ssd@g000b08001f001967:a       ssd@g000b08001f001967:wd      ssd@g000b080020001967:f,raw   ssd@g000b080021001967:e
ssd@g000b08001d001967:c       ssd@g000b08001f001967:a,raw   ssd@g000b08001f001967:wd,raw  ssd@g000b080020001967:g       ssd@g000b080021001967:e,raw
ssd@g000b08001d001967:c,raw   ssd@g000b08001f001967:b       ssd@g000b080020001967         ssd@g000b080020001967:g,raw   ssd@g000b080021001967:f
ssd@g000b08001d001967:d       ssd@g000b08001f001967:b,raw   ssd@g000b080020001967:a       ssd@g000b080020001967:wd      ssd@g000b080021001967:f,raw
ssd@g000b08001d001967:d,raw   ssd@g000b08001f001967:c       ssd@g000b080020001967:a,raw   ssd@g000b080020001967:wd,raw  ssd@g000b080021001967:g
ssd@g000b08001d001967:e       ssd@g000b08001f001967:c,raw   ssd@g000b080020001967:b       ssd@g000b080021001967         ssd@g000b080021001967:g,raw
ssd@g000b08001d001967:e,raw   ssd@g000b08001f001967:d       ssd@g000b080020001967:b,raw   ssd@g000b080021001967:a       ssd@g000b080021001967:wd
ssd@g000b08001d001967:f       ssd@g000b08001f001967:d,raw   ssd@g000b080020001967:c       ssd@g000b080021001967:a,raw   ssd@g000b080021001967:wd,raw
ssd@g000b08001d001967:f,raw   ssd@g000b08001f001967:e       ssd@g000b080020001967:c,raw   ssd@g000b080021001967:b
ssd@g000b08001d001967:g       ssd@g000b08001f001967:e,raw   ssd@g000b080020001967:d       ssd@g000b080021001967:b,raw

Code: Select all

# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@0,0
       1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@1,0
       2. c3t000B08001D001967d0 <Pillar-Axiom 300-0000-20.25GB>
          /scsi_vhci/ssd@g000b08001d001967
       3. c3t000B08001F001967d0 <Pillar-Axiom 300-0000-100.23GB>
          /scsi_vhci/ssd@g000b08001f001967
       4. c3t000B080020001967d0 <Pillar-Axiom 300-0000-100.23GB>
          /scsi_vhci/ssd@g000b080020001967
       5. c3t000B080021001967d0 <Pillar-Axiom 300-0000-50.24GB>
          /scsi_vhci/ssd@g000b080021001967
Specify disk (enter its number):

Thanks!
mvip
Posts: 4
Joined: Thu Jun 21, 2007 2:07 pm

Post by mvip »

Did anyone manage to get this working on any recent version of Cacti?

I followed the steps in the initial instructions, but can only manage to get "Bytes Read/Written" to work. I'm running on a FreeBSD 6.2 machine and I can successfully manage top pull the information with snmptable and snmpwalk
snmptable -v1 -c public 127.0.0.1 diskIOTable
SNMP table: UCD-DISKIO-MIB::diskIOTable

diskIOIndex diskIODevice diskIONRead diskIONWritten diskIOReads diskIOWrites diskIOLA1 diskIOLA5 diskIOLA15 diskIONReadX diskIONWrittenX
1 ad0 1655573504 3524749312 177486 214412 4 4 5 ? ?
snmpwalk -v1 -c public 127.0.0.1 1.3.6.1.4.1.2021.13.15
UCD-DISKIO-MIB::diskIOIndex.1 = INTEGER: 1
UCD-DISKIO-MIB::diskIODevice.1 = STRING: ad0
UCD-DISKIO-MIB::diskIONRead.1 = Counter32: 1655582208
UCD-DISKIO-MIB::diskIONWritten.1 = Counter32: 3525361664
UCD-DISKIO-MIB::diskIOReads.1 = Counter32: 177487
UCD-DISKIO-MIB::diskIOWrites.1 = Counter32: 214445
UCD-DISKIO-MIB::diskIOLA1.1 = INTEGER: 5
UCD-DISKIO-MIB::diskIOLA5.1 = INTEGER: 4
UCD-DISKIO-MIB::diskIOLA15.1 = INTEGER: 5
If I do the debugging within Cacti, I receive the following information:
Data Source Debug
/usr/local/bin/rrdtool create \
/usr/local/share/cacti/rra/server.net_device_writes_95.rrd \
--step 300 \
DS:Device_Reads:COUNTER:600:0:U \
DS:Bytes_Read:COUNTER:600:0:U \
DS:Bytes_Written:COUNTER:600:0:U \
DS:Device_Writes:COUNTER:600:0:U \
DS:1Min_LoadAvg:GAUGE:600:0:100 \
DS:5Min_LoadAvg:GAUGE:600:0:100 \
DS:15Min_LoadAvg:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
As far as I can tell, it seems like I receive enough information to do the graphs.

Anyone got a clue why the other two graphs fail to appear? I'm running Cacti 0.8.7b.
feld
Posts: 3
Joined: Thu Feb 21, 2008 12:01 pm

Post by feld »

mvip wrote:Did anyone manage to get this working on any recent version of Cacti?
be kind and answer my question a post above and I'll be glad to get back to you immediately with the results of whether it functions or not. :)
doughairfield
Posts: 20
Joined: Wed Feb 20, 2008 1:57 pm

Not drawing graphs for Device I/O Reads/Writes and Load Ave.

Post by doughairfield »

Almost everything is working great for the Disk I/O template with the exception of 2 of the 3 graphs, Device I/O Reads/Writes and Load Average. I did a debug output of the Read/Writes graph and noticed the
ERROR: the RRD does not contain an RRA matching the chosen CF
At the bottom, any ideas on how to fix that?

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="file002 - Device I/O - Reads/Writes sda" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Reads/Writes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/apache2/htdocs/cacti/rra/file002_device_reads_1083.rrd":Device_Reads:LAST \
DEF:b="/usr/local/apache2/htdocs/cacti/rra/file002_device_reads_1083.rrd":Device_Reads:MAX \
DEF:c="/usr/local/apache2/htdocs/cacti/rra/file002_device_reads_1083.rrd":Device_Writes:LAST \
DEF:d="/usr/local/apache2/htdocs/cacti/rra/file002_device_reads_1083.rrd":Device_Writes:MAX \
LINE1:a#0000FFFF:"Device Reads\:" \
GPRINT:a:LAST:" Last\:%8.0lf" \
GPRINT:b:MIN:"Minimum\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf\n" \
LINE1:c#FF0000FF:"Device Writes\:" \
GPRINT:c:LAST:"Last\:%8.0lf" \
GPRINT:d:MIN:"Minumum\:%8.0lf" \
GPRINT:d:AVERAGE:"Average\:%8.0lf" \
GPRINT:d:MAX:"Maximum\:%8.0lf\n"
RRDTool Says:
ERROR: the RRD does not contain an RRA matching the chosen CF
tracky2007
Posts: 34
Joined: Thu Dec 27, 2007 3:07 am

Post by tracky2007 »

how to make cacti support php snmp?

i got same problem above~~~cacti need me to input indexID、outputID.......

i use cacti0.86j
tracky2007
Posts: 34
Joined: Thu Dec 27, 2007 3:07 am

Post by tracky2007 »

problem has been solved!
thank everybody here~~~
gpetme
Posts: 22
Joined: Wed Mar 28, 2007 5:48 pm

Post by gpetme »

I have witnessed the same problem with 2 of the 3 graphs not working, and displaying the following error when you turn on graph debug mode:

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

I got these two other graphs to work by changing the graph template to use AVERAGE rather than LAST on the AREA and STACK components.

This issue is discussed at more depth here:

http://forums.cacti.net/viewtopic.php?t=3686

Hope this helps.

Greg
krpaum
Posts: 13
Joined: Mon Apr 21, 2008 2:09 am

Post by krpaum »

When i create graph for device. The page is asking me to fill these value.






what should i fill in output typeID, index value and index type
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests