Upgraded: snmpdiskio 0.9.6 (Disk I/O statistics on Linux)

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

Moderators: Developers, Moderators

Post Reply
pdestefanis
Posts: 9
Joined: Tue Dec 19, 2006 11:39 am

Post by pdestefanis »

Tested in 2.6, but I'm not sure if this will work on 2.4.

Output from /proc/partitions in 2.4:

3 0 39082680 hda 446216 784926 9550688 4382310 424847 312726 5922052 19310380 0 3376340 23705160
3 1 9221278 hda1 35486 0 35496 38030 0 0 0 0 0 38030 38030

Field 3 -- # of sectors read (that's the third after the label - i.e. hda)
Field 7 -- # of sectors written (that's the seventh after the label - i.e. hda)

According to our function for READS:
function hdOutBlocks()
{
awk ' $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ && $8 ~ /[0-9]+/ { printf "%.0f\n", $6 * 512 }
$1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ && $8 !~ /[0-9]+/ { printf "%.0f\n", $5 * 512 } ' $PROCFILE
}

we will read the 6th field in the output ($6), since the 8th field satisfies the condition [0-9]+, and that's field #2 according to the description on http://developer.osdl.org/dev/robustmut ... ostats.txt -second field after the disk/partition label.
That will return # of reads (merged), and not the disk size. As a result, for kernels 2.4, the total number displayed by Cacti will be significantly lower than real (as # reads usually < bytes read).

Same situation with writes (you can verify it in the same way)

At this point, we need a better way to deal with the two kernel versions. Since we have a $mode with the kernel version, I suggest we use it within each function, to ask for different variables depending if we're reading /proc/partitions or /proc/diskstats.

Pablo
pdestefanis
Posts: 9
Joined: Tue Dec 19, 2006 11:39 am

Post by pdestefanis »

Sorry for all these consecutive postings... I took a look at /proc/diskstats in 2.6 and /proc/partitions in 2.4 and came with a modified version of the script. I've tested it in both kernels and it's working fine.

I've commented the code a bit, at the beginning, to specify fields, etc. If someone can take a look and provide some feedback, that will be great.

Enjoy!

Pablo

Code: Select all

#!/bin/bash
# $Id: snmpdiskio,v 1.5 2007/02/22 01:12:50 pdestefanis Exp $
# snmpdiskio v0.9.5 (c) 2007 Pablo Destefanis <pdestefanis@gmail.com>
# snmpdiskio v0.9.4 (c) 2006 Mikael Fridh <mikael@meanstreak.se>

# Fields in /proc/partitions (kernel 2.4)
# major minor #blocks name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq

# Fields in /proc/diskstats (kernel 2.6) for disks (i.e. hda)
# major minor name rio rmerge rsect ruse wio wmerge wsect wuse running use aveq

# Fields in /proc/diskstats (kernel 2.6) for partitions (i.e. hda1)
# major minor name rio rsect wio wsect

# InBlocks = sectors written to disk
# OutBlocks = sectors read from disk

# Set default procfile for kernel 2.4
PROCFILE="/proc/partitions"
MODE="linux24"

# Probably kernel 2.6:
if [ -f /proc/diskstats ]; then
    PROCFILE=/proc/diskstats
    MODE="linux26"
fi


function hdNum()
{
        awk ' BEGIN { num=0 } $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ { num++ } END { print num } ' $PROCFILE
}

function hdIndex()
{
        awk ' BEGIN { num=0 } $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ { num++; print num } ' $PROCFILE
}

function hdDescr()
{
        if [ "$MODE" = "linux26" ]; then
                awk ' $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ { printf "%s\n", $3 }' $PROCFILE
        else
                awk ' $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ { printf "%s\n", $4 }' $PROCFILE
        fi
}

function hdInBlocks()
{
        if [ "$MODE" = "linux26" ]; then
                awk ' $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ && $3 ~ /[0-9]+/ { printf "%.0f\n", $7 * 512 }
                      $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ && $3 !~ /[0-9]+/ { printf "%.0f\n", $10 * 512 } ' $PROCFILE
        else
                awk ' $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ && $4 ~ /[a-z]+/ { printf "%.0f\n", $11 * 512 } ' $PROCFILE
        fi
}

function hdOutBlocks()
{
        if [ "$MODE" = "linux26" ]; then
                awk ' $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ && $3 ~ /[0-9]+/ { printf "%.0f\n", $5 * 512 }
                      $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ && $3 !~ /[0-9]+/ { printf "%.0f\n", $6 * 512 } ' $PROCFILE
        else
                awk ' $1 ~ /[0-9]+/ && $2 ~ /[0-9]+/ && $4 ~ /[a-z]+/ { printf "%.0f\n", $7 * 512 } ' $PROCFILE
        fi
}

function usage()
{
        cat <<-EOUSAGE
Usage: $0 <hdNum|hdIndex|hdDescr|hdInBlocks|hdOutBlocks>
EOUSAGE
}

if [ 1 -ne $# ]; then
        usage
        exit 1
fi

case $1 in
        hdNum|hdIndex|hdDescr|hdInBlocks|hdOutBlocks)
                $1
        ;;
        'hdNum')
                hdNum
        ;;
        'hdIndex')
                hdIndex
        ;;
        'hdDescr')
                hdDescr
        ;;
        'hdInBlocks')
                hdInBlocks
        ;;
        'hdOutBlocks')
                hdOutBlocks
        ;;
        *)
                usage
                exit 1
        ;;
esac

exit 0
eliasp
Posts: 6
Joined: Mon Apr 03, 2006 5:49 pm
Contact:

Post by eliasp »

