Ejemplo n.º 1
0
    }
    if (isset($groupid)) {
        echo "<b>GroupID: </b>" . $groupid . "</br>\n";
    }
    if (isset($reporttype)) {
        echo "<b>Report Type: </b>" . $reporttype . "</br>\n";
    }
    if (isset($timeperiod)) {
        echo "<b>Time Period: </b>" . $timeperiod . "</br>\n";
    }
    echo "<b>Temp image path: </b>" . $z_tmpimg_path . "</br>\n";
    echo "</br>\n";
}
// get graphids
// Login to Zabbix API using ZabbixAPI.class.php
ZabbixAPI::debugEnabled(TRUE);
ZabbixAPI::login($z_server, $z_user, $z_pass) or die('Unable to login: '******'w');
$stringData = "1<Introduction>\n\n";
fwrite($fh, $stringData);
$stringData = "This is an automatically generated PDF file containing data gathered from Zabbix Monitoring System\n";
fwrite($fh, $stringData);
$stringData = "#NP\n";
fwrite($fh, $stringData);
#$stringData = "1<Graphs>\n";
#fwrite($fh, $stringData);
fclose($fh);
if ($reporttype == 'host') {
    if (!is_numeric($hostid)) {
        echo "ERROR: Need hostid for host report!</br>\n";