I've got a problem when I do an update on the interfaces section of my "polling host" ("device" since last version) and some changes/reordering of interfaces occur. Currently, I'm using ifName as index for my Data Sources to prevent some of the problems, but I've noticed that my titles (both in data sources and graphs) don't update correctly.
Looking at the php code and the db interactions I think that the problem is around the local_data table, not updating from the snmp query cache when I do a "save" on the host.php page. To solve that, I've made the next modification to the code of 0.8.3a on the push_out_host function:
Code: Select all
--- cacti-orig/include/utility_functions.php 2004-04-0713:36:10.000000000 +0200
+++ cacti/include/utility_functions.php 2004-04-20 21:36:52.000000000 +0200
@@ -408,6 +408,9 @@
}
}
+ /* update local_data from last snmp query cache */
+ update_data_source_snmp_query_cache($data_source["local_data_id"]);
+
/* make sure to update the poller cache as well */
update_poller_cache($data_source["local_data_id"]);
}
I'm missing (again) the point?
Rober