困扰许久的问题,解决了。
cacti通过ucd/net snmp,添加硬盘监控不能获取到硬盘分区问题,现象如下:
+ Running data query [2].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.9.1.1'
+ No SNMP data returned
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
+ Found data query XML file at '/web/docroot/cacti-0.8.6g/resource/snmp_queries/net-snmp_disk.xml'
据说是因为ucd/net snmp协议版本太旧,需要手动定义硬盘分区情况
vi /etc/snmp/snmpd.conf
includeAllDisks
rocommunity public
disk /
disk /backup
定义完后如有后续添加分区还需要再手动加上
阅读(5953) | 评论(0) | 转发(0) |