aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnetplot10
1 files changed, 8 insertions, 2 deletions
diff --git a/netplot b/netplot
index 1474d1d..17926e4 100755
--- a/netplot
+++ b/netplot
@@ -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>

Return to:

Send suggestions and report system problems to the System administrator.