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
megamojo
Posts: 14
Joined: Mon May 10, 2010 8:11 am

Post by megamojo »

This worked perfectly to solve my problems. I had already changed everything to look for .4 instead of .101 but I didn't realize I had to add the crazy long OIDs to the read and write queries.
Bati wrote: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
alaunay
Posts: 3
Joined: Sat Sep 20, 2008 11:01 am
Location: Paris, France

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

Post by alaunay »

Doesn't work anymore with cacti 0.8.7h ...

Data Query Debug Information

Code: Select all

+ Running data query [12].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/nw3/htdocs/cacti/resource/snmp_queries/partition.xml'
+ XML file parsed ok.
+ Invalid field <index_order>hdDescr:hdName:hdIndex</index_order>
+ Must contain <direction>input</direction> fields only
Anyone has an idea ?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

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

Post by noname »

Remove undefined field name ("hdName").
DinoNet
Posts: 1
Joined: Thu Feb 16, 2012 9:47 pm

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

Post by DinoNet »

Hi,

Does anybody get this work on net-snmp-5.5 on CentOS/RHEL 6.x?

I think the problem is more about snmp's exec and extend command but I'm not quite sure how to get it work?

Thank-- 8)
dazza76
Posts: 2
Joined: Mon Aug 10, 2009 7:01 pm

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

Post by dazza76 »

to the post 2 up

the answer you your issue
Must contain <direction>input</direction> fields only

means change <direction>output</direction> to <direction>input</direction>


D
abandon0223
Posts: 1
Joined: Sun Jun 14, 2015 3:20 am

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

Post by abandon0223 »

Hi, all

How to monitor CentOS7 with snmpdiskio?
I've add code in my snmpd.conf as below:

extend .1.3.6.1.4.1.2021.54 hdNum /bin/sh /usr/local/bin/snmpdiskio hdNum
extend .1.3.6.1.4.1.2021.55 hdIndex /bin/sh /usr/local/bin/snmpdiskio hdIndex
extend .1.3.6.1.4.1.2021.56 hdDescr /bin/sh /usr/local/bin/snmpdiskio hdDescr
extend .1.3.6.1.4.1.2021.57 hdInBlocks /bin/sh /usr/local/bin/snmpdiskio hdInBlocks
extend .1.3.6.1.4.1.2021.58 hdOutBlocks /bin/sh /usr/local/bin/snmpdiskio hdOutBlocks

after restarting snmpd, I use snmpwalk to print MIB informations.

[root@CentOS6 snmp_queries]# snmpwalk -v 2c -c LabServer XXX.XXX.XXX.XXX .1.3.6.1.4.1.2021.57
UCD-SNMP-MIB::ucdavis.57.1.0 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.57.2.1.2.10.104.100.73.110.66.108.111.99.107.115 = STRING: "/bin/sh"
UCD-SNMP-MIB::ucdavis.57.2.1.3.10.104.100.73.110.66.108.111.99.107.115 = STRING: "/usr/local/bin/snmpdiskio hdInBlocks"
UCD-SNMP-MIB::ucdavis.57.2.1.4.10.104.100.73.110.66.108.111.99.107.115 = ""
UCD-SNMP-MIB::ucdavis.57.2.1.5.10.104.100.73.110.66.108.111.99.107.115 = INTEGER: 5
UCD-SNMP-MIB::ucdavis.57.2.1.6.10.104.100.73.110.66.108.111.99.107.115 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.57.2.1.7.10.104.100.73.110.66.108.111.99.107.115 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.57.2.1.20.10.104.100.73.110.66.108.111.99.107.115 = INTEGER: 4
UCD-SNMP-MIB::ucdavis.57.2.1.21.10.104.100.73.110.66.108.111.99.107.115 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.57.3.1.1.10.104.100.73.110.66.108.111.99.107.115 = STRING: "145561357312/n2097152/n0/n145559260160/n0/n"
UCD-SNMP-MIB::ucdavis.57.3.1.2.10.104.100.73.110.66.108.111.99.107.115 = STRING: "145561357312/n2097152/n0/n145559260160/n0/n"
UCD-SNMP-MIB::ucdavis.57.3.1.3.10.104.100.73.110.66.108.111.99.107.115 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.57.3.1.4.10.104.100.73.110.66.108.111.99.107.115 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.57.4.1.2.10.104.100.73.110.66.108.111.99.107.115.1 = STRING: "145561357312/n2097152/n0/n145559260160/n0/n"
You have new mail in /var/spool/mail/root
[root@CentOS6 snmp_queries]#

but I don't know how to fix partition.xml to draw diagrams.
any one has ideas?

<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.3</oid_index>
<oid_num_indexes>.1.3.6.1.4.1.2021.54.3</oid_num_indexes>
<index_order>hdDescr: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.3</oid>
</hdIndex>
<hdDescr>
<name>Description</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2021.56.3</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.3</oid>
</hdInBlocks>
<hdOutBlocks>
<name>Bytes Read</name>
<method>walk</method>
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest