sflow / host-sflow

host-sflow agent
http://sflow.net
Other
146 stars 55 forks source link

sflowtool is not showing any samples output #48

Open kishanps opened 2 years ago

kishanps commented 2 years ago

Need some help where I am not seeing any sflow samples output in the sflowtool. Below is the hsflowd config file and I do see takeSample outputs in the debug file but just nothing on the udp port. What prevents sflow samples from being sent out when they made it all the way upto the takeSample() ?

The only error I see in the debugs are the 'Get SIOCGIFADDR' failed errors for every interface since there is no IP assigned to them. Any debugging tips would be helpful.

rev_start=1
hostname=myHostName
sampling=400
header=128
datagram=1400
polling=20
agentIP=2000:f8b0:8096:2e30::6
agent=bond0
ds_index=1
collector=127.0.0.1/6343//
rev_end=1

Debugs

dbg1: psample netlink (type=23) CMD = 0
dbg3: psample: grp=1
dbg2: psample: grp=1 in=272 out=278 n=100 seq=757 drops=0 pktlen=106
takeSample: hook=0 tap=Ethernet1_1_1 in=Ethernet1_1_1 out=Ethernet1_5_1 pkt_len=92 cap_len=92 mac_len=14 (00000000007B -> 0000000000EA et=0x8100)
dbg2: selected sampler Ethernet1_1_1 ifIndex=272
dbg1: psample netlink (type=23) CMD = 0
dbg3: psample: grp=1
dbg2: psample: grp=1 in=272 out=275 n=100 seq=758 drops=0 pktlen=106
takeSample: hook=0 tap=Ethernet1_1_1 in=Ethernet1_1_1 out=Ethernet1_3_1 pkt_len=92 cap_len=92 mac_len=14 (00000000007B -> 0000000000EA et=0x8100)
dbg2: selected sampler Ethernet1_1_1 ifIndex=272
dbg1: psample netlink (type=23) CMD = 0
dbg3: psample: grp=1
dbg2: psample: grp=1 in=272 out=278 n=100 seq=759 drops=0 pktlen=106
sflow commented 2 years ago

What do you have in /etc/hsflowd.conf? And what OS is running (/etc/os-release)? And did you build both sflowtool and hsflowd from sources?