Boxy Dashboard
if ($this->showlegend){ ?>
✔ = Acknowledged
⌚ = In Downtime
↸ = Host Issue Acknowledged
Status:
ok
warning
critical
unknown
Acknowledged:
warning
critical
unknown
} ?>
Host Info
foreach ($this->hosts as $host){ $title = htmlspecialchars($host->{'host_display_name'}); $size=$this->boxsize; $content=" "; $returncode=$host->{'host_state_text'}; if ($host->{'host_acknowledged'}==1 ){ $returncode.="-ack"; $content= "✔"; $title.=" (Acknowledged)"; }?> ' class='boxy_box state =$returncode?>' style='width:=$size?>px; height:=$size?>px; font-size:=$size?>px;' title="=$title?>">=$content?> } ?>Service Info
foreach ($this->services as $service){ $service->{'service_hard_state'} = ($service->{'service_hard_state'}) ? "hard" : "soft"; $title = $service->{'host_display_name'}.": ".$service->{'service_description'}; #."(".$service->{'current_check_attempt'} .",".$service->{'max_check_attempts'} .")(". $service->{'service_hard_state'}.")+acked:".$service->{'service_acknowledged'} ; $size=$this->boxsize; $content=" "; $returncode=$service->{'service_state_text'}; if ($service->{'service_in_downtime'}==1 or $service->{'host_in_downtime'}==1 ){ $returncode.="-downtime"; $content= "⌚"; $title.=" (Scheduled Maintenance)"; }elseif ($service->{'service_acknowledged'}==1 ){ $returncode.="-ack"; $content= "✔"; $title.=" (Acknowledged)"; }elseif ($service->{'service_state_text'} != "ok" && $service->{'host_acknowledged'} == 1 ){ $returncode.="-ack"; $content= "↸"; $title.=" (Host Issue Acknowledged)"; } $title=htmlspecialchars($title."\n ".$service->{'service_output'});?> &service==$service->{'service_description'}?>' class='boxy_box state =$returncode?>' style='width:=$size?>px; height:=$size?>px; font-size:=$size?>px;' title="=$title?>">=$content?> } ?>=$this->debug?>