$status = array(1 => 'Normal', 'Impacted', 'Degraded', 'Unknown');
$indicator = array(1 => '/images/greenball.gif', '/images/yellowball.gif', '/images/redball.gif', '/images/darkblueball.gif');
$ROUTERP_STATUS = 4;
$ROUTERS_STATUS = 4;
$GENUITY_STATUS = 4;
$GLOBAL_STATUS = 4;
$SPRINT_STATUS = 4;
$QUEST_STATUS = 4;
$UUNET_STATUS = 4;
$LOADBAL_STATUS = 4;
$SSL_STATUS = 4;
$TRANS_STATUS = 4;
$WEB_STATUS = 4;
$MAIL_STATUS = 4;
$DNS_STATUS = 4;
$LVL3_STATUS = 4;
$ATT_STATUS = 4;
$status_file = "./status.txt";
$read_data = @fopen($status_file, "r") or die ("Could Not Open $status_file");
$status_list = fread($read_data, filesize($status_file));
fclose($read_data);
$status_data = preg_split('/\n/', $status_list);
foreach ($status_data as $status_line) {
$status_info = preg_split('/\|/', $status_line);
if ($status_info[0] == "ROUTERP") {
$ROUTERP_STATUS = $status_info[1];
}
if ($status_info[0] == "ROUTERS") {
$ROUTERS_STATUS = $status_info[1];
}
if ($status_info[0] == "GENUITY") {
$GENUITY_STATUS = $status_info[1];
}
if ($status_info[0] == "GLOBAL") {
$GLOBAL_STATUS = $status_info[1];
}
if ($status_info[0] == "QUEST") {
$QUEST_STATUS = $status_info[1];
}
if ($status_info[0] == "SPRINT") {
$SPRINT_STATUS = $status_info[1];
}
if ($status_info[0] == "UUNET") {
$UUNET_STATUS = $status_info[1];
}
if ($status_info[0] == "LOADBAL") {
$LOADBAL_STATUS = $status_info[1];
}
if ($status_info[0] == "SSL") {
$SSL_STATUS = $status_info[1];
}
if ($status_info[0] == "TRANS") {
$TRANS_STATUS = $status_info[1];
}
if ($status_info[0] == "WEB") {
$WEB_STATUS = $status_info[1];
}
if ($status_info[0] == "MAIL") {
$MAIL_STATUS = $status_info[1];
}
if ($status_info[0] == "DNS") {
$DNS_STATUS = $status_info[1];
}
if ($status_info[0] == "ATT") {
$ATT_STATUS = $status_info[1];
}
if ($status_info[0] == "LEVEL3") {
$LVL3_STATUS = $status_info[1];
}
}
?>
Right Connection | Your home for everything that is Internet Business
© Right Connection 2007 - All Rights Reserved
|