Paolo Lucente
Thu, 19 Nov 2009 07:55:08 -0800
Hi Charlie, It appears you didn't put the table in the correct format first. Is it the case? If yes, to make that table pmacct-friendly you have to pre-process it as follows:
cat bgptable | sed 's/\([0-9a-f:][0-9a-f\.\/:]*\).* \([0-9][0-9]*\)[
0-9,{}]*$/\2,\1/' | uniq > networks.lst
At least it works fine with GNU sed. And do consider this was really
a 5 minutes job, so double-check accuracy of the output.
Btw, indeed yes line numbers should be included in logging messages
upon detecting errors; this is the case for other checks, apparently
not for this one. Just fixed it, will commit a patch to the CVS soon.
Cheers,
Paolo
On Thu, Nov 19, 2009 at 11:54:05AM +0000, Charlie Allom wrote:
> Hi Paolo,
>
> would it be useful to include the line number that causes the error
> here?
>
> I've put the file here: http://capslock.playlouder.com/bgptable.gz
>
> 11:50 pmacct:~# md5sum bgptable
> 578e6138f9e5b3d84c09415ce9d1d019 bgptable
>
> NetFlow Accounting Daemon, nfacctd 0.12.0rc3
>
>
> 11:48 pmacct:~# nfacctd -f /etc/nfacctd.conf
> INFO ( default/pgsql ): 131070 bytes are available to address shared memory
> segment; buffer size is 1024 bytes.
> INFO ( default/pgsql ): Trying to allocate a shared memory segment of
> 33553408 bytes.
> ERROR ( /home/charlie/bgptable ): Invalid network mask '2147483647'.
> [ ... ]
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists