From 7c2948c0fd1f5831e2669acadb0cba48f02e7c5c Mon Sep 17 00:00:00 2001 From: Lasse Luttermann Poulsen Date: Thu, 17 Aug 2017 10:52:51 +0200 Subject: Added prometheus node_exporter, work in progress. --- node-exporter/install.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 node-exporter/install.sh (limited to 'node-exporter/install.sh') diff --git a/node-exporter/install.sh b/node-exporter/install.sh new file mode 100644 index 0000000..9deb6e8 --- /dev/null +++ b/node-exporter/install.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +if [ "$(uname -s)" != "Linux" ]; then + echo "This script is not designed for $(uname -s)!" + exit 1 +fi +if [ "$(uname -m)" != "x86_64" ]; then + echo "This script can't install binaries for $(uname -m)!" + exit 1 +fi + + +if [ -e "/usr/bin/systemctl" ]; then + echo "Stating systemd install..." + INIT=systemd +else + echo "Stating Sys V init install..." + INIT=sysv +fi + +SCRIPT="`pwd`/$0" +SCRIPT_PATH="`dirname $SCRIPT`" + +echo "Script: $SCRIPT" +echo "Path: $SCRIPT_PATH" + + + -- cgit v1.1