No permissions !"); show_footer(); exit; } ?> ["; } echo "".$row["host"].""; if(isset($HTTP_GET_VARS["hostid"]) && ($HTTP_GET_VARS["hostid"] == $row["hostid"]) ) { echo "]"; } echo " "; } show_table_header_end(); ?> "; $result=DBselect("select host from hosts where hostid=".$HTTP_GET_VARS["hostid"]); $row=DBfetch($result); show_table_header($row["host"]); $result=DBselect("select distinct h.hostid,h.host,t.triggerid,t.expression,t.description,t.value from triggers t,hosts h,items i,functions f where f.itemid=i.itemid and h.hostid=i.hostid and t.status=0 and t.triggerid=f.triggerid and h.hostid=".$HTTP_GET_VARS["hostid"]." and h.status in (0,2) and i.status=0 order by h.host, t.description"); echo ""; echo ""; echo ""; // echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; $col=0; while($row=DBfetch($result)) { if(!check_right_on_trigger("R",$row["triggerid"])) { continue; } $lasthost=$row["host"]; if($col++%2 == 1) { echo ""; } else { echo ""; } // $description=$row["description"]; // if( strstr($description,"%s")) // { $description=expand_trigger_description($row["triggerid"]); // } echo ""; // $description=rawurlencode($row["description"]); // echo ""; $availability=calculate_availability($row["triggerid"],0,0); echo ""; echo ""; echo ""; echo ""; echo "\n"; } echo "
DescriptionExpressionTrueFalseUnknownGraph
$description".explode_exp($row["expression"],1).""; printf("%.4f%%",$availability["true"]); echo ""; printf("%.4f%%",$availability["false"]); echo ""; printf("%.4f%%",$availability["unknown"]); echo ""; echo "Show"; echo "
\n"; } ?> "; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } ?>