diff --git a/exporter/node_exporter/install.sh b/exporter/node_exporter/install.sh index 875f673..7858056 100644 --- a/exporter/node_exporter/install.sh +++ b/exporter/node_exporter/install.sh @@ -17,8 +17,12 @@ if service --status-all | grep -Fq 'node_exporter'; then service node_exporter stop fi +echo "Copying exporter" + mkdir -p /usr/prometheus +echo "Checking/Creating systemd configuration" + cp $SCRIPTPATH/node_exporter /usr/prometheus/node_exporter chmod +x /usr/prometheus/node_exporter @@ -32,5 +36,7 @@ else cp $SCRIPTPATH/node_exporter.sysconfig /etc/sysconfig/node_exporter fi +echo "Starting Exporter" + systemctl enable node_exporter.service service node_exporter start \ No newline at end of file