This script is only meant to run at the command line."); } include_once("./include/config.php"); include_once("./lib/data_query.php"); ini_set("max_execution_time", "0"); ini_set("memory_limit", "64M"); /* clear the host snmp cache first */ db_execute("truncate table host_snmp_cache"); /* get the host_id and snmp_query_id */ $host_snmp = db_fetch_assoc("select host_id, snmp_query_id from host_snmp_query"); /* start rebuilding the host snmp cache */ foreach ($host_snmp as $host_snmp_data) { run_data_query($host_snmp_data['host_id'],$host_snmp_data['snmp_query_id']); } ?>