monitoring host with sFlow

1,887 views
Skip to first unread message

douiri...@gmail.com

unread,
Jul 3, 2013, 3:56:10 PM7/3/13
to sf...@googlegroups.com
Hi all,

i'm newbie to sflow. I have two KVM virtual machine (VM1 and VM2) attached to openvswitch. i've installed sFlow and configured OVS like sflow agent. i can monitor ovs interface's throught the sflow GUI correctly but i can't monitor VM metric's (CPU, memory). actually, when i get to "Host-statistics" i just see "No Data- waiting for host sflow data" (same thing when i get to "Report") so i just want to know if i miss something, is there any other configuration i should make?

i have an other question that maybe outside the scope of this subject: i'm trying to see how can i use the sflow monitoring host result's in a new module in Floodlight. in other words, its about developping monitoring module with floodlight. i suppose that this is may be out of the scope of openflow but i just want to have another opinion.

thinks so ;uch in advance for your help

Peter Phaal

unread,
Jul 3, 2013, 9:24:01 PM7/3/13
to sFlow
You need to install the Host sFlow agent to get the per-VM CPU, memory and I/O statistics as well as detailed metrics from the hypervisor.


The Host sFlow agent will also automatically configure the sFlow settings on OVS.


If you are looking to use the sFlow metrics with Floodlight as part of an SDN solution then you may want to take a look at sFlow-RT. The following articles describe a number of use cases, including: load balancing, DDoS mitigation, priority marking, and hybride sFlow/OpenFlow packet capture. 


Many of the articles include example Python/node.js scripts and use Floodlight as the OpenFlow controller.

Peter


--
You received this message because you are subscribed to the Google Groups "sFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sflow+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

douiri...@gmail.com

unread,
Jul 4, 2013, 11:31:50 AM7/4/13
to sf...@googlegroups.com
thinks Peter for your help, its very useful to me, especially the last link. Actually, i have some issues with Host Flow but i just want to ask you if Host Flow provide REST API like sFlow-RT or not

 

Peter Phaal

unread,
Jul 4, 2013, 12:03:33 PM7/4/13
to sFlow
Just like a switch, the Host sFlow agent streams raw data to a remote analyzer using the sFlow protocol. You need an sFlow analyzer to turn the data into useable measurements. The following article describes how sFlow from switches and hosts can be combined in an sFlow analyzer:

http://blog.sflow.com/2010/08/sflow-host-structures.html

A REST API is a feature to look for in the sFlow analyzer. 

The following article provides some examples showing how Host sFlow metrics can be queried using sFlow-RT's REST API:


InMon's Traffic Sentinel software maintains metrics database and lets you build your own REST API using its scriptable query engine. Targeted REST API's are used to integrate metrics into planning, accounting, security, operations and orchestration systems:





On Thu, Jul 4, 2013 at 8:31 AM, <douiri...@gmail.com> wrote:
thinks Peter for your help, its very useful to me, especially the last link. Actually, i have some issues with Host Flow but i just want to ask you if Host Flow provide REST API like sFlow-RT or not


 

--

douiri...@gmail.com

unread,
Jul 6, 2013, 2:02:03 PM7/6/13
to sf...@googlegroups.com
thinks so much Peter !!!

Natalia Serebryakova

unread,
Nov 13, 2013, 7:47:40 PM11/13/13
to sf...@googlegroups.com
Hi All,

I have a question about sflow sampling tool I'm trying to use.
I'm from networking background and I'm working on automation tool for router testing
I'm going to automate sflow tescase and trying to setup my ubuntu server with sflow tool to capture sflow packets generated by DUT(switch). The tool will analyze sampling packets as well later.

So my problem is : I setup  "sflowtool" described here http://www.inmon.com/technology/sflowTools.php.
I'm running my test , login to ubuntu server ,execute "sflowtool " command and start sampling datagrams (lets say 10)
 i can't find how to add/configure amount of samples or timeout so I can stop this process "sflowtool" and go back to testcase execution.
I read README.file but I still can't find.

Is it possible to operate somehow to this "sflowtool"  or use python to stop it without going to Linux and kill process?

Thank you for help

Neil Mckee

unread,
Nov 13, 2013, 11:04:02 PM11/13/13
to sf...@googlegroups.com
You could do something like this to capture 10 packets to a file:

/usr/sbin/tcpdump -i eth0 -s 0 -c 10 -w sflow.pcap udp port 6343

And then use:

sflowtool -r sflow.pcap

to print the fields.

Or you might be able to put the two commands together like this:

/usr/sbin/tcpdump -i eth0 -s 0 -c 10 -w - udp port 6343 | sflowtool -r -

Neil



Natalia Serebryakova

unread,
Nov 14, 2013, 12:02:47 AM11/14/13
to sf...@googlegroups.com
Hi Neil,
thank you for reply I'm not sure what this command does:



nat1@Sniper-70:/etc/sflow-rt$ sudo /usr/sbin/tcpdump -i eth1 -s 0 -c 10 -w - udp port 6343 | sflowtool -r -
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
3 packets captured
3 packets received by filter
0 packets dropped by kernel


looks like I still have to cancel process manually.

thank you,
Natalia

Mr.umair Hussian

unread,
Jul 15, 2015, 2:51:48 PM7/15/15
to sf...@googlegroups.com



Hi. i'm new to sflow. I have two KVM virtual machine (VM1 and VM2) attached to openvswitch. OVS switch in installed in my base machine . i've installed sFlow trend and configured OVS like sflow agent. i cannot monitor OVS traffic or anything. even the synchronization of OVS with sflow is done. sflow is showing my machine's ip is connected to it. can anyone help?
   I did this configuration:

COLLECTOR_IP=192.168.118.1
COLLECTOR_PORT=6343
AGENT_IP=eth1
HEADER_BYTES=128
SAMPLING_N=64
POLLING_SECS=10

 

sudo ovs-vsctl -- --id=@sflow create sflow agent=eth1  target=\"$192.168.118.1:$6343\"  header=$128  sampling=$64 polling=$10 -- set bridge br0 sflow=@sflowCOLLECTOR_IP=192.168.118.1


Neil Mckee

unread,
Jul 16, 2015, 12:48:32 AM7/16/15
to sf...@googlegroups.com
I think you might need to drop the "$" prefix from those integer constants....   but even better would be to install and run both hsflowd and sflowovsd,  like this:


(sflowovsd will take care of the OVS sFlow configuration for you,  so you just have to configure /etc/hsflowd.conf then start both daemons).

Neil


--
You received this message because you are subscribed to the Google Groups "sFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sflow+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages