Cacti monitoring disk io (RHEL)

Source: Internet
Author: User
Tags net snmp snmp


1. Check whether net-snmp supports Io monitoring.

Snmpwalk-V 1-ip ucd of the cpublic monitoring machine | more

Run the preceding command. If the returned data is similar to the following, the monitoring of diskio is supported. Otherwise, the diskio-module needs to be re-compiled.

1. UCD-DISKIO-MIB: diskioindex.1 = integer: 1

2. UCD-DISKIO-MIB: diskioindex.2 = integer: 2

3. UCD-DISKIO-MIB: diskioindex.3 = integer: 3


2. cacti-devio template:

Original: Cacti_Net-SNMP_DevIO_v3.1.tar.gz

Net-snmp_devio.xml

Net-snmp_devIO-BytesRW_graph_TMPL.xml

Net-snmp_devIO-Data_query.xml

Net-snmp_devIO-LoadAVG_graph_TMPL.xml

Net-snmp_devIO-ReadsWrites_graph_TMPL.xml


Modified: Cacti_Net-SNMP_DevIO_centos5.tar.gz

Modified part: Due to name issues, the Unified Data Template is split and the load part is removed (SNMP does not include this part in version 5, which is included in version 6)

Net-snmp_devio.xml

Cacti_data_query_ucdnet _-_ get_device_io.xml

Cacti_graph_template_ucdnet _-_ device_io _-_ bytes_readwritten.xml

Cacti_graph_template_ucdnet _-_ device_io _-_ readswrites. xml


3. Upload XML:

1. Upload the net-snmp_devio.xml to the var/www/html/cacti/resource/snmp_queries/directory.

2. grant permissions at the same time: chown cacti. cacti net-snmp_devio.xml

Chmod 644 net-snmp_devio.xml

4. Import a template

Use the "importtemplates" in the cacti background to import all *. XML files, and finally the cacti_data_query_ucdnet _-_ get_device_io.xml file. After that, you can see "UCD/net-Get device I/O" in "dataqueries ".


5. Add disk I/O monitoring for the existing "UCD/NET snmphost.

Switch to "devices", click the existing "UCD/net snmp host" host, and check it at the end of the page. In the "add data query" section of "associated dataqueries: "select" UCD/net-Get device I/O "," re-indexmethod: "select" index count changed ", and click" add "to add data queries.


6. Create Io Image Monitoring

Click "create graphs for this host" in the header of the page"
Under Data Query [UCD/net-Get devicei/o] ", select the disk to be monitored and click" CREATE "to create the image.
So far, the cacti monitoring disk Io settings have been completed.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/36/4F/wKiom1OrlbThi3JSAAHnwgTYx3A042.jpg "style =" float: none; "Title =" 11.jpg" alt = "wkiom1orlbthi3jsaahnwgtyx3a042.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/36/4E/wKioL1OrlYajCHcwAAHmoeQYnig732.jpg "style =" float: none; "Title =" 22.jpg" alt = "wkiol1orlyajchcwaahmoeqynig732.jpg"/>



This article from the "fairy tale of Autumn" blog, please be sure to keep this source http://wushank.blog.51cto.com/3489095/1431080

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.