I've tried using the latest version (from the posting above) of this script, but hadn't any success:

Code: Select all

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/partition.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.55.101'
+ No SNMP data returned
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/partition.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/partition.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/partition.xml'
Kernel 2.6.18 is running.
When querying it manually using

Code: Select all

snmpwalk -v1 -c public myhost .1.3.6.1.4.1.2021.55
it returns a lot of data, but not when using

Code: Select all

snmpwalk -v1 -c public myhost .1.3.6.1.4.1.2021.55.101
What's wrong?

Regards, Elias P.
User avatar
ruud
Cacti User
Posts: 64
Joined: Tue Aug 22, 2006 3:07 am
Location: Rotterdam, The Netherlands
Contact:

Post by ruud »

I am at a loss here..

I followed the instructions to the letter, recompiled net-snmp with diskio stats.. but still no go...
Running data query [15].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/partition.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.55.101'
+ No SNMP data returned
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/partition.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/partition.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/partition.xml'
I tried doing a snmpwalk -v 1 127.0.0.1 -c <community-string> 1.3.6.1.4.1.2021.55 but no output at all..

I think my snmpd.conf is correct :
com2sec local 127.0.0.1/32 public
com2sec local 192.168.0.0/24 public

group MyROGroup v1 local
group MyROGroup v2c local
group MyROGroup usm local

view all included .1 80

access MyROGroup "" any noauth exact all none none

exec .1.3.6.1.4.1.2021.54 hdNum /usr/local/bin/snmpdiskio hdNum
exec .1.3.6.1.4.1.2021.55 hdIndex /usr/local/bin/snmpdiskio hdIndex
exec .1.3.6.1.4.1.2021.56 hdDescr /usr/local/bin/snmpdiskio hdDescr
exec .1.3.6.1.4.1.2021.57 hdInBlocks /usr/local/bin/snmpdiskio hdInBlocks
exec .1.3.6.1.4.1.2021.58 hdOutBlocks /usr/local/bin/snmpdiskio hdOutBlocks
Any ideas why this doesnt work ? I have the diskstats implemented :
hostname # more /proc/diskstats
7 0 loop0 0 0 0 0 0 0 0 0 0 0 0
7 1 loop1 0 0 0 0 0 0 0 0 0 0 0
7 2 loop2 0 0 0 0 0 0 0 0 0 0 0
7 3 loop3 0 0 0 0 0 0 0 0 0 0 0
7 4 loop4 0 0 0 0 0 0 0 0 0 0 0
7 5 loop5 0 0 0 0 0 0 0 0 0 0 0
7 6 loop6 0 0 0 0 0 0 0 0 0 0 0
7 7 loop7 0 0 0 0 0 0 0 0 0 0 0
3 0 hda 1630205 304281 95480352 18102290 811391 4317492 41470480 24516030 1 14922830 42618090
3 1 hda1 9 16 0 0
3 2 hda2 7759 62072 5883 47064
3 3 hda3 759528 7890168 2022362 16178896
3 4 hda4 1167649 87528008 3100665 24805320
22 0 hdc 1619287 305132 95414400 19590640 799639 4316863 41371416 25679970 2 15431160 45270520
22 1 hdc1 21 112 0 0
22 2 hdc2 7838 62704 5886 47088
22 3 hdc3 750904 7814864 2022362 16178896
22 4 hdc4 1166144 87536576 3088279 24706232
3 64 hdb 0 0 0 0 0 0 0 0 0 0 0
8 0 sda 906046 2300655 25683048 14434640 470028 3395230 31619392 6533600 0 7891840 20984840
8 1 sda1 3210334 25682616 3869575 30956600
8 16 sdb 816353 2300948 24965776 14202470 460073 3419901 31740776 6396000 0 7086100 20620900
8 17 sdb1 3120674 24965360 3884749 31077992
8 32 sdc 717070 2326487 24378744 13630890 453476 3473526 32119488 7439740 0 7352170 21090660
8 33 sdc1 3047300 24378320 3932083 31456664
8 48 sdd 699671 2326687 24241528 13404690 465121 3456113 32077008 7096770 0 6974250 20522970
8 49 sdd1 3030143 24241136 3926755 31414040
9 0 md0 12 0 96 0 0 0 0 0 0 0 0
9 3 md3 1761767 0 83082944 0 10779242 0 86233936 0 0 0 0
9 2 md2 2333789 0 175064552 0 6188944 0 49511552 0 0 0 0
9 1 md1 1510428 0 15705000 0 1967462 0 15739696 0 0 0 0
Oh yes, my software versions :
Cacti Version - 0.8.6j
Plugin Architecture - 1.1
Poller Type - Cactid v0.8.6i
Server Info - Linux 2.6.18-gentoo-r3
Web Server - Apache
PHP - 5.1.6-pl6-gentoo
PHP Extensions - libxml, xml, standard, SPL, sockets, snmp, session, Reflection, pspell, mysql, mcrypt, iconv, gd, dom, dba, date, zlib, pcre, openssl, apache2handler, eAccelerator
MySQL - 5.0.26-log
RRDTool - 1.2.15
SNMP - 5.4
Plugins
  • Host Info (hostinfo - v0.1)
    Network Tools (tools - v0.2)
    Update Checker (update - v0.3)
    RRD Cleaner (rrdclean - v1.1)
Server #1 : Cacti 0.8.7b | cmd.php | HP Proliant DL380 G5 (Dual Core Xeon 3.2 GHz, 14 Gb, 2x73 Gb RAID1 - System + 3x73 Gb RAID5 - SQL/RRA) | Gentoo Linux
_________SYSTEM STATS: Time:114.6022 Method:cmd.php Processes:8 Threads:N/A Hosts:408 HostsPerProcess:51 DataSources:32276 RRDsProcessed:16148
pdestefanis
Posts: 9
Joined: Tue Dec 19, 2006 11:39 am

