diff options
author | James Mills <prologic@shortcircuit.net.au> | 2020-02-18 07:35:06 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-18 07:35:06 +1000 |
commit | d004f921d201cb49cc8e1d590f1d11aa753e1779 (patch) | |
tree | e281ce940328334287b72bf36bb2f2388bcc7d50 /packaging | |
parent | 696264006c1aa4ef111aab2be28f591340575c9e (diff) |
Integrates the eBPF Kernel Collector with the NetData Installer (#8075)
* Initial Commit
* Added a generic get() function that wraps either curl or wget and pipes the file to stdout
* Added partial implementation of eBPF Kernel Collectpr
* Move the kernel check inside should_install_ebpf()
* Fixed shellcheck errors I missed
* Fixed incorrect return in should_install_ebpf()
* Refactored Kernel version parsing and LIBC Detection
* Refactored Kernel / eBPF Package compatibility checks
* Added a generic get() function that wraps either curl or wget and pipes the file to stdout
* Added partial implementation of eBPF Kernel Collectpr
* Move the kernel check inside should_install_ebpf()
* Fixed shellcheck errors I missed
* Fixed incorrect return in should_install_ebpf()
* Refactored Kernel version parsing and LIBC Detection
* Refactored Kernel / eBPF Package compatibility checks
* Fixed bugs
* Improve alignment of text output
* Other minor fixes
* Completed installation logic for eBPF Package
* Missed libnetdata_ebpf.so
* Fixed installation locaiton for libnetdata_ebpf.so
* Added -f flag to ln so installs are idempotent
* Refactored running check-kernel-config.sh
* Use run to run the check-kernel.config.sh
* Switch to grep + sed instead of jq
* kernel_collector_integration: Fix problems with Fedora and other distributions
that do not have '/usr' s default shared library directory
* remove developer mode installation
* kernel_collector_integration: Fix comparison
Fixes comparison to get old kernel versions
* Addressed @Ferroin's comments
* Don't bother comparing kver to 0
Co-authored-by: thiagoftsm <thiagoftsm@gmail.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/installer/functions.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packaging/installer/functions.sh b/packaging/installer/functions.sh index 76c3678585..4fe911ce68 100644 --- a/packaging/installer/functions.sh +++ b/packaging/installer/functions.sh @@ -92,6 +92,17 @@ progress() { echo >&2 " --- ${TPUT_DIM}${TPUT_BOLD}${*}${TPUT_RESET} --- " } +get() { + url="${1}" + if command -v curl > /dev/null 2>&1; then + curl -sSL -o - --connect-timeout 10 --retry 3 "${url}" + elif command -v wget > /dev/null 2>&1; then + wget -T 15 -O - "${url}" + else + fatal "I need curl or wget to proceed, but neither is available on this system." + fi +} + # ----------------------------------------------------------------------------- netdata_banner() { |