monitor host and VM's using host sFlow

snowman66

Active Member
Dec 1, 2010
254
1
38
Hi all

well if someone is searching for simple solution here is something what i did.

1. First download sflow agent from http://host-sflow.sourceforge.net/
Installation on Linux is very simple (you'll need ggc & make installed).

2. Edit /etc/resolv.conf

Add:

Code:
analyzer A 192.168.1.200 

_sflow._udp SRV 0 0 6343 analyzer
_sflow._udp TXT (
"txtvers=1"
"polling=20"
"sampling=512"
)

3. Edit /etc/hsflowd.conf

Code:
DNSSD = off
        polling = 20
        sampling = 512
        collector{
        ip = 192.168.1.200
        udpport = 6343

4. Start the agent using /etc/init.d/hsflowd start

5. On your Laptop or management computer download sflow analyzer which can be found here http://www.inmon.com/products/sFlowTrend.php

You can later run it using
Code:
javaws sFlowTrend.jnlp

And the output:
snapshot2.pngsnapshot4.pngsnapshot1.pngsnapshot3.pngsnapshot5.png

Cheers
dejan
 
Hello i did what you said :
i just change
192.168.1.200 by the ip of my host (kvm) and it don't work :(
Did you install smnp ?

Regards,
 
Hum
I installed sFlow trend on my windows computer.
I want to monitor the HOST kvm (not the VM)

So i did it :
i installed the agent
then i :
analyzer A Ip_of_my_windows_server

_sflow._udp SRV 0 0 6343 analyzer
_sflow._udp TXT (
"txtvers=1"
"polling=20"
"sampling=512"
)


And
change the parameter for
DNSSD = off
polling = 20
sampling = 512
collector{
ip = Ip_of_my_windows_server
udpport = 6343

Configuration in sflow trend :
- add tool configure agent ; ip of my server kvm , i click sflow but it ask SNMP ? right ?
I tried but still not working :(
Which analyser are you using ?

Regards,
QQ
 
Thank you for putting together the post on Host sFlow - I am one of the developers and it is great to see that it compiled and installed so easily.

I wasn't aware of Proxmox so I ran up a server. I am very impressed, the installation went without a hitch and the web UI is very cool!

I have a few comments:

DNS-SD

There is no need to change the resolv.conf file since DNS-SD isn't enabled in the hsflowd.conf file.

DNS-SD (DNS server discovery) is useful is you are monitoring a large number of servers and want to centrally manage the configuration. When DNS-SD is used the configuration settings are installed on the site DNS server by editing the site zone file:

http://blog.sflow.com/2010/06/dns-sd.html

Per VM statistics

It also looks like you are only getting the physical server performance statistics. In order to export per-VM statistics, the sFlow agent currently needs access to libvirt:

http://blog.sflow.com/2010/10/libvirt.html

However, if there is an alternative way to get access to the per-VM performance counters on Proxmox VE, then please let me know about the API. For example, on Xen platforms the sFlow agent links directly to the xenstat library for performance statistics.

vSwitch

I see that the Open vSwitch was mentioned a few times on this forum. In addition to its many other cool features, the Open vSwitch also supports sFlow traffic monitoring, providing a detailed picture of inter-VM traffic. The following article shows how sFlowTrend can also be used to monitor vSwitch traffic:

http://blog.sflow.com/2010/10/sflowtrend-adds-server-performance.html

It shouldn't be too hard to install Open vSwitch, usually the tricky part is getting the scripts right so that switch ports are automatically created for each virtual machine. If anyone is interested getting it to work, there are instructions for KVM. Also the Open vSwitch Discuss mailing list is a good place to ask questions. Ultimately, it would be great if the Open vSwitch shipped as an integrated component.
 
hi guys..

I try to monitoring OPenFlow using sFlow, and i use sFlowTrend,
I already create host agent,, n not create DNS-SD, coz i don't monitore many server,
So i set my DNS-SD off..

but, when i try to capture using sFlowTrend, i can't see any graphics yet (it didn't work).

did anyone here can help? tq.. :)
NB : related this blog : http://blog.sflow.com/2011/05/openflow-and-sflow.html
 
If you are using OpenFlow, then you must be using the Open vSwitch? If that is the case, then the instructions are different - you do not use iptables/ULOG to capture traffic. The Open vSwitch has build-in sFlow support which you can either enable using the ovs-vsctl command directly (http://openvswitch.org/support/config-cookbooks/sflow/), or by running the sflowovsd daemon that ships with Host sFlow which will automatically run the ovs-vsctl commands to enable sFlow (http://blog.sflow.com/2012/01/host-sflow-distributed-agent.html).


I try to monitoring OPenFlow using sFlow, and i use sFlowTrend,
I already create host agent,, n not create DNS-SD, coz i don't monitore many server,
So i set my DNS-SD off..

but, when i try to capture using sFlowTrend, i can't see any graphics yet (it didn't work).

did anyone here can help? tq.. :)
NB : related this blog : http://blog.sflow.com/2011/05/openflow-and-sflow.html
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!