Post by pdestefanis »

Guys,

Any chance that snmpd is not returning a certain part of the tree? You can restrict which parts of the tree you can query, but I believe that you both have "view all .1" somewhere in your snmpd.conf

Have you tried running an snmpwalk as in:

snmpwalk -v 1 -c [your community] 127.0.0.1 .1.3.6.1.4.1.2021.56

(this should give you a list of all the devices in /dev)

I suspect in both cases (also with eliasp) it's a snmpd problem, as an snmpwalk of .55 and .55.101 should yield very similar results. The only difference is that .55 will have (in addition to what .55.101 has) the following lines:

Code: Select all

UCD-SNMP-MIB::ucdavis.55.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.2.1 = STRING: "hdIndex"
UCD-SNMP-MIB::ucdavis.55.3.1 = STRING: "/usr/local/bin/snmpdiskio hdIndex"

... all the lines from .101 here ...

UCD-SNMP-MIB::ucdavis.55.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.103.1 = ""
Any chance that you have registered another node with the same OID? You can do a quick test, changing (in smpd.conf) ever *2021* for *9999* (or anything else, just to make that OID unique).

The OIDs we're using are not registered, and there's always a chance for a collision.

eliasp: Can you post part of the data you get when you invoke .55?

Thank you,

Pablo
User avatar
ruud
Cacti User
Posts: 64
Joined: Tue Aug 22, 2006 3:07 am
Location: Rotterdam, The Netherlands
Contact:

Post by ruud »

