summaryrefslogtreecommitdiffstats
path: root/system/telegraf
diff options
context:
space:
mode:
Diffstat (limited to 'system/telegraf')
-rw-r--r--system/telegraf/README3
-rw-r--r--system/telegraf/slack-desc2
-rw-r--r--system/telegraf/telegraf.SlackBuild20
-rw-r--r--system/telegraf/telegraf.info10
4 files changed, 23 insertions, 12 deletions
diff --git a/system/telegraf/README b/system/telegraf/README
index 5603c0571c..96a46d299c 100644
--- a/system/telegraf/README
+++ b/system/telegraf/README
@@ -11,7 +11,8 @@ Kafka, MQTT, NSQ, and many others.
Groupname and Username
-You must have the "telegraf" group and user to run this script, for example:
+You must have the "telegraf" group and user to run this script, for
+example:
groupadd -g 349 telegraf
useradd -u 349 -s /bin/false -d /dev/null -g telegraf telegraf
diff --git a/system/telegraf/slack-desc b/system/telegraf/slack-desc
index e302ddec05..30a670256c 100644
--- a/system/telegraf/slack-desc
+++ b/system/telegraf/slack-desc
@@ -10,7 +10,7 @@ telegraf: telegraf (An Open-Source Collecting & Reporting Agent)
telegraf:
telegraf: It is part of the TICK stack and is a plugin-driven server agent for
telegraf: collecting and reporting metrics. Telegraf has plugins or integrations
-telegraf: to source a variety of metrics directly from the system it’s running
+telegraf: to source a variety of metrics directly from the system it's running
telegraf: on, pull metrics from third-party APIs, or even listen for metrics via
telegraf: a StatsD and Kafka consumer services. It also has output plugins to
telegraf: send metrics to a variety of other datastores, services, and message
diff --git a/system/telegraf/telegraf.SlackBuild b/system/telegraf/telegraf.SlackBuild
index ee7bbac495..779f723af2 100644
--- a/system/telegraf/telegraf.SlackBuild
+++ b/system/telegraf/telegraf.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for Telegraf
-# Copyright 2017-2021 Ebben Aries <slackbuilds@dscp.org>
+# Copyright 2017-2024 Ebben Aries <slackbuilds@dscp.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=telegraf
-VERSION=${VERSION:-1.17.3}
+VERSION=${VERSION:-1.30.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -46,7 +49,14 @@ elif ! getent passwd $PRGNAM; then
exit 1
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -104,4 +114,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/telegraf/telegraf.info b/system/telegraf/telegraf.info
index 30ec91c5c0..f78a096890 100644
--- a/system/telegraf/telegraf.info
+++ b/system/telegraf/telegraf.info
@@ -1,10 +1,10 @@
PRGNAM="telegraf"
-VERSION="1.17.3"
+VERSION="1.30.1"
HOMEPAGE="https://www.influxdata.com"
-DOWNLOAD="https://dl.influxdata.com/telegraf/releases/telegraf-1.17.3_linux_i386.tar.gz"
-MD5SUM="f56999d43b96b054650eb380193f1d93"
-DOWNLOAD_x86_64="https://dl.influxdata.com/telegraf/releases/telegraf-1.17.3_linux_amd64.tar.gz"
-MD5SUM_x86_64="bdba432789fd789a9e02634452bb5876"
+DOWNLOAD="https://dl.influxdata.com/telegraf/releases/telegraf-1.30.1_linux_i386.tar.gz"
+MD5SUM="d765bebe51033ec8bfd8098b52da5ac1"
+DOWNLOAD_x86_64="https://dl.influxdata.com/telegraf/releases/telegraf-1.30.1_linux_amd64.tar.gz"
+MD5SUM_x86_64="b592f7423f327991ff178a40460f73ea"
REQUIRES=""
MAINTAINER="Ebben Aries"
EMAIL="slackbuilds@dscp.org"