#!/usr/bin/php -q This script is only meant to run at the command line."); } /* We are not talking to the browser */ $no_http_headers = true; /* Start Initialization Section */ include(dirname(__FILE__) . "/include/config.php"); include_once($config["base_path"] . "/lib/poller.php"); include_once($config["base_path"] . "/lib/data_query.php"); include_once($config["base_path"] . "/lib/graph_export.php"); include_once($config["base_path"] . "/lib/rrd.php"); /* Record Start Time */ list($micro,$seconds) = split(" ", microtime()); $start = $seconds + $micro; /* Let PHP Run Just as Long as It Has To */ ini_set("max_execution_time", "0"); /* graph export */ graph_export(); /* take time and log performance data */ list($micro,$seconds) = split(" ", microtime()); $export = $seconds + $micro; cacti_log(sprintf("STATS: " . "Export Time: %01.4f s", round($export - $start,4)), true,"EXPORT"); ?>