// Additions to Pandora FMS 1.2 graph code and new XML reporting template management // 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 // of the License, or (at your option) any later version. // 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. // Global & session management require_once ('../include/config.php'); if (!isset($_SESSION["id_user"])){ session_start(); session_write_close(); } require_once ('../include/functions.php'); require_once ('../include/functions_db.php'); require_once ('../include/languages/language_'.$config['language'].'.php'); // Access control if (comprueba_login() != 0) { $REMOTE_ADDR = getenv ("REMOTE_ADDR"); audit_db("Unknown",$REMOTE_ADDR, "ACL Violation","Trying to access graph window without auth"); require ("../general/noaccess.php"); exit; } // Parsing the refresh before sending any header $refresh = get_parameter ("refresh", -1); if ($refresh != -1) header( 'refresh: ' . $_GET['refresh'] ); echo '
"; echo $lang_label["max_value"]." : ". format_for_graph(get_agent_module_value_max ($id, $period)); echo " | "; echo $lang_label["avg_value"]." : ". format_for_graph(get_agent_module_value_average ($id, $period)); echo " | "; echo $lang_label["min_value"]." : ". format_for_graph(get_agent_module_value_min ($id, $period)); echo " |