This only supports output, not input fields, but input fields generally don't have poorly formed mibs, this patch adds an oid_suffix tag to the xml. patched against 0.8.7aTheWitness wrote:Does anyone have a patch? It won't make it into Saturday's release, but...
TheWitness
Code: Select all
diff -rup cacti.0.8.7a/lib/utility.php cacti/lib/utility.php
--- cacti.0.8.7a/lib/utility.php 2007-12-11 10:54:13.000000000 -0500
+++ cacti/lib/utility.php 2007-12-11 11:31:07.000000000 -0500
@@ -147,6 +147,9 @@ function update_poller_cache($local_data
foreach ($outputs as $output) {
if (isset($snmp_queries["fields"]{$output["snmp_field_name"]}["oid"])) {
$oid = $snmp_queries["fields"]{$output["snmp_field_name"]}["oid"] . "." . $data_source["snmp_index"];
+ if (isset($snmp_queries["fields"]{$output["snmp_field_name"]}["oid_suffix"])) {
+ $oid .= "." . $snmp_queries["fields"]{$output["snmp_field_name"]}["oid_suffix"];
+ }
}
if (!empty($oid)) {