#!/usr/bin/env php
<?php

include("includes/defaults.inc.php");
include("config.php");
include("includes/definitions.inc.php");
include("includes/functions.php");

echo "*** Targets ***\n\nprobe = FPing\n\nmenu = Top\ntitle = Network Latency Grapher\nremark = Welcome to SmokePing\n\n";

$query = mysql_query("SELECT hostname FROM `devices` WHERE `ignore`=0 AND `disabled`=0 ORDER BY hostname");
//$query = mysql_query("SELECT hostname FROM `devices` ORDER BY hostname");
while ($data = mysql_fetch_array($query)) {
  $hostid = str_replace(".","_",$data['hostname']);
  $hostname = $data['hostname'];
  echo "+ $hostid\n\nhost = $hostname\n\n";
}

?>