操作步骤 : 首先监控linux磁盘IO 1.下载snmpdiskio-0.9.6 2.解压后并拷贝命令 1 # cp

时间:2021-10-22 08:46:36

1

2

3

 

cacti版本:0.8.8b

# uname -a

Linux 10-6-8-200 2.6.32-279.22.1.el6.x86_64 #1 SMP Wed Feb 6 03:10:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

 

二,,操纵法式

首先监控linux磁盘IO

1.下载snmpdiskio-0.9.6

2.解压后并拷贝命令

1

 

# cp snmpdiskio /usr/local/bin/

 

3.编纂partition.xml文件

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

 

vi /var/www/html/cacti/resource/snmp_queries/partition.xml

<interface>

        <name>Get SNMP Partitions</name>

        <description>Queries a host for a list of monitorable partitions</description>

        <oid_index>.1.3.6.1.4.1.2021.13.15</oid_index>

        <index_order>hdDescr:hdIndex</index_order>

        <index_order_type>numeric</index_order_type>

        <index_title_format>|chosen_order_field|</index_title_format>

        <fields>

                <hdIndex>

                        <name>Index</name>

                        <method>walk</method>

                        <source>value</source>

                        <direction>input</direction>

                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.1</oid>

                </hdIndex>

                <hdDescr>

                        <name>Description</name>

                        <method>walk</method>

                        <source>value</source>

                        <direction>input</direction>

                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.2</oid>

                </hdDescr>

                <hdInBlocks>

                        <name>Bytes Written</name>

                        <method>walk</method>

                        <source>value</source>

                        <direction>output</direction>

                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.3</oid>

                </hdInBlocks>

                <hdOutBlocks>

                        <name>Bytes Read</name>

                        <method>walk</method>

                        <source>value</source>

                        <direction>output</direction>