mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-10 06:23:13 +09:00
added oid_uptime to SNMP Data Query description
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/cacti/branches/main@4260 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
1 parent
91b8e909d9
commit
fa6da0dbb4
1 file changed
+6
Vendored
+6
@@ -2142,6 +2142,7 @@ IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
|
||||
<programlisting><query>
|
||||
<name>Get SNMP Interfaces</name>
|
||||
<description>Queries a host for a list of monitorable interfaces</description>
|
||||
<oid_uptime>.1.3.x.x.x</oid_uptime>
|
||||
<oid_index>.1.3.6.1.2.1.2.2.1.1</oid_index>
|
||||
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
|
||||
<oid_num_indexes>.1.3.6.1.2.1.2.1.0</oid_num_indexes>
|
||||
@@ -2179,6 +2180,11 @@ IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
|
||||
<entry>query->description</entry>
|
||||
<entry>(Optional) You can enter a description for the SNMP query here. It will not be used by Cacti, and is for identification only.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>query->oid_uptime</entry>
|
||||
<entry><para>New with 0.8.7: If you have another OID that contains timetics, say for example a Java VM. Then, you can create a data query that specifies an alternate Uptime OID. To implement this for a data query, simply add the oid_uptime
|
||||
XML parameter to your XML file. Then, if you select your re-index method to be Uptime Goes Backaward, Cacti will use that OID to detect whether it is time to re-index the host instead of the standard snmp OID for uptime.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>query->oid_index</entry>
|
||||
<entry><para>Every SNMP query must have an OID that represents the index values for the query when walked. As described above, any data query in Cacti must contain a field that uniquely identifies each row returned by the query. In the example above, the oid_index points to the OID of ifIndex in the interface MIB.</para><para><emphasis>Note:</emphasis> Starting with version 0.8.6c, Cacti is able to parse unique indexes from the OID itself. While the regular expression used for parsing the value from the OID is defined below, you must still specify an OID that can be walked by Cacti in order to obtain the list of OID's. Any OID defined for one of your input fields should work in this case. The values returned from the snmpwalk walk will be completely disregarded.</para></entry>
|
||||
|
||||
Reference in new issue
Block a user