diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-03-12 21:16:48 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-03-12 21:16:48 +0200 |
commit | 39a9094383f26e5dc2f96bd93d3115f6828eff60 (patch) | |
tree | 656da902ce0e793b57a464a4743c17fa77de4f06 | |
parent | 2f624839a98ffc94a8c3015663279752557f3fde (diff) | |
download | netplot-master.tar.gz netplot-master.tar.bz2 |
-rwxr-xr-x | netplot | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -17,6 +17,7 @@ my $rrddir = "."; my $rrdstep = 300; my $rrdmaxval = "U"; my %inputfiles; +my $flow_report_program = "flow-report"; # Options: my $debug; # Debug mode indicator. @@ -150,7 +151,7 @@ sub collect_report { my $fd; debug('PARSE',2,"begin collecting $ds from $filename"); - open($fd, "flow-report -s $flow_report_cfg -S $ds-summary < $filename |") or + open($fd, "$flow_report_program -s $flow_report_cfg -S $ds-summary < $filename |") or abend("failed to generate report $ds-summary for $filename"); while (<$fd>) { chomp; @@ -379,6 +380,7 @@ GetOptions("help|h" => \$help, "imgformat" => \$imgformat, "recursive|r" => \$recursive, "flow-report-cfg|s=s" => \$flow_report_cfg, + "flow-report-program|s=s" => \$flow_report_program, "graph-size:s" => sub { @graph_size = split(/[xX]/, $_[1]); abend("bad size specification: $_[1]") unless ($#graph_size == 1); @@ -539,6 +541,10 @@ The report must contain two definitions: B<in-summary> and B<out-summary>, for incoming and outgoing traffic, correspondingly. See the section B<NETFLOW REPORT CONFIGURATION>, for a detailed discussion. +=item B<--flow-report-program>=I<FILE> + +Path to B<flow-report> binary. + =back Graph layout and colors: @@ -742,7 +748,7 @@ Sergey Poznyakoff <gray@gnu.org> =head1 COPYRIGHT -Copyright (C) 2012, 2013 Sergey Poznyakoff +Copyright (C) 2012-2014 Sergey Poznyakoff License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> |