Compiling Total Bytes

James Grace jgrac002 at fiu.edu
Wed Mar 25 12:59:13 EDT 2015


Carter, 

That’s better but now it’s spitting out total bytes in a single column, but not all added up. I guess I’ll just have to add it all up using some bash magic.

racluster -m bytes -r argus.00.00 -s bytes - src vid 98 | tail -n +2 | paste -sd+ - | bc
196102248

Thanks for all your help. 

-james


> On Mar 24, 2015, at 4:43 PM, Carter Bullard <carter at qosient.com> wrote:
> 
> How bout “bytes” ?
> Carter
> 
>> On Mar 24, 2015, at 2:21 PM, James Grace <jgrac002 at fiu.edu> wrote:
>> 
>> List, 
>> I’ve got a bunch of argus binaries full of data I’d love to import into Zabbix.  Is there a way to total up the total bytes (source and destination) ?
>> 
>> I’ve tried:
>> 
>> racluster -m sbytes dbytes -r /flows/argus/Atlanticwave/2015/03/24/argus.10.20 -s sbytes dbytes
>> 
>> 
>> 	 78            0
>>         66            0
>>         64            0
>>         66            0
>>        156            0
>>         78            0
>>         78            0
>>         78            0
>>        112            0
>>         94            0
>>       4554            0
>>       4554            0
>>       4554            0
>>       1518            0
>>        114            0
>>         68            0
>>       7688            0
>>       1674            0
>>       4652            0
>>       1318            0
>>        156            0
>>         90            0
>>        215            0
>>        122            0
>> 
>> 
>> And it gets close, it provides two columns with sbytes and dbytes, and I can whip a script up to add it all up, I was just wondering if there was a more “argus-y” way of doing this. 
>> 
>> Thanks, 
>> james
>> 
>> 
> 




More information about the argus mailing list