Installation environment: centos5.6x86 _ 64cacti-0.8.7gsnmpdiskio-0.9.4 installation 1. download snmpdiskio in windows. Decompress the downloaded package. After decompression, the README file is an English installation document. A. decompress the package and try snmpdiskio in the folder...
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