I tried the snmpwalk you suggested, no output at all.. So i removen the .56 at the end... Bingo.. loads of output :
hostname~ # snmpwalk -v 1 -c <community> 127.0.0.1 .1.3.6.1.4.1.2021
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 4021904 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 4019304 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 2067948 kB
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 53420 kB
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 4072724 kB
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
UCD-SNMP-MIB::memShared.0 = INTEGER: 0 kB
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 44128 kB
UCD-SNMP-MIB::memCached.0 = INTEGER: 1768104 kB
UCD-SNMP-MIB::memSwapError.0 = INTEGER: noError(0)
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:
UCD-SNMP-MIB::laIndex.1 = INTEGER: 1
UCD-SNMP-MIB::laIndex.2 = INTEGER: 2
UCD-SNMP-MIB::laIndex.3 = INTEGER: 3
UCD-SNMP-MIB::laNames.1 = STRING: Load-1
UCD-SNMP-MIB::laNames.2 = STRING: Load-5
UCD-SNMP-MIB::laNames.3 = STRING: Load-15
UCD-SNMP-MIB::laLoad.1 = STRING: 1.10
UCD-SNMP-MIB::laLoad.2 = STRING: 1.06
UCD-SNMP-MIB::laLoad.3 = STRING: 1.06
UCD-SNMP-MIB::laConfig.1 = STRING: 12.00
UCD-SNMP-MIB::laConfig.2 = STRING: 12.00
UCD-SNMP-MIB::laConfig.3 = STRING: 12.00
UCD-SNMP-MIB::laLoadInt.1 = INTEGER: 110
UCD-SNMP-MIB::laLoadInt.2 = INTEGER: 106
UCD-SNMP-MIB::laLoadInt.3 = INTEGER: 106
UCD-SNMP-MIB::laLoadFloat.1 = Opaque: Float: 1.100000
UCD-SNMP-MIB::laLoadFloat.2 = Opaque: Float: 1.060000
UCD-SNMP-MIB::laLoadFloat.3 = Opaque: Float: 1.060000
UCD-SNMP-MIB::laErrorFlag.1 = INTEGER: noError(0)
UCD-SNMP-MIB::laErrorFlag.2 = INTEGER: noError(0)
UCD-SNMP-MIB::laErrorFlag.3 = INTEGER: noError(0)
UCD-SNMP-MIB::laErrMessage.1 = STRING:
UCD-SNMP-MIB::laErrMessage.2 = STRING:
UCD-SNMP-MIB::laErrMessage.3 = STRING:
UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1
UCD-SNMP-MIB::ssErrorName.0 = STRING: systemStats
UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 0 kB
UCD-SNMP-MIB::ssSwapOut.0 = INTEGER: 0 kB
UCD-SNMP-MIB::ssIOSent.0 = INTEGER: 109 blocks/s
UCD-SNMP-MIB::ssIOReceive.0 = INTEGER: 487 blocks/s
UCD-SNMP-MIB::ssSysInterrupts.0 = INTEGER: 321 interrupts/s
UCD-SNMP-MIB::ssSysContext.0 = INTEGER: 562 switches/s
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 49
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 48
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 724145
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 694
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 23107863
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 61260625
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 1734360
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 62350
UCD-SNMP-MIB::ssIORawSent.0 = Counter32: 115190264
UCD-SNMP-MIB::ssIORawReceived.0 = Counter32: 347198160
UCD-SNMP-MIB::ssRawInterrupts.0 = Counter32: 167825694
UCD-SNMP-MIB::ssRawContexts.0 = Counter32: 377051332
UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 169109
UCD-SNMP-MIB::ssRawSwapIn.0 = Counter32: 0
UCD-SNMP-MIB::ssRawSwapOut.0 = Counter32: 650
UCD-DLMOD-MIB::dlmodNextIndex.0 = INTEGER: 1
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::diskIOIndex.14 = INTEGER: 14
UCD-DISKIO-MIB::diskIOIndex.15 = INTEGER: 15
UCD-DISKIO-MIB::diskIOIndex.16 = INTEGER: 16
UCD-DISKIO-MIB::diskIOIndex.17 = INTEGER: 17
UCD-DISKIO-MIB::diskIOIndex.18 = INTEGER: 18
UCD-DISKIO-MIB::diskIOIndex.19 = INTEGER: 19
UCD-DISKIO-MIB::diskIOIndex.20 = INTEGER: 20
UCD-DISKIO-MIB::diskIOIndex.21 = INTEGER: 21
UCD-DISKIO-MIB::diskIOIndex.22 = INTEGER: 22
UCD-DISKIO-MIB::diskIOIndex.23 = INTEGER: 23
UCD-DISKIO-MIB::diskIOIndex.24 = INTEGER: 24
UCD-DISKIO-MIB::diskIOIndex.25 = INTEGER: 25
UCD-DISKIO-MIB::diskIOIndex.26 = INTEGER: 26
UCD-DISKIO-MIB::diskIOIndex.27 = INTEGER: 27
UCD-DISKIO-MIB::diskIOIndex.28 = INTEGER: 28
UCD-DISKIO-MIB::diskIOIndex.29 = INTEGER: 29
UCD-DISKIO-MIB::diskIOIndex.30 = INTEGER: 30
UCD-DISKIO-MIB::diskIOIndex.31 = INTEGER: 31
UCD-DISKIO-MIB::diskIODevice.1 = STRING: loop0
UCD-DISKIO-MIB::diskIODevice.2 = STRING: loop1
UCD-DISKIO-MIB::diskIODevice.3 = STRING: loop2
UCD-DISKIO-MIB::diskIODevice.4 = STRING: loop3
UCD-DISKIO-MIB::diskIODevice.5 = STRING: loop4
UCD-DISKIO-MIB::diskIODevice.6 = STRING: loop5
UCD-DISKIO-MIB::diskIODevice.7 = STRING: loop6
UCD-DISKIO-MIB::diskIODevice.8 = STRING: loop7
UCD-DISKIO-MIB::diskIODevice.9 = STRING: hda
UCD-DISKIO-MIB::diskIODevice.10 = STRING: hda1
UCD-DISKIO-MIB::diskIODevice.11 = STRING: hda2
UCD-DISKIO-MIB::diskIODevice.12 = STRING: hda3
UCD-DISKIO-MIB::diskIODevice.13 = STRING: hda4
UCD-DISKIO-MIB::diskIODevice.14 = STRING: hdc
UCD-DISKIO-MIB::diskIODevice.15 = STRING: hdc1
UCD-DISKIO-MIB::diskIODevice.16 = STRING: hdc2
UCD-DISKIO-MIB::diskIODevice.17 = STRING: hdc3
UCD-DISKIO-MIB::diskIODevice.18 = STRING: hdc4
UCD-DISKIO-MIB::diskIODevice.19 = STRING: hdb
UCD-DISKIO-MIB::diskIODevice.20 = STRING: sda
UCD-DISKIO-MIB::diskIODevice.21 = STRING: sda1
UCD-DISKIO-MIB::diskIODevice.22 = STRING: sdb
UCD-DISKIO-MIB::diskIODevice.23 = STRING: sdb1
UCD-DISKIO-MIB::diskIODevice.24 = STRING: sdc
UCD-DISKIO-MIB::diskIODevice.25 = STRING: sdc1
UCD-DISKIO-MIB::diskIODevice.26 = STRING: sdd
UCD-DISKIO-MIB::diskIODevice.27 = STRING: sdd1
UCD-DISKIO-MIB::diskIODevice.28 = STRING: md0
UCD-DISKIO-MIB::diskIODevice.29 = STRING: md3
UCD-DISKIO-MIB::diskIODevice.30 = STRING: md2
UCD-DISKIO-MIB::diskIODevice.31 = STRING: md1
UCD-DISKIO-MIB::diskIONRead.1 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.2 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.3 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.4 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.5 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.6 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.7 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.8 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.9 = Counter32: 3006271488
UCD-DISKIO-MIB::diskIONRead.10 = Counter32: 8192
UCD-DISKIO-MIB::diskIONRead.11 = Counter32: 98304
UCD-DISKIO-MIB::diskIONRead.12 = Counter32: 2187354112
UCD-DISKIO-MIB::diskIONRead.13 = Counter32: 818708480
UCD-DISKIO-MIB::diskIONRead.14 = Counter32: 2899709952
UCD-DISKIO-MIB::diskIONRead.15 = Counter32: 57344
UCD-DISKIO-MIB::diskIONRead.16 = Counter32: 98304
UCD-DISKIO-MIB::diskIONRead.17 = Counter32: 2157154304
UCD-DISKIO-MIB::diskIONRead.18 = Counter32: 742297600
UCD-DISKIO-MIB::diskIONRead.19 = Counter32: 0
UCD-DISKIO-MIB::diskIONRead.20 = Counter32: 3904458752
UCD-DISKIO-MIB::diskIONRead.21 = Counter32: 3904352256
UCD-DISKIO-MIB::diskIONRead.22 = Counter32: 3558887424
UCD-DISKIO-MIB::diskIONRead.23 = Counter32: 3558768640
UCD-DISKIO-MIB::diskIONRead.24 = Counter32: 3394793472
UCD-DISKIO-MIB::diskIONRead.25 = Counter32: 3394686976
UCD-DISKIO-MIB::diskIONRead.26 = Counter32: 3435216896
UCD-DISKIO-MIB::diskIONRead.27 = Counter32: 3435102208
UCD-DISKIO-MIB::diskIONRead.28 = Counter32: 49152
UCD-DISKIO-MIB::diskIONRead.29 = Counter32: 60346368
UCD-DISKIO-MIB::diskIONRead.30 = Counter32: 1560989696
UCD-DISKIO-MIB::diskIONRead.31 = Counter32: 49524736
UCD-DISKIO-MIB::diskIONWritten.1 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.2 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.3 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.4 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.5 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.6 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.7 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.8 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.9 = Counter32: 1007177728
UCD-DISKIO-MIB::diskIONWritten.10 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.11 = Counter32: 1331200
UCD-DISKIO-MIB::diskIONWritten.12 = Counter32: 785690624
UCD-DISKIO-MIB::diskIONWritten.13 = Counter32: 4257124352
UCD-DISKIO-MIB::diskIONWritten.14 = Counter32: 997556224
UCD-DISKIO-MIB::diskIONWritten.15 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.16 = Counter32: 1331200
UCD-DISKIO-MIB::diskIONWritten.17 = Counter32: 785690624
UCD-DISKIO-MIB::diskIONWritten.18 = Counter32: 4247502848
UCD-DISKIO-MIB::diskIONWritten.19 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.20 = Counter32: 3238846464
UCD-DISKIO-MIB::diskIONWritten.21 = Counter32: 2530304000
UCD-DISKIO-MIB::diskIONWritten.22 = Counter32: 20692992
UCD-DISKIO-MIB::diskIONWritten.23 = Counter32: 3607105536
UCD-DISKIO-MIB::diskIONWritten.24 = Counter32: 136024064
UCD-DISKIO-MIB::diskIONWritten.25 = Counter32: 3722440704
UCD-DISKIO-MIB::diskIONWritten.26 = Counter32: 3342999552
UCD-DISKIO-MIB::diskIONWritten.27 = Counter32: 2634432512
UCD-DISKIO-MIB::diskIONWritten.28 = Counter32: 0
UCD-DISKIO-MIB::diskIONWritten.29 = Counter32: 3642650624
UCD-DISKIO-MIB::diskIONWritten.30 = Counter32: 4209659904
UCD-DISKIO-MIB::diskIONWritten.31 = Counter32: 527691776
UCD-DISKIO-MIB::diskIOReads.1 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.2 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.3 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.4 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.5 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.6 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.7 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.8 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.9 = Counter32: 2069604
UCD-DISKIO-MIB::diskIOReads.10 = Counter32: 9
UCD-DISKIO-MIB::diskIOReads.11 = Counter32: 24
UCD-DISKIO-MIB::diskIOReads.12 = Counter32: 435199
UCD-DISKIO-MIB::diskIOReads.13 = Counter32: 2111814
UCD-DISKIO-MIB::diskIOReads.14 = Counter32: 2064750
UCD-DISKIO-MIB::diskIOReads.15 = Counter32: 21
UCD-DISKIO-MIB::diskIOReads.16 = Counter32: 24
UCD-DISKIO-MIB::diskIOReads.17 = Counter32: 431005
UCD-DISKIO-MIB::diskIOReads.18 = Counter32: 2106498
UCD-DISKIO-MIB::diskIOReads.19 = Counter32: 0
UCD-DISKIO-MIB::diskIOReads.20 = Counter32: 448855
UCD-DISKIO-MIB::diskIOReads.21 = Counter32: 953212
UCD-DISKIO-MIB::diskIOReads.22 = Counter32: 375970
UCD-DISKIO-MIB::diskIOReads.23 = Counter32: 868841
UCD-DISKIO-MIB::diskIOReads.24 = Counter32: 334726
UCD-DISKIO-MIB::diskIOReads.25 = Counter32: 828782
UCD-DISKIO-MIB::diskIOReads.26 = Counter32: 336260
UCD-DISKIO-MIB::diskIOReads.27 = Counter32: 838649
UCD-DISKIO-MIB::diskIOReads.28 = Counter32: 12
UCD-DISKIO-MIB::diskIOReads.29 = Counter32: 914156
UCD-DISKIO-MIB::diskIOReads.30 = Counter32: 4218308
UCD-DISKIO-MIB::diskIOReads.31 = Counter32: 866200
UCD-DISKIO-MIB::diskIOWrites.1 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.2 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.3 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.4 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.5 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.6 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.7 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.8 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.9 = Counter32: 836267
UCD-DISKIO-MIB::diskIOWrites.10 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.11 = Counter32: 325
UCD-DISKIO-MIB::diskIOWrites.12 = Counter32: 2288971
UCD-DISKIO-MIB::diskIOWrites.13 = Counter32: 2087913
UCD-DISKIO-MIB::diskIOWrites.14 = Counter32: 832477
UCD-DISKIO-MIB::diskIOWrites.15 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.16 = Counter32: 325
UCD-DISKIO-MIB::diskIOWrites.17 = Counter32: 2288971
UCD-DISKIO-MIB::diskIOWrites.18 = Counter32: 2085564
UCD-DISKIO-MIB::diskIOWrites.19 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.20 = Counter32: 589826
UCD-DISKIO-MIB::diskIOWrites.21 = Counter32: 2714902
UCD-DISKIO-MIB::diskIOWrites.22 = Counter32: 776681
UCD-DISKIO-MIB::diskIOWrites.23 = Counter32: 2977793
UCD-DISKIO-MIB::diskIOWrites.24 = Counter32: 791515
UCD-DISKIO-MIB::diskIOWrites.25 = Counter32: 3005952
UCD-DISKIO-MIB::diskIOWrites.26 = Counter32: 601022
UCD-DISKIO-MIB::diskIOWrites.27 = Counter32: 2740325
UCD-DISKIO-MIB::diskIOWrites.28 = Counter32: 0
UCD-DISKIO-MIB::diskIOWrites.29 = Counter32: 7180775
UCD-DISKIO-MIB::diskIOWrites.30 = Counter32: 4173477
UCD-DISKIO-MIB::diskIOWrites.31 = Counter32: 2225983
LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 2
LM-SENSORS-MIB::lmTempSensorsDevice.1 = STRING: Board Temp
LM-SENSORS-MIB::lmTempSensorsDevice.2 = STRING: Temp - not used
LM-SENSORS-MIB::lmTempSensorsDevice.3 = STRING: CPU Temp
LM-SENSORS-MIB::lmTempSensorsValue.1 = Gauge32: 41000
LM-SENSORS-MIB::lmTempSensorsValue.2 = Gauge32: 47000
LM-SENSORS-MIB::lmTempSensorsValue.3 = Gauge32: 62000
LM-SENSORS-MIB::lmFanSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmFanSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmFanSensorsIndex.3 = INTEGER: 2
LM-SENSORS-MIB::lmFanSensorsIndex.4 = INTEGER: 3
LM-SENSORS-MIB::lmFanSensorsIndex.5 = INTEGER: 4
LM-SENSORS-MIB::lmFanSensorsIndex.6 = INTEGER: 5
LM-SENSORS-MIB::lmFanSensorsDevice.1 = STRING: CPU-Fan
LM-SENSORS-MIB::lmFanSensorsDevice.2 = STRING: fan2
LM-SENSORS-MIB::lmFanSensorsDevice.3 = STRING: fan3
LM-SENSORS-MIB::lmFanSensorsDevice.4 = STRING: fan4
LM-SENSORS-MIB::lmFanSensorsDevice.5 = STRING: Fan2-PWM
LM-SENSORS-MIB::lmFanSensorsDevice.6 = STRING: Fan3-PWM
LM-SENSORS-MIB::lmFanSensorsValue.1 = Gauge32: 0
LM-SENSORS-MIB::lmFanSensorsValue.2 = Gauge32: 0
LM-SENSORS-MIB::lmFanSensorsValue.3 = Gauge32: 0
LM-SENSORS-MIB::lmFanSensorsValue.4 = Gauge32: 0
LM-SENSORS-MIB::lmFanSensorsValue.5 = Gauge32: 255
LM-SENSORS-MIB::lmFanSensorsValue.6 = Gauge32: 255
LM-SENSORS-MIB::lmVoltSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmVoltSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmVoltSensorsIndex.3 = INTEGER: 2
LM-SENSORS-MIB::lmVoltSensorsIndex.4 = INTEGER: 3
LM-SENSORS-MIB::lmVoltSensorsIndex.5 = INTEGER: 4
LM-SENSORS-MIB::lmVoltSensorsDevice.1 = STRING: V1.5 - not used
LM-SENSORS-MIB::lmVoltSensorsDevice.2 = STRING: VCore
LM-SENSORS-MIB::lmVoltSensorsDevice.3 = STRING: V3.3
LM-SENSORS-MIB::lmVoltSensorsDevice.4 = STRING: V5
LM-SENSORS-MIB::lmVoltSensorsDevice.5 = STRING: V12 - not used
LM-SENSORS-MIB::lmVoltSensorsValue.1 = Gauge32: 3
LM-SENSORS-MIB::lmVoltSensorsValue.2 = Gauge32: 1288
LM-SENSORS-MIB::lmVoltSensorsValue.3 = Gauge32: 3313
LM-SENSORS-MIB::lmVoltSensorsValue.4 = Gauge32: 5078
LM-SENSORS-MIB::lmVoltSensorsValue.5 = Gauge32: 125
LM-SENSORS-MIB::lmMiscSensorsIndex.1 = INTEGER: 0
LM-SENSORS-MIB::lmMiscSensorsIndex.2 = INTEGER: 1
LM-SENSORS-MIB::lmMiscSensorsIndex.3 = INTEGER: 2
LM-SENSORS-MIB::lmMiscSensorsIndex.4 = INTEGER: 3
LM-SENSORS-MIB::lmMiscSensorsDevice.1 = STRING: vid
LM-SENSORS-MIB::lmMiscSensorsDevice.2 = STRING: vrm
LM-SENSORS-MIB::lmMiscSensorsDevice.3 = STRING: alarms
LM-SENSORS-MIB::lmMiscSensorsDevice.4 = STRING: CPU-PWM
LM-SENSORS-MIB::lmMiscSensorsValue.1 = Gauge32: 1362
LM-SENSORS-MIB::lmMiscSensorsValue.2 = Gauge32: 10000
LM-SENSORS-MIB::lmMiscSensorsValue.3 = Gauge32: 33000
LM-SENSORS-MIB::lmMiscSensorsValue.4 = Gauge32: 134000
UCD-SNMP-MIB::logMatchMaxEntries.0 = INTEGER: 50
UCD-SNMP-MIB::versionIndex.0 = INTEGER: 1
UCD-SNMP-MIB::versionTag.0 = STRING: 5.4
UCD-SNMP-MIB::versionDate.0 = STRING: $Date: 2006/09/15 00:48:42 $
UCD-SNMP-MIB::versionCDate.0 = STRING: Sat Mar 17 17:38:14 2007
UCD-SNMP-MIB::versionIdent.0 = STRING: $Id: versioninfo.c,v 5.3 2006/09/15 00:48:42 tanders Exp $
UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-install-prefix=/var/tmp/portage/net-analyzer/net-snmp-5.4/image/' '--with-sys-location=Unknown' '--with-sys-contact=root@Unknown' '--with-default-snmp-version=3' '--with-mib-modules=host ucd-snmp/dlmod ucd-snmp/lmSensors ucd-snmp/diskio' '--with-logfile=//var/log/net-snmpd.log' '--with-persistent-directory=//var/lib/net-snmp' '--enable-ucd-snmp-compatibility' '--enable-shared' '--enable-as-needed' '--disable-mfd-rewrites' '--enable-embedded-perl' '--disable-ipv6' '--disable-internal-md5' '--with-openssl' '--with-libwrap' '--without-rpm' '--without-bzip2' '--without-zlib' '--without-elf' '--build=i686-pc-linux-gnu' 'CFLAGS= -O2 -march=i686 -pipe' 'CXXFLAGS= -O2 -march=i686 -pipe' 'LDFLAGS=' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu'
UCD-SNMP-MIB::versionClearCache.0 = INTEGER: 0
UCD-SNMP-MIB::versionUpdateConfig.0 = INTEGER: 0
UCD-SNMP-MIB::versionRestartAgent.0 = INTEGER: 0
UCD-SNMP-MIB::versionSavePersistentData.0 = INTEGER: 0
UCD-SNMP-MIB::versionDoDebugging.0 = INTEGER: 0
UCD-SNMP-MIB::snmperrIndex.0 = INTEGER: 0
UCD-SNMP-MIB::snmperrNames.0 = STRING: snmp
UCD-SNMP-MIB::snmperrErrorFlag.0 = INTEGER: noError(0)
UCD-SNMP-MIB::snmperrErrMessage.0 = STRING:
Server #1 : Cacti 0.8.7b | cmd.php | HP Proliant DL380 G5 (Dual Core Xeon 3.2 GHz, 14 Gb, 2x73 Gb RAID1 - System + 3x73 Gb RAID5 - SQL/RRA) | Gentoo Linux
_________SYSTEM STATS: Time:114.6022 Method:cmd.php Processes:8 Threads:N/A Hosts:408 HostsPerProcess:51 DataSources:32276 RRDsProcessed:16148
pdestefanis
Posts: 9
Joined: Tue Dec 19, 2006 11:39 am

