From fa6da0dbb4ecc43dc2f4206460ed184f217ca27d Mon Sep 17 00:00:00 2001 From: Reinhard Scheck Date: Sat, 20 Oct 2007 14:30:02 +0000 Subject: [PATCH] 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 --- docs/build/manual.sgml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/build/manual.sgml b/docs/build/manual.sgml index 4f208808e..b139d03e6 100644 --- a/docs/build/manual.sgml +++ b/docs/build/manual.sgml @@ -2142,6 +2142,7 @@ IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6) <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) query->description (Optional) You can enter a description for the SNMP query here. It will not be used by Cacti, and is for identification only. + + query->oid_uptime + 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. + query->oid_index 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.Note: 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.