Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unpack fails in asstatd.pl #45

Open
tomm3h opened this issue Mar 25, 2015 · 1 comment
Open

unpack fails in asstatd.pl #45

tomm3h opened this issue Mar 25, 2015 · 1 comment

Comments

@tomm3h
Copy link

tomm3h commented Mar 25, 2015

Hello,

I've recently tried to upgrade from 1.4.2 to 1.6, and am having problems running the updated asstatd.pl:

as-stats@flows:$ /opt/as-stats/bin/asstatd.pl -r /opt/as-stats/rrd -k /opt/as-stats/conf/knownlinks -p 8990 -a 65000
'/' must follow a numeric type in unpack at /opt/as-stats/bin/asstatd.pl line 201.
as-stats@flows:
$

The line in question (201) uses unpack() to read Netflowv9 data:

https://github.com/manuelkasper/AS-Stats/blob/master/bin/asstatd.pl#l201

Perl version is 5.14.2, x86_64 (from debian wheezy) and all system packages are up to date at the time of writing.

I'm no expert on unpack (or perl in general) but I can happily supply more info/output if requested.

Tom

@netmax79
Copy link

I got the same error last night on a fresh installation:

as-stats[21709]: '/' must follow a numeric type in unpack at /data/as-stats/bin/asstatd.pl line 201.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants