This script is only meant to run at the command line."); } isset($_SERVER["argv"][1]) || die("Please supply a host id as first argument\n"); $host_id = $_SERVER["argv"][1]; $c = autocreate($host_id); printf("Created %d thresholds for host_id %d\n", $c, $host_id); ?>