Files
cacti/dev/update_sort_cache.php
T
Ian Berry 563e713974 utility to update the sort cache for data queries (will be integrated into the 0.8.6 install file)
git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1577 860744bd-22fc-0310-8c96-e9fe5004b5ca
2004-06-08 18:42:59 +00:00

15 lines
347 B
PHP

<?php
$no_http_headers = true;
include("../include/config.php");
include("../lib/data_query.php");
$host_snmp_query = db_fetch_assoc("select host_id,snmp_query_id from host_snmp_query");
if (sizeof($host_snmp_query) > 0) {
foreach ($host_snmp_query as $item) {
update_data_query_sort_cache($item["host_id"], $item["snmp_query_id"]);
}
}
?>