From 241d3a26a744168b87774553ccc2f4979d3a35ff Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Thu, 11 Sep 2025 15:23:29 +0200 Subject: [PATCH] Update source URL in telegraf-install.sh --- install/telegraf-install.sh | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 install/telegraf-install.sh diff --git a/install/telegraf-install.sh b/install/telegraf-install.sh new file mode 100644 index 00000000..3b1ddda9 --- /dev/null +++ b/install/telegraf-install.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: CrazyWolf13 +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/influxdata/telegraf + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Adding Telegraf key and repository" +curl --silent --location -O https://repos.influxdata.com/influxdata-archive.key +gpg --show-keys --with-fingerprint --with-colons ./influxdata-archive.key 2>&1 \ +| grep -q '^fpr:\+24C975CBA61A024EE1B631787C3D57159FC2F927:$' \ +&& cat influxdata-archive.key \ +| gpg --dearmor \ +| tee /etc/apt/keyrings/influxdata-archive.gpg > /dev/null \ +&& echo 'deb [signed-by=/etc/apt/keyrings/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' \ +| tee /etc/apt/sources.list.d/influxdata.list +msg_ok "Added Telegraf Repository" + +msg_info "Installing Telegraf" +apt-get update +apt-get install telegraf +msg_ok "Installed Telegraf" + +msg_info "Creating default config" +telegraf config > telegraf.conf +msg_ok "Created default config" + +systemctl enable -q --now telegraf + +motd_ssh +customize + +msg_info "Cleaning up" +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned"