Cacti monitoring Linux and Windows disk IO

Source: Internet
Author: User
Tags snmp

Cacti monitoring Linux and Windows disk IO

Tags: cacti linux disk io windows disk IO original works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, author information and this statement. Otherwise, the legal liability will be investigated. http://charlie928.blog.51cto.com/3741218/1331780

One, the environment

123 cacti版本:0.8.8b# uname -aLinux 10-6-8-200 2.6.32-279.22.1.el6.x86_64 #1 SMP Wed Feb 6 03:10:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Two, operation steps :

First monitor Linux disk IO

1. Download snmpdiskio-0.9.6 2. Unzip and copy the command
1 # cp snmpdiskio /usr/local/bin/
3. Edit the Partition.xml file
123456789101112131415161718192021222324252627282930313233343536373839 vi /var/www/html/cacti/resource/snmp_queries/partition.xml<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.13.15</oid_index>        <index_order>hdDescr:hdIndex</index_order>        <index_order_type>numeric</index_order_type>        <index_title_format>|chosen_order_field|</index_title_format>        <fields>                                        <name>Index</name>                        <method>walk</method>                        <source>value</source>                        <direction>input</direction>                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.1</oid>                </hdIndex>                                        <name>Description</name>                        <method>walk</method>                        <source>value</source>                        <direction>input</direction>                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.2</oid>                </hdDescr>                                        <name>Bytes Written</name>                        <method>walk</method>                        <source>value</source>                        <direction>output</direction>                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.3</oid>                </hdInBlocks>                                        <name>Bytes Read</name>                        <method>walk</method>                        <source>value</source>                        <direction>output</direction>                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.4</oid>                </hdOutBlocks>        </fields></interface>
4. modifying file Properties
1 # chown apache. partition.xml
5. Modify the snmpd.conf configuration and add the following :
123456 # vi /etc/snmp/snmpd.confextend .1.3.6.1.4.1.2021.54 hdNum /bin/sh /usr/local/bin/snmpdiskio hdNumextend .1.3.6.1.4.1.2021.55 hdIndex /bin/sh /usr/local/bin/snmpdiskio hdIndexextend .1.3.6.1.4.1.2021.56 hdDescr /bin/sh /usr/local/bin/snmpdiskio hdDescrextend .1.3.6.1.4.1.2021.57 hdInBlocks /bin/sh /usr/local/bin/snmpdiskio hdInBlocksextend .1.3.6.1.4.1.2021.58 hdOutBlocks /bin/sh /usr/local/bin/snmpdiskio hdOutBlocks
6. Restart the SNMPD service and test
12345678910111213 # service snmpd restart# snmpwalk -v 2c -c meihua localhost .1.3.6.1.4.1.2021.58UCD-SNMP-MIB::ucdavis.58.1.0 = INTEGER: 1UCD-SNMP-MIB::ucdavis.58.2.1.2.11.104.100.79.117.116.66.108.111.99.107.115 = STRING: "/bin/sh"UCD-SNMP-MIB::ucdavis.58.2.1.3.11.104.100.79.117.116.66.108.111.99.107.115 = STRING: "/usr/local/bin/snmpdiskio hdOutBlocks"UCD-SNMP-MIB::ucdavis.58.2.1.4.11.104.100.79.117.116.66.108.111.99.107.115 = ""UCD-SNMP-MIB::ucdavis.58.2.1.5.11.104.100.79.117.116.66.108.111.99.107.115 = INTEGER: 5UCD-SNMP-MIB::ucdavis.58.2.1.6.11.104.100.79.117.116.66.108.111.99.107.115 = INTEGER: 1UCD-SNMP-MIB::ucdavis.58.2.1.7.11.104.100.79.117.116.66.108.111.99.107.115 = INTEGER: 1UCD-SNMP-MIB::ucdavis.58.2.1.20.11.104.100.79.117.116.66.108.111.99.107.115 = INTEGER: 4UCD-SNMP-MIB::ucdavis.58.2.1.21.11.104.100.79.117.116.66.108.111.99.107.115 = INTEGER: 1UCD-SNMP-MIB::ucdavis.58.3.1.1.11.104.100.79.117.116.66.108.111.99.107.115 = STRING: "0"UCD-SNMP-MIB::ucdavis.58.3.1.2.11.104.100.79.117.116.66.108.111.99.107.115 = STRING: "0
7. After extracting the template into the cacti

8. Select this template from the host to get the data

Then the steps to monitor the Windows disk IO operation:

1.windows Client Installation Informant-std-16.exe

: http://www.wtcs.org/informant/download.htm

2. Download the template file: Http://forums.cacti.net/viewtopic.php?f=12&t=29832&hilit=Cacti_SNMP_INFORMANT_STD_W32_Metrics

The above template files are imported into cacti

Copy the above template into/var/www/html/cacti/resource/snmp_queries/

and change permissions.

3. See if Windows disk IO has data

This article is from the "Charlie_cen" blog, make sure to keep this source http://charlie928.blog.51cto.com/3741218/1331780

Cacti monitoring Linux and Windows disk IO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.