mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 05:26:50 +09:00
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
This commit is contained in:
1 parent
df17070f2b
commit
563e713974
1 file changed
+14
@@ -0,0 +1,14 @@
|
||||
<?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"]);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user