Sunday, August 13, 2017

configure sflow to monitor linux performance

we use sflowtrend as the sflow collector , ip 192.168.65.4
so download and install it
http://www.inmon.com/products/sFlowTrend.php#download

then run it with
$ sflowtrend-local

then we can access it via gui or web https://serverip:8443



1- on linux to be monitored, installing sflow agent

$ git clone https://github.com/sflow/host-sflow.git
$ cd host-sflow
$ make FEATURES="HOST"
$ sudo make install
$ sudo make schedule 

2- then edit its configuration as below (/etc/hsflowd.conf)
sflow {
DNSSD= off
 polling = 20
 sampling = 512
  collector {
   ip=192.168.65.4
   udpport=6343
   }
     dbus { }
}





3- restart its service
$ sudo /etc/init.d/hsflowd restart

now we get the performance information such ask dick cpu, ram, network, etc on our sflow controller, sflowtrend, on tab Host


*** tips
we can debug host-sflow as below

$ sudo gdb hsflowd
gdb> set args -dd -f /etc/hsflowd.conf
gdb> run



- or
$ hsflowd -dd -f /etc/hsflowd.conf


No comments:

Post a Comment