make hsflowd to listen to multiple interfaces

278 views
Skip to first unread message

Johan De Graeve

unread,
Jan 6, 2017, 3:52:05 AM1/6/17
to Host-sFlow
Hi everybody,

How do you enable hsflowd on linux to listen to multiple interfaces. 
that you can use 
pcap { speed=1G-1T }
but when I start hsflowd I get

[root@saturnus1 ~]# cat /etc/hsflowd.conf 
sflow {
  sampling = 500
  collector { ip = 10.110.3.160 udpport=6343 }
  pcap { speed=1G-1T }
  kvm {}
}
[root@saturnus1 ~]# /sbin/hsflowd -ddd
started
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(64)
dbg1: my_os_calloc(32)
dbg1: my_os_calloc(128)
dbg1: my_os_calloc(64)
parse error at <speed><1G-1T> on line 4 of /etc/hsflowd.conf : unexpected pcap setting
failed to read config file

I'm using the following version of hsflowd

[root@saturnus1 ~]# yum info hsflowd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name        : hsflowd
Arch        : x86_64
Version     : 2.0.4
Release     : 6
Size        : 674 k
Repo        : installed
From repo   : hsflow
Summary     : host sFlow daemon
URL         : http://sflow.net
Description : This program implements the host sFlow(R) standard - sending
            : key performance metrics to an sFlow collector to enable
            : highly-scalable monitoring of all critical resources in
            : the network. If Open VSwitch is present, will also control
            : the Open VSwitch sFlow configuration.


Any ideas?

Much appreciated!

Johan De Graeve

Neil McKee

unread,
Jan 6, 2017, 12:15:12 PM1/6/17
to Johan De Graeve, Host-sFlow
That pcap option was added in 2.0.5.  Latest is 2.0.7:

Provided your kernel is 3.19 or newer this will be done efficiently (with BPF sampling in kernel).  Otherwise you will see hsflowd use more CPU.   If hsflowd uses too much CPU then you can either switch to using nflog { } instead,  or upgrade the kernel (e.g. using "elrepo").

------
Neil McKee
InMon Corp.
http://www.inmon.com

--
You received this message because you are subscribed to the Google Groups "Host-sFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to host-sflow+unsubscribe@googlegroups.com.
To post to this group, send email to host-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/host-sflow/477fdeae-a2b3-4010-9502-91bbd0382bd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Johan De Graeve

unread,
Jan 6, 2017, 12:37:01 PM1/6/17
to Neil McKee, Host-sFlow
Hi Neil,

Thank you for your help.

We are using centos and apparently we can't yet upgrade to 3.19. Centos runs a bit behind

I'll try to upgrade to 2.0.7

Thx a lot.

Grtz,
Johan


Johan De Graeve

unread,
Jan 9, 2017, 5:09:21 AM1/9/17
to Host-sFlow, neil....@inmon.com
Upgraded all our centos 7 ovirt hypervisors to hsflowd 2.07 and problem is solved

Thx
Johan
Reply all
Reply to author
Forward
0 new messages