=$old[0]))
{
// DISASTER
if(($new[0]-$old[0])/pow(10,5)>=1)
{
$audio="disaster_on.wav";
}
else
{
$audio="warning_on.wav";
}
}
// echo "$tr_hash
$triggers_hash
".$old[1]."
".$new[1];
?>
No permissions !");
show_footer();
exit;
}
if(isset($HTTP_GET_VARS["hostid"])&&!check_right("Host","R",$HTTP_GET_VARS["hostid"]))
{
show_table_header("No permissions !");
show_footer();
exit;
}
?>
";
}
?>
all ";
}
else
{
echo "[all] ";
}
while($row=DBfetch($result))
{
if(!check_right("Host","R",$row["hostid"]))
{
continue;
}
if(isset($HTTP_GET_VARS["hostid"]) && ($row["hostid"] == $HTTP_GET_VARS["hostid"]))
{
echo "[".$row["host"]."] ";
}
else
{
echo "".$row["host"]." ";
}
}
show_table_v_delimiter();
?>
Show only true] ";
}
else
{
echo "[Show all triggers] ";
}
if($noactions!='true')
{
echo "[Hide Actions] ";
}
else
{
echo "[Show Actions] ";
}
if($compact!='true')
{
echo "[Hide Details] ";
}
else
{
echo "[Show Details] ";
}
if($select!='true')
{
echo "[Select] ";
}
else
{
echo "[Hide Select] ";
show_table_v_delimiter();
echo "
| DESCRIPTION"; } else { if($select=="TRUE") { echo " | Description"; } else { echo " | Description";
}
}
if($compact!='true') {echo " Expression";} echo " | ";
echo "Status | "; if(!isset($sort)||(isset($sort) && $sort=="priority")) { echo "SEVERITY | "; } else { if($select=="TRUE") { echo "Severity"; } else { echo " | Severity"; } } if($noactions=='true') echo " | "; else echo " | "; if(isset($sort) && $sort=="lastchange") { echo "LAST CHANGE"; } else { if($select=="TRUE") { echo "Last change"; } else { echo "Last change"; } } echo " | "; if($noactions!='true') { echo "Actions | "; } echo "Comments | "; echo "||||
| ";
// $description=$row["description"];
// if( strstr($description,"%s"))
// {
$description=expand_trigger_description($row["triggerid"]);
// }
if($row["url"] == "")
{
echo $description;
}
else
{
echo "$description";
}
if($compact!='true')
{
echo " ".explode_exp($row["expression"],1).""; } echo " | ";
if( (time(NULL)-$row["lastchange"])<300)
{
$blink1="";
}
else
{
$blink1="";
$blink2="";
}
if($row["value"]==0)
{ echo "$blink1FALSE$blink2 | ";} else if($row["value"]==2) { echo "$blink1UNKNOWN$blink2 | "; } else { echo "$blink1TRUE$blink2 | "; } if($row["priority"]==0) echo "Not classified | "; elseif($row["priority"]==1) echo "Information | "; elseif($row["priority"]==2) echo "Warning | "; elseif($row["priority"]==3) echo "Average | "; elseif($row["priority"]==4) echo "High | "; elseif($row["priority"]==5) echo "Disaster !!! | "; else echo "".$row["priority"]." | "; echo "".date("d M H:i:s",$row["lastchange"]).""; echo " | "; if($noactions!='true') { echo ""; echo "Show actions - "; echo "History - "; if(isset($HTTP_GET_VARS["hostid"])) { echo "Change"; } else { echo "Change"; } echo " | "; } if($row["comments"] != "") { echo "Show | "; } else { echo "Add | "; } if($row["value"] == 0) echo "