Post by pdestefanis »

Ruud,

you only asked for information at a higher level. What you see there is .1.3.6.1.4.1.2021.13 (UCD-DISKIO-MIB, LMSENSORS) and a few others, but not the ones you've defined in your exec.

Two simple tests: Are you sure you modified the correct snmpd.conf? How many snmpd.conf are there in your computer?
Also, have you restarted snmpd after modifying the config file?

Cheers,

Pablo
eliasp
Posts: 6
Joined: Mon Apr 03, 2006 5:49 pm
Contact:

Post by eliasp »

Hi,
pdestefanis wrote: eliasp: Can you post part of the data you get when you invoke .55?
The output of .55:

Code: Select all

UCD-SNMP-MIB::ucdavis.55.1.0 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.2.1.2.7.104.100.73.110.100.101.120 = STRING: "/usr/local/bin/snmpdiskio"
UCD-SNMP-MIB::ucdavis.55.2.1.3.7.104.100.73.110.100.101.120 = STRING: "hdIndex"
UCD-SNMP-MIB::ucdavis.55.2.1.4.7.104.100.73.110.100.101.120 = ""
UCD-SNMP-MIB::ucdavis.55.2.1.5.7.104.100.73.110.100.101.120 = INTEGER: 5
UCD-SNMP-MIB::ucdavis.55.2.1.6.7.104.100.73.110.100.101.120 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.2.1.7.7.104.100.73.110.100.101.120 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.2.1.20.7.104.100.73.110.100.101.120 = INTEGER: 4
UCD-SNMP-MIB::ucdavis.55.2.1.21.7.104.100.73.110.100.101.120 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.55.3.1.1.7.104.100.73.110.100.101.120 = STRING: "1"
UCD-SNMP-MIB::ucdavis.55.3.1.2.7.104.100.73.110.100.101.120 = STRING: "1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33"
UCD-SNMP-MIB::ucdavis.55.3.1.3.7.104.100.73.110.100.101.120 = INTEGER: 33
UCD-SNMP-MIB::ucdavis.55.3.1.4.7.104.100.73.110.100.101.120 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.1 = STRING: "1"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.2 = STRING: "2"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.3 = STRING: "3"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.4 = STRING: "4"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.5 = STRING: "5"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.6 = STRING: "6"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.7 = STRING: "7"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.8 = STRING: "8"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.9 = STRING: "9"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.10 = STRING: "10"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.11 = STRING: "11"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.12 = STRING: "12"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.13 = STRING: "13"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.14 = STRING: "14"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.15 = STRING: "15"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.16 = STRING: "16"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.17 = STRING: "17"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.18 = STRING: "18"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.19 = STRING: "19"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.20 = STRING: "20"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.21 = STRING: "21"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.22 = STRING: "22"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.23 = STRING: "23"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.24 = STRING: "24"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.25 = STRING: "25"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.26 = STRING: "26"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.27 = STRING: "27"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.28 = STRING: "28"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.29 = STRING: "29"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.30 = STRING: "30"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.31 = STRING: "31"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.32 = STRING: "32"
UCD-SNMP-MIB::ucdavis.55.4.1.2.7.104.100.73.110.100.101.120.33 = STRING: "33"
.55.101 has zero output

