Hi

Im using the following perl script that is called via zabbix every 5 seconds, 

#!/usr/bin/perl
use strict;
my $port = @ARGV[0];
my $intf = @ARGV[1];
my $result = `/usr/local/bin/pmacct -c src_port,dst_port -N "*,$port;$port,*" -
print "$result";

eg porttraf.pl 80 eth0

but the values display do not make sense .. for example traffic on port 80 is next to nothing my traffic on port 53 is high , and does not corrilate usage .. ?


with the following config...

!
! pmacct: In + Out
!
debug: false
daemonize: true
interface: tun0
plugin_buffer_size: 2048
plugin_pipe_size: 2048000
plugins: memory
aggregate: src_port,dst_port
imt_path: /tmp/traf.pipe
pidfile: /var/run/pmacctd.pid


and using the following to


_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to