// 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.
?>
".$lang_label["agent_conf"]." > ".$lang_label["assigned_modules"]."
".$lang_label["help"]."";
echo " ".$lang_label["module_asociation_form"]."";
echo "";
if ($row=mysql_num_rows($result)){
echo '
".$lang_label["module_name"]; echo " | ".$lang_label["type"]; echo " | ".$lang_label["interval"]; echo " | ".$lang_label["description"]; echo " | ".$lang_label["module_group"]; echo " | ".$lang_label["max_min"]; echo " | ".$lang_label["action"]; $color=1;$last_modulegroup = "0"; while ($row=mysql_fetch_array($result)){ if ($color == 1){ $tdcolor="datos"; $color =0; } else { $tdcolor="datos2"; $color =1; } $id_tipo = $row["id_tipo_modulo"]; $nombre_modulo =$row["nombre"]; $descripcion = $row["descripcion"]; $module_max = $row["max"]; $module_min = $row["min"]; $module_interval2 = $row["module_interval"]; $module_group2 = $row["id_module_group"]; if ($module_group2 != $last_modulegroup ){ // Render module group names (fixed code) $nombre_grupomodulo = dame_nombre_grupomodulo ($module_group2); $last_modulegroup = $module_group2; echo " | ||
---|---|---|---|---|---|---|---|---|
".$nombre_grupomodulo.""; } echo " | ||||||||
".$nombre_modulo; echo " | ";
if ($id_tipo > 0) {
echo " | ".$module_interval2; } else { echo " | N/A"; } echo " | ".substr($descripcion,0,30)." | "; echo "". substr(dame_nombre_grupomodulo($module_group2),0,15)." | "; echo ""; if ($module_max == $module_min) { $module_max = "N/A"; $module_min = "N/A"; } echo $module_max." / ".$module_min; echo " | ";
if ($id_tipo != -1){
echo "';
echo "![]() ![]() ![]() |