|
" . WEB_cell_login . ""; ?> |
" . WEB_cell_ip . ""; ?> |
" . WEB_cell_mac . ""; ?> |
|
|
" . WEB_cell_nagios; ?> |
" . WEB_cell_link; ?> |
|
Last"; ?> |
|
\n";
$cl = "data";
if ($user['nagios_status'] == "UP") { $cl = "up"; }
if ($user['nagios_status'] == "DOWN") { $cl = "down"; }
if (!$user['nagios']) { $cl = "data"; }
print " | \n";
print "" . $user['login'] . " | \n";
print "" . $user['ip'] . " | \n";
print "" . expand_mac($db_link,$user['mac']) . " | \n";
if (isset($user['dhcp_hostname']) and strlen($user['dhcp_hostname']) > 0) {
print "".$user['comments']." [" . $user['dhcp_hostname'] . "] | \n";
} else {
print "".$user['comments']." | \n";
}
if (!empty($user['WikiName'])) {
$wiki_url = rtrim(get_option($db_link, 60),'/');
if (preg_match('/127.0.0.1/', $wiki_url)) { print " | \n"; } else {
$wiki_web = rtrim(get_option($db_link, 63),'/');
$wiki_web = ltrim($wiki_web,'/');
$wiki_link = $wiki_url.'/'.$wiki_web.'/'.$user['WikiName'];
print ""; print_url($user['WikiName'],$wiki_link); print " | \n";
}
} else {
print " | \n";
}
if (!empty($user['nagios']) and $user['nagios']) {
if (preg_match('/127.0.0.1/', get_const('nagios_url'))) { print "". get_qa($user['nagios']) ." | \n"; } else {
$nagios_link = get_const('nagios_url').'/cgi-bin/status.cgi?host='.get_nagios_name($user);
print ""; print_url(get_qa($user['nagios']),$nagios_link); print " | \n";
}
} else {
print "" . get_qa($user['nagios']) . " | \n";
}
print "" . get_qa($user['link_check']) . " | \n";
print "".$user['nagios_handler']." | \n";
print "".$user['last_found']." | \n";
print "" . get_connection($db_link, $user['id']) . " | \n";
print "\n";
}
print "
\n";
print_navigation($page_url,$page,$displayed,$count_records[0],$total);
?>