CactiIs a commonly used monitoring network software, sometimes I useMonitoringMyHard DiskI/O. Let's see how it works!
Cacti hard disk I/O monitoring method:
The cacti template can only monitor the disk usage, but cannot monitor the usage percentage. Therefore, we can customize cdef to monitor the disk usage and use the thold plug-in to implement the alarm function. All the materials found on the Internet are implemented on cacti.0.8.6, and I use cacti.0.8.7. Therefore, make the following changes based on the actual situation:
Under the cacti directory, vi global_arrays.php
Search custom_data_source_types. Modify the following section:
- $custom_data_source_types = array(
-
- "CURRENT_DATA_SOURCE" => "Current Graph Item Data Source",
-
- "ALL_DATA_SOURCES_NODUPS" => "All Data Sources (Don't Include Duplicates)",
-
- "ALL_DATA_SOURCES_DUPS" => "All Data Sources (Include Duplicates)",
-
- "SIMILAR_DATA_SOURCES_NODUPS" => "All Similar Data Sources (Don't Include Duplicates)",
-
- "SIMILAR_DATA_SOURCES_DUPS" => "All Similar Data Sources (Include Duplicates)",
-
- "CURRENT_DS_MINIMUM_VALUE" => "Current Data Source Item: Minimum Value",
-
- "CURRENT_DS_MAXIMUM_VALUE" => "Current Data Source Item: Maximum Value",
-
- "CURRENT_GRAPH_MINIMUM_VALUE" => "Graph: Lower Limit",
-
// Add the following two rows
- "CURRENT_GRAPH_MAXIMUM_VALUE" => "Graph: Upper Limit",
-
- "VALUE_OF_HDD_TOTAL" => "Value of hdd_total data source");
-
// Chinese version:
"CURRENT_GRAPH_MAXIMUM_VALUE" => "Image: upper limit ",
"VALUE_OF_HDD_TOTAL" => "values of all hard disk data ");
Create a cdef module in the Graph Management-cdefs on the cacti interface and add the following fields by name:
- Item #1 Special Data Source: CURRENT_DATA_SOURCE
-
- Item #2 Custom String: 100
-
- Item #3 Operator: *
-
- Item #4 Special Data Source: VALUE_OF_HDD_TOTAL
-
- Item #5 Operator: /
-
That is to say
- cdef=CURRENT_DATA_SOURCE,100,*,VALUE_OF_HDD_TOTAL,/
-
In this way, you can add the monitoring Hard disk module in Threshold Templates. I added the Host MIB-Hard Drive Space, and finally selected the custom CDEF in Threshold cdef, in this way, the hard disk usage can be monitored normally.
After reading the complete article, I think everyone has learned how to monitor hard disk I/O through Cacti! Wish you success!
- CACTI client SNMP settings
- Cacti configures Threshold (Thold) and sends an email alert
- Detailed introduction to Cacti configuration and installation
- Monitor memcache using cacti
- Install Cacti in Windows
- UbuntuLinux system sets up cacti Monitoring Service