- 论坛徽章:
- 0
|
我用cacti能够监控ubuntu的localhost的网卡流量和目录使用情况.
但是呢,我要监控它的disk I/O的时候它就没有图象模板...
注:这是我做的disk I/O的做法:
2. INSTALLATION
===============
The installation is in two parts. One for the SNMP configuration on the
monitored host. The other is for the addition to Cacti. The addition to Cacti
need only be done once.
2a. INSTALLATION: SNMP
======================
* Put the following lines in 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
* Install the script snmpdiskio on the machine to be monitored:
install -m 0755 -o root -g root -p -v snmpdiskio /usr/local/bin/
2b. INSTALLATION: Cacti
=======================
* Import the XML templates from `cacti_graph_template_disk_io_bytessec.xml`.
* Import the data query template from `cacti_data_query_snmp_disk_statistics.xml`.
* Copy the `partition.xml` file to cacti/resource/snmp_queries/partition.xml
3. USAGE
========
In Cacti: Add the Data Query to your Host Templates.
For any Device already configured in Cacti you need to add the Data Query
manually.
* Copy the `partition.xml` file to cacti/resource/snmp_queries/partition.xml.
3. USAGE
========
In Cacti: Add the Data Query to your Host Templates.
For any Device already configured in Cacti you need to add the Data Query
manually.
After that you just click "New Graph", choose your Device, select the
partitions you want graphs created for and click Create. |
|