forked from sflow/host-sflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.Linux
61 lines (40 loc) · 1.38 KB
/
INSTALL.Linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
This software is distributed under the following license:
http://sflow.net/license.html
To compile and install, try this:
% make FEATURES="ALL"
% sudo make install
% sudo make schedule
Features can be specified individually:
% make FEATURES="ULOG NFLOG PCAP DOCKER KVM OVS TCP"
Edit /etc/hsflowd.conf for configuration. The options are
described here:
http://sflow.net/host-sflow-linux-config.php
Module dependencies var from platform to platform, but
the following packages usually have to be installed before
the compilation will work:
NFLOG: libnfnetlink-dev(el)
PCAP: libpcap-dev(el)
KVM: libvirt-dev(el) libxml2-dev(el)
NVML: libnvidia-ml nvml.h
XEN: libxenctrl libxenstore xenctrl.h xenstore.h
To start the daemon, run:
% sudo service hsflowd start
and check the syslog for errors.
To run in the debugger, first recompile like this:
% make clean
% make FEATURES="ALL" OPT=-g
% sudo make install
and then run with the "-dd" command line option to
prevent daemonization and increase the logging level:
% sudo gdb hsflowd
gdb> set args -dd
gdb> r
For more detailed logging, using -ddd or -dddd.
To build an rpm, try:
% make rpm FEATURES="..."
To build a Debian package, try:
% make deb FEATURES="..."
And to use Docker to compile natively on other platforms (if required)
you can try:
% sudo ./docker_build_on <platform>
Where <platform> is a directory under ./docker_build/