'; echo "
"; echo __('This is the Web Management System for Pandora FMS. From here you can manage its agents, alerts and incidents. Session is open while activity exists.'); echo "
"; echo ''; // Private messages pending to read ! $sql = sprintf ("SELECT COUNT(id_mensaje) FROM tmensajes WHERE id_usuario_destino='%s' AND estado='FALSE';", $config["id_user"]); $resultado = get_db_sql ($sql); if ($resultado > 0) { echo ''.$article["subject"].' |
---|
'.__('by').' '.$article["author"].' '.__('at').' '.print_timestamp ($article["timestamp"], true).' |
'; echo nl2br ($article["text"]); echo ' |
'.__('Pandora FMS Overview').' | '; $cells = array (); $cells[0][0] = __('Total agents'); $cells[0][1] = $data["total_agents"]; $cells[0]["color"] = "#000"; $cells[0]["href"] = "index.php?sec=estado&sec2=operation/agentes/estado_agente&refr=60"; $cells[1][0] = __('Total checks'); $cells[1][1] = $data["total_checks"]; $cells[1]["color"] = "#000"; $cells[1]["href"] = "index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60&status=-1"; $cells[2][0] = __('Modules critical'); $cells[2][1] = $data["monitor_critical"]; $cells[2]["color"] = "#f00"; $cells[2]["href"] = "index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60&status=2"; $cells[3][0] = __('Modules warning'); $cells[3][1] = $data["monitor_warning"]; $cells[3]["color"] = "#FFB900"; $cells[3]["href"] = "index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60&status=1"; $cells[4][0] = __('Modules normal'); $cells[4][1] = $data["monitor_ok"]; $cells[4]["color"] = "#00ff00"; $cells[4]["href"] = "index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60&status=0"; $cells[5][0] = __('Modules unknown'); $cells[5][1] = $data["monitor_unknown"]; $cells[5]["color"] = "#aaaaaa"; $cells[5]["href"] = "index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60&status=3"; $cells[6][0] = __('Alerts defined'); $cells[6][1] = $data["total_alerts"]; $cells[6]["color"] = "#000"; $cells[6]["href"] = "index.php?sec=estado&sec2=operation/agentes/alerts_status&refr=60"; $cells[7][0] = __('Users defined'); $cells[7][1] = count (get_users ()); $cells[7]["color"] = "#000"; $cells[7]["href"] = "index.php?sec=usuarios&sec2=operation/users/user"; foreach ($cells as $key => $row) { //Switch class around $class = (($key % 2) ? "datos2" : "datos"); echo '|
---|---|
'.$row[0].' | '; if ($row[1] === 0) { $row[1] = "-"; } echo ''.$row[1].' |