My snmpd.conf looks like this:

Code: Select all

rocommunity public

extend .1.3.6.1.4.1.2021.54 hdNum /usr/local/bin/snmpdiskio hdNum
extend .1.3.6.1.4.1.2021.55 hdIndex /usr/local/bin/snmpdiskio hdIndex
extend .1.3.6.1.4.1.2021.56 hdDescr /usr/local/bin/snmpdiskio hdDescr
extend .1.3.6.1.4.1.2021.57 hdInBlocks /usr/local/bin/snmpdiskio hdInBlocks
extend .1.3.6.1.4.1.2021.58 hdOutBlocks /usr/local/bin/snmpdiskio hdOutBlocks
A guy at #net-snmp suggested to make it look like this and change the query accordingly, but it didn't help:

Code: Select all

rocommunity public

extend .1.3.6.1.4.1.8072.1.3.2.54 hdNum /usr/local/bin/snmpdiskio hdNum
extend .1.3.6.1.4.1.8072.1.3.2.55 hdIndex /usr/local/bin/snmpdiskio hdIndex
extend .1.3.6.1.4.1.8072.1.3.2.56 hdDescr /usr/local/bin/snmpdiskio hdDescr
extend .1.3.6.1.4.1.8072.1.3.2.57 hdInBlocks /usr/local/bin/snmpdiskio hdInBlocks
extend .1.3.6.1.4.1.8072.1.3.2.58 hdOutBlocks /usr/local/bin/snmpdiskio hdOutBlocks


