diff options
| author | Lasse Luttermann Poulsen <llp@nordu.net> | 2017-08-17 10:52:51 +0200 |
|---|---|---|
| committer | Lasse Luttermann Poulsen <llp@nordu.net> | 2017-08-17 10:52:51 +0200 |
| commit | 7c2948c0fd1f5831e2669acadb0cba48f02e7c5c (patch) | |
| tree | 0abc7cb937c3395191232da656a47eaca933be66 /node-exporter/install.sh | |
Added prometheus node_exporter, work in progress.
Diffstat (limited to 'node-exporter/install.sh')
| -rw-r--r-- | node-exporter/install.sh | 28 |
1 files changed, 28 insertions, 0 deletions
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" + + + |
