\n"; if($this->is_authorized == FALSE){ echo "
\n"; echo "

\n"; echo "Alert: ".Kohana::lang('error.not_authorized')."

\n"; echo "
\n"; return; } if($this->data->ERROR != NULL){ echo "
\n"; echo "

\n"; echo "Alert: ".$this->data->ERROR."

\n"; echo "
\n"; return; } $count = 0; foreach($this->data->STRUCT as $key=>$value){ if($value['LEVEL'] == 0){ echo "Host: ".$value['MACRO']['DISP_HOSTNAME']. " Service: ".$value['MACRO']['DISP_SERVICEDESC']."

\n"; echo "".$value['TIMERANGE']['title']. " " .$value['TIMERANGE']['f_start']. " - " . $value['TIMERANGE']['f_end']. "\n"; $count = 0; } if($value['VERSION'] != "valid" && $count == 0){ $count++; echo "

\n"; echo "
\n"; echo "

".$value['VERSION']."

\n"; echo "
\n"; echo "

\n"; } echo "
"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
"; echo Kohana::lang('common.datasource',$value['ds_name']).""; echo nagios::SummaryLink($value['MACRO']['DISP_HOSTNAME'], $value['TIMERANGE']['start'], $value['TIMERANGE']['end']).""; echo nagios::AvailLink($value['MACRO']['DISP_HOSTNAME'], $value['MACRO']['DISP_SERVICEDESC'], $value['TIMERANGE']['start'], $value['TIMERANGE']['end']).""; echo pnp::add_to_basket_icon( $value['MACRO']['HOSTNAME'], $value['MACRO']['SERVICEDESC'], $value['SOURCE'] ); echo ""; echo pnp::zoom_icon($value['MACRO']['HOSTNAME'], $value['MACRO']['SERVICEDESC'], $value['TIMERANGE']['start'], $value['TIMERANGE']['end'], $value['SOURCE'], $value['VIEW'], $value['GRAPH_WIDTH'], $value['GRAPH_HEIGHT'])."
\n"; echo "
\n"; echo "
\n"; echo "
\n"; $path = pnp::addToUri( array( 'host' => $value['MACRO']['HOSTNAME'], 'srv' => $value['MACRO']['SERVICEDESC'], ), FALSE ); echo "\n"; echo "
url."\" >
"; $path = pnp::addToUri( array( 'host' => $value['MACRO']['HOSTNAME'], 'srv' => $value['MACRO']['SERVICEDESC'], 'view' => $value['VIEW'], 'source' => $value['SOURCE'], 'start' => $value['TIMERANGE']['start'], 'end' => $value['TIMERANGE']['end'] ), FALSE ); echo "
\n"; echo "
\n"; echo "

\n"; } echo "\n"; ?>