I'm using:
net-snmp-5.4
cacti-0.8.6i
php-5.2.1

Thank you for your help!
Bati
Posts: 2
Joined: Mon Mar 19, 2007 6:41 am

Post by Bati »

I had the same problem after upgrading net-snmp to ver 5.4
Now it's OK but I had to change partition.xml

Code: Select all

<interface>
        <name>Get SNMP Partitions</name>
        <description>Queries a host for a list of monitorable partitions</description>
        <oid_index>.1.3.6.1.4.1.2021.55.4</oid_index>
        <oid_num_indexes>.1.3.6.1.4.1.2021.54.4</oid_num_indexes>
        <index_order>hdDescr:hdName:hdIndex</index_order>
        <index_order_type>numeric</index_order_type>
        <index_title_format>|chosen_order_field|</index_title_format>

        <fields>
                <hdIndex>
                        <name>Index</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.2021.55.4</oid>
                </hdIndex>
                <hdDescr>
                        <name>Description</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.2021.56.4</oid>
                </hdDescr>
                <hdInBlocks>
                        <name>Bytes Written</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.2021.57.4.1.2.10.104.100.73.110.66.108.111.99.107.115</oid>
                </hdInBlocks>
                <hdOutBlocks>
                        <name>Bytes Read</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>output</direction>
                        <oid>.1.3.6.1.4.1.2021.58.4.1.2.11.104.100.79.117.116.66.108.111.99.107.115</oid>
                </hdOutBlocks>
        </fields>
