Cacti uses snmpdiskio to monitor server Disks

Source: Internet
Author: User

 

Installation environment:

Centos 5.6 x86_64

Cacti-0.8.7g

Snmpdiskio-0.9.4

 

Install

 

1. You can download snmpdiskio in windows. Decompress the downloaded package. After decompression, the README file is an English installation document.

 

A. Upload the snmpdiskio file in the decompressed folder to the/usr/local/bin directory of the monitored server.

Since 9.4 is too old to support 2.6 kernel, need to modify, from http://forums.cacti.net/viewtopic.php? P = 124793 #124793 (the package downloaded on this website has been updated and supports the 2.6 kernel)

B. Upload the partition. xml file in the decompressed folder to the PATH/cacti/resource/snmp_queries/directory of the cacti monitoring server.

 

2. Modify the snmp configuration file/etc/snmp/snmpd. conf.

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

 

Add the above content to the configuration file, save and exit.

Restart the snmpd service

Server snmpd restart

 

3. Test on cacti monitoring host

[Root @ backup ~] # Snmpwalk-v 2c-c public 192.168.5.44. 1.3.6.1.4.1.2021.58

UCD-SNMP-MIB: ucdavis.58.1.1 = INTEGER: 1

UCD-SNMP-MIB: ucdavis.58.2.1 = STRING: "hdOutBlocks"

UCD-SNMP-MIB: ucdavis.58.3.1 = STRING: "/usr/local/bin/snmpdiskio hdOutBlocks"

UCD-SNMP-MIB: ucdavis.58.100.1 = INTEGER: 0

UCD-SNMP-MIB: ucdavis.58.101.1 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.2 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.3 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.4 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.5 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.6 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.7 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.8 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.9 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.10 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.11 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.12 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.13 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.14 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.15 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.16 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.17 = STRING: "76145188352"

UCD-SNMP-MIB: ucdavis.58.101.18 = STRING: "831488"

UCD-SNMP-MIB: ucdavis.58.101.19 = STRING: "665088"

UCD-SNMP-MIB: ucdavis.58.101.20 = STRING: "522703872"

UCD-SNMP-MIB: ucdavis.58.101.21 = STRING: "4096"

UCD-SNMP-MIB: ucdavis.58.101.22 = STRING: "75620762624"

UCD-SNMP-MIB: ucdavis.58.101.23 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.101.24 = STRING: "0"

UCD-SNMP-MIB: ucdavis.58.102.1 = INTEGER: 0

UCD-SNMP-MIB: ucdavis.58.103.1 = ""

 

The preceding description indicates that the operation is successful.

 

4. cacti template configuration (many articles have been found online and ignored here)

Enter an ip address to access cacti and add a host monitoring template.

Find Templates --> Host Templates --> Add a Host template from Add.

Click add and enter the name of the created host template, for example, LINUX-disk-io. Click create to go to the next step.

Select Disk-I/O (bytes/sec) in Associated Graph Templates and click Add to Add

Select SNMP-Disk Statistics in Associated Data Queries and click Add.

Finally, click Save.

 

5. create Graphs for the host

A. Devices --> select a Host --> Host Template select the created linux-disk-io and click Save.

B. Click * Create Graphs for this Host at the top to view the Data Query [SNMP-Disk Statistics] list. The information on your hard Disk is displayed in the list. Select the disk you want to monitor and click Create.

Monitoring disk-io information Graph

 

 

This article is from the "badboy" blog

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.