2011-12-21 14:09:26 +01:00
< ? php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// 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.
global $config ;
2011-12-23 09:37:36 +01:00
//include_once("include/functions_graph.php");
2011-12-21 14:09:26 +01:00
include_once ( " include/functions_ui.php " );
2011-12-23 09:37:36 +01:00
//ui_require_javascript_file ('calendar');
2011-12-21 14:09:26 +01:00
check_login ();
2011-12-23 09:37:36 +01:00
if ( ! check_acl ( $config [ " id_user " ], 0 , " IR " )) {
2011-12-21 14:09:26 +01:00
db_pandora_audit ( " ACL Violation " ,
" Trying to access event viewer " );
require ( " general/noaccess.php " );
return ;
}
//Header
2011-12-23 09:37:36 +01:00
ui_print_page_header ( __ ( 'Netflow Manager' ), " images/networkmap/so_cisco_new.png " , false , " " , true );
2011-12-21 14:09:26 +01:00
2011-12-23 09:37:36 +01:00
$update = ( bool ) get_parameter ( " update " );
2011-12-21 14:09:26 +01:00
2011-12-23 09:37:36 +01:00
$table -> width = '70%' ;
$table -> border = 0 ;
$table -> cellspacing = 3 ;
$table -> cellpadding = 5 ;
$table -> class = " databox_color " ;
$table -> style [ 0 ] = 'vertical-align: top;' ;
2011-12-21 14:09:26 +01:00
$table -> data = array ();
2012-01-23 16:37:45 +01:00
$table -> data [ 0 ][ 0 ] = '<b>' . __ ( 'Data storage path' ) . '</b>' . ui_print_help_tip ( __ ( " Directory where netflow data will be stored. " ), true );
2011-12-23 09:37:36 +01:00
$table -> data [ 0 ][ 1 ] = html_print_input_text ( 'netflow_path' , $config [ 'netflow_path' ], false , 50 , 200 , true );
2012-01-23 16:37:45 +01:00
$table -> data [ 1 ][ 0 ] = '<b>' . __ ( 'Daemon interval' ) . '</b>' ;
$table -> data [ 1 ][ 1 ] = html_print_input_text ( 'netflow_interval' , $config [ 'netflow_interval' ], false , 50 , 200 , true );
$table -> data [ 2 ][ 0 ] = '<b>' . __ ( 'Daemon binary path' ) . '</b>' ;
$table -> data [ 2 ][ 1 ] = html_print_input_text ( 'netflow_daemon' , $config [ 'netflow_daemon' ], false , 50 , 200 , true );
2012-12-05 Ramon Novoa <rnovoa@artica.es>
* pandoradb_data.sql,
include/functions_config.php,
include/functions_netflow.php,
operation/netflow/nf_live_view.php,
pandoradb.data.postgreSQL.sql,
pandoradb.data.oracle.sql,
godmode/setup/setup_netflow.php,
godmode/netflow/nf_edit_form.php: Performance improvements. Use csv
output to avoid using regular expressions. Removed byte, flow and
packet unit and added kilobyte, megabyte, kilobytes per second and
megabytes per second.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7232 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-12-05 18:29:06 +01:00
$table -> data [ 3 ][ 0 ] = '<b>' . __ ( 'Nfdump binary path' ) . '</b>' ;
$table -> data [ 3 ][ 1 ] = html_print_input_text ( 'netflow_nfdump' , $config [ 'netflow_nfdump' ], false , 50 , 200 , true );
2012-12-12 13:10:16 +01:00
$table -> data [ 4 ][ 0 ] = '<b>' . __ ( 'Maximum chart resolution' ) . '</b>' . ui_print_help_tip ( __ ( " Maximum number of points that a netflow area chart will display. The higher the resolution the performance. Values between 50 and 100 are recommended. " ), true );
$table -> data [ 4 ][ 1 ] = html_print_input_text ( 'netflow_max_resolution' , $config [ 'netflow_max_resolution' ], false , 50 , 200 , true );
2011-12-23 09:37:36 +01:00
echo '<form id="netflow_setup" method="post">' ;
html_print_table ( $table );
// Update button
echo '<div class="action-buttons" style="width:70%;">' ;
2012-01-24 Ramon Novoa <rnovoa@artica.es>
* include/functions_config.php,
include/functions_netflow.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
operation/netflow/nf_live_view.php,
extras/pandoradb_migrate_4.0.x_to_4.1.mysql.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.oracle.sql,
extras/pandoradb_migrate_4.0.x_to_4.1.postgreSQL.sql,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/configurar_agente.php,
godmode/menu.php,
godmode/netflow/nf_edit_form.php: Added support for enterprise
netflow modules.
* godmode/netflow/nf_manage.php: Moved to
godmode/setup/setup_netflow.php.
* godmode/netflow/nf_option_form.php: Removed from repository. Not used.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5416 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-01-24 18:11:12 +01:00
html_print_input_hidden ( 'update_config' , 1 );
2011-12-23 09:37:36 +01:00
html_print_submit_button ( __ ( 'Update' ), 'upd_button' , false , 'class="sub upd"' );
echo '</div></form>' ;
2011-12-21 14:09:26 +01:00
?>
< script type = " text/javascript " >
2011-12-23 09:37:36 +01:00
2011-12-21 14:09:26 +01:00
$ ( document ) . ready ( function () {
$ ( " textarea " ) . TextAreaResizer ();
});
</ script >