</interface>
Remember to rebuild poller cache
eliasp
Posts: 6
Joined: Mon Apr 03, 2006 5:49 pm
Contact:

Post by eliasp »

Finally, it seems to work fine here using the new partition.xml.

That's strange, because I still don't receive anything when doing a SNMP query on CLI on .55.101 ;-?

Will do some tests on further systems now and report afterwards whether it was successful.

Thank you!
eliasp
Posts: 6
Joined: Mon Apr 03, 2006 5:49 pm
Contact:

Post by eliasp »

Seems to work only on Gentoo.
When running it on SLES9 (net-snmp-5.1.3.1-0.13, php4-4.3.4-43.8, apache2-2.0.49-27.8) it doesn't return SNMP data. Same problem as above.

What can I do to debug this or how can I help you to debug this?

Regards,
Elias P.
Bati
Posts: 2
Joined: Mon Mar 19, 2007 6:41 am

Post by Bati »

with net-snmp-5.1.3.1-0.13 you should probably use original partition.xml... so upgrade to 5.4 or create separate data query
eliasp
Posts: 6
Joined: Mon Apr 03, 2006 5:49 pm
Contact:

Post by eliasp »

I've already tried using the original partition.xml, but after some hard struggling with SLES9 I managed to get net-snmp-5.4 compiled using a SRPM from a SuSE/Novell Developer.
Needed some manual adjustments at buildtime and php4-snmp doesn't work anymore, but as this isn't needed there, it does it's job.
CPFarhood
Posts: 7
Joined: Wed Nov 09, 2005 11:00 am

Post by CPFarhood »

Confirmed 0.9.4 working on Ubuntu 6.0.6-AMD64. Thanks for the great tool!
jamespca
Posts: 8
Joined: Thu Dec 21, 2006 11:12 am

Post by jamespca »

Works fine for VMware ESX of course EXCEPT the vmhba device reporting since the stats are stored in a different place.

snmpdiskio would need to read the stats data for the VMFS space from /proc/vmware/scsi/vmhbaX/stats in this case. That hopefully would go in the next version :)

Since VMware ESX comes with a flavor of ucd-snmp and worked right away and I tried it on a SuSE 9 (net-snmp-5.x) and snmpd daemon did not start. Maybe the exec lines in snmpd.conf have a different syntax?
[b]Cacti[/b] - 0.8.6j; [b]Plugin Architecture[/b] - 1.1; [b]Poller Type[/b] - Cactid v0.8.6i; [b]Web Server[/b] - Apache/2.2.3 (Win32) PHP/5.2.0; [b]MySQL[/b] - 5.0.27; [b]RRDTool[/b] - 1.2.15; [b]SNMP[/b] - Net-SNMP 5.4
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest