Welcome to the IRM servers alive section.
prepare($query); if($sth) { $res = $sth->execute(); $numRows = $sth->rows(); PRINT ""; for ($i = 0; $i < $numRows; $i++) { $result = $sth->fetchrow_hash(); $ID = $result["hostid"]; $host = $result["host"]; $status = $result["status"]; $prevstatus = $result["previousstatus"]; $last = $result["laststatuschange"]; $prev = $result["previousstatuschange"]; PRINT "\n"; ?> $host"; PRINT ""; } PRINT "
Server StatusPrevious Status
$status$prevstatus $last$prev
"; } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } commonFooter(); ?>