forked from sflow/host-sflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.Linux
63 lines (42 loc) · 1.49 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
62
63
This software is distributed under the following license:
http://sflow.net/license.html
To compile and install, try this:
% make FEATURES="HOST"
% sudo make install
% sudo make schedule
Features can be specified individually:
% make FEATURES="ULOG NFLOG PCAP DOCKER KVM OVS TCP SYSTEMD DBUS"
Edit /etc/hsflowd.conf for configuration. The options are
described here:
http://sflow.net/host-sflow-linux-config.php
Module dependencies vary by platform, but the following packages
will typically be required for compilation:
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
SYSTEMD: dbus-dev(el) or libdbus-1-dev, openssl-dev(el), libssl-dev(el)
DBUS: dbus-dev(el) or libdbus-1-dev
OPX: libsystemd-daemon-dev
CONTAINERD: golang
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="HOST" 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 for other platforms, try:
% sudo ./docker_build_on <platform>
Where <platform> is a directory under ./docker_build/