On Thu 20 Jul 2006 17:19, Paolo Lucente wrote: > Hi Gregory, > > On Thu, Jul 20, 2006 at 03:54:21PM +0200, Gregory Machin wrote: > > aggregate: src_port,dst_port > > [ ... ] > > > pmacct -c src_port,dst_port -N "*,80;80,*" -S -p /tmp/traf.pipe -r > > to return the statistics to zabbix > > > > Now the question is if I call the above command every second is the value > > returned in bits/second or bytes/second, and is the total of the incoming > > and out going value for that port ? > > pmacct returns values in bytes. So, bytes/second. And yes, the string gives > you back total traffic (in+out) for port 80.
Hmm. Is there any way to do something like:
pmacct -c src_host,dst_host -N "*,10.11.12.0/23;10.11.12.0/23,*" -S
I have the following data collection:
# pmacct -s | head -n1
SRC_IP DST_IP SRC_PORT DST_PORT PROTOCOL PACKETS
BYTES
Regards
--
Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc
pgp04Qd2bQECS.pgp
Description: PGP signature
_______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
