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 "
| Description | "; // echo "Expression | "; echo "True | "; echo "False | "; echo "Unknown | "; echo "Graph | "; echo "
| $description | "; // $description=rawurlencode($row["description"]); // echo "".explode_exp($row["expression"],1)." | "; $availability=calculate_availability($row["triggerid"],0,0); echo ""; printf("%.4f%%",$availability["true"]); echo " | "; echo ""; printf("%.4f%%",$availability["false"]); echo " | "; echo ""; printf("%.4f%%",$availability["unknown"]); echo " | "; echo ""; echo "Show"; echo " | "; echo "