// Additions to Pandora FMS 1.2 graph code and new XML reporting template management // Copyright (c) 2005-2007 Artica Soluciones Tecnologicas, info@artica.es // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; version 2 // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // ==================================================================================== // VIEW ALERTS // ==================================================================================== echo "
".$lang_label["name"]." | ".$lang_label["type"]." | ".$lang_label["alert"]." | ".$lang_label["threshold"]." | ".$lang_label["min."]." | ".$lang_label["max."]." | ".$lang_label["description"]." | ".$lang_label["action"]." |
---|
"; echo " | "; echo $lang_label["alert_status"]; echo " | "; echo '"; echo ' | ||||||
'.$lang_label["min_value"]; echo " ";echo $lang_label["min_valid_value_help"].""; echo ' | '; echo " | "; echo $lang_label["max_value"]; echo " "; echo $lang_label["max_valid_value_help"]; echo ""; echo " | "; echo ""; // echo ' | |||||
'.$lang_label["alert_text"]." Regular Expression Supported "; echo ' | '; echo ' | |||||||
'.$lang_label["description"]; echo ' | '; ?> | |||||||
Macros: _agent_ _timestamp_ _data_ | ||||||||
Macros: _agent_ _timestamp_ _data_ | ||||||||
Macros: _agent_ _timestamp_ _data_ | ||||||||
".$lang_label["min_alerts"]; echo ' | '; echo ''; echo ' | '; echo $lang_label["max_alerts"]; echo ' | '; echo ''; ?> | |||||
'; $sql2 = "SELECT id_agente_modulo, id_tipo_modulo, nombre FROM tagente_modulo WHERE id_agente = $id_agente ORDER BY nombre"; $result2=mysql_query($sql2); while ($row2=mysql_fetch_array($result2)){ if ($row2["id_tipo_modulo"] != -1) { $sql1='SELECT nombre FROM ttipo_modulo WHERE id_tipo = '.$row2["id_tipo_modulo"]; $result=mysql_query($sql1); while ($row=mysql_fetch_array($result)){ echo ""; } } else // for -1, is a special module, keep alive monitor !! echo ""; } echo ""; } else { $agentmodule_name = give_db_value ("nombre", "tagente_modulo", "id_agente_modulo", $alerta_id_agentemodulo); echo $agentmodule_name; } // End block only if $creacion_agente != 1; echo " |
'; if ($update_alert== "1"){ echo ''; } else { echo ''; } echo ''; echo ' |