bandwidthd 2.0.1 can't record traffic when dev set to any on ubuntu 14.04.1

Bug #1414391 reported by sense
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bandwidthd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Versions:
System: Ubuntu 14.04.1 LTS
bandwidthd-pgsql: 2.0.1+cvs20090917-7
postgresql: 9.3+154

I can set in bandwidthd.conf listen on one device(like dev eth2), it's ok. But when I set "dev any", there are some error in syslog and the bandwidthd can't record any traffic. The log was something like

...
Jan 24 12:52:37 ocelot bandwidthd: Monitoring subnet 10.44.142.1 with netmask 255.255.255.255
Jan 24 12:52:37 ocelot bandwidthd: Monitoring subnet 10.34.208.1 with netmask 255.255.255.255
Jan 24 12:52:37 ocelot bandwidthd: Monitoring subnet 172.16.0.0 with netmask 255.255.0.0
Jan 24 12:52:37 ocelot bandwidthd: Monitoring subnet 192.168.0.0 with netmask 255.255.0.0
Jan 24 12:52:37 ocelot bandwidthd: Monitoring subnet 213.46.74.0 with netmask 255.255.254.0
Jan 24 12:52:37 ocelot bandwidthd: Monitoring subnet 143.62.11.80 with netmask 255.255.255.248
Jan 24 12:52:37 ocelot bandwidthd: Monitoring subnet 221.137.250.144 with netmask 255.255.255.240
Jan 24 12:52:37 ocelot bandwidthd: Opening any
Jan 24 12:52:37 ocelot bandwidthd: Packet Encoding: Linux Cooked Socket
Jan 24 12:55:57 ocelot bandwidthd: Initializing database info
Jan 24 12:55:58 ocelot bandwidthd: Sensor ID: 1
Jan 24 12:55:58 ocelot bandwidthd: Sensor '#010 - E' does not exist in database, skiping link update
Jan 24 12:59:18 ocelot bandwidthd: Sensor '#010 - E' does not exist in database, skiping link update
Jan 24 13:02:38 ocelot bandwidthd: Sensor '#010 - E' does not exist in database, skiping link update
Jan 24 13:02:38 ocelot bandwidthd: Postresql SELECT failed: ERROR: invalid byte sequence for encoding "UTF8": 0xc0
Jan 24 13:02:38 ocelot bandwidthd: Count not update link status
...

My bandwidthd.conf is:

subnet 10.44.142.1/32
subnet 10.34.208.1/32
subnet 172.16.0.0/12
subnet 192.168.0.0/16
subnet 213.46.74.0/23
subnet 143.62.11.80/29
subnet 221.137.250.144/28
dev "any"
pgsql_connect_string "user = bandwidthd password = bbbbbpass dbname = bandwidthd host = localhost"
sensor_id "the_sensor"
graph false
recover_cdf false
promiscuous false

When I run bandwidthd -l can get:

~# bandwidthd -l
Description: (null)
Name: "tun0"

Description: Linux netfilter log (NFLOG) interface
Name: "nflog"

Description: Linux netfilter queue (NFQUEUE) interface
Name: "nfqueue"

Description: (null)
Name: "eth2"

Description: (null)
Name: "eth3"

Description: (null)
Name: "eth4"

Description: (null)
Name: "eth6"

Description: (null)
Name: "eth7"

Description: Pseudo-device that captures on all interfaces
Name: "any"

Description: (null)
Name: "lo"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.