ADDING seedbox :: add extra docker services
This commit is contained in:
parent
e7998f7bf8
commit
9551c5bcb4
|
@ -124,13 +124,17 @@ if [[ -s ~/.zen/prometheus/prometheus ]]; then
|
||||||
## ADD ALL SWARM NODES TO MONITORING LIST for prometheus (GRAFANA) node
|
## ADD ALL SWARM NODES TO MONITORING LIST for prometheus (GRAFANA) node
|
||||||
|
|
||||||
ncrunning=$(ps axf --sort=+utime | grep -w 'prometheus' | grep -v -E 'color=auto|grep' | tail -n 1 | xargs | cut -d " " -f 1)
|
ncrunning=$(ps axf --sort=+utime | grep -w 'prometheus' | grep -v -E 'color=auto|grep' | tail -n 1 | xargs | cut -d " " -f 1)
|
||||||
[[ $ncrunning ]] && echo "RESTARTING" && kill -HUP $ncrunning
|
[[ $ncrunning ]] \
|
||||||
|
&& echo "RESTARTING" && kill -HUP $ncrunning \
|
||||||
|
|| ~/.zen/prometheus/prometheus &
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## LAUNCHING node_exporter
|
||||||
ncrunning=$(ps axf --sort=+utime | grep -w 'node_exporter' | grep -v -E 'color=auto|grep' | tail -n 1 | xargs | cut -d " " -f 1)
|
ncrunning=$(ps axf --sort=+utime | grep -w 'node_exporter' | grep -v -E 'color=auto|grep' | tail -n 1 | xargs | cut -d " " -f 1)
|
||||||
[[ $ncrunning ]] && echo "RESTARTING" && kill -HUP $ncrunning
|
[[ $ncrunning ]] \
|
||||||
/usr/local/bin/node_exporter &
|
&& echo "RESTARTING" && kill -HUP $ncrunning \
|
||||||
|
|| /usr/local/bin/node_exporter &
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,13 +24,13 @@ if [[ "$1" == "GRAFANA" && ! -d ~/.zen/prometheus ]]; then
|
||||||
&& wget https://dl.grafana.com/oss/release/grafana_10.4.2_arm64.deb \
|
&& wget https://dl.grafana.com/oss/release/grafana_10.4.2_arm64.deb \
|
||||||
&& sudo dpkg -i grafana_10.4.2_arm64.deb
|
&& sudo dpkg -i grafana_10.4.2_arm64.deb
|
||||||
|
|
||||||
|
|
||||||
### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
|
### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable grafana-server
|
sudo systemctl enable grafana-server
|
||||||
### You can start grafana-server by executing
|
### You can start grafana-server by executing
|
||||||
sudo systemctl start grafana-server
|
sudo systemctl start grafana-server
|
||||||
|
|
||||||
|
echo "MONITORING : grafana : http://localhost:3000 (admin/admin)"
|
||||||
|
|
||||||
## PROMETHEUS GATEWAY
|
## PROMETHEUS GATEWAY
|
||||||
[ "$architecture" == "x86_64" ] \
|
[ "$architecture" == "x86_64" ] \
|
||||||
|
@ -42,6 +42,7 @@ if [[ "$1" == "GRAFANA" && ! -d ~/.zen/prometheus ]]; then
|
||||||
mv $(ls -d prometheus-*) ~/.zen/prometheus
|
mv $(ls -d prometheus-*) ~/.zen/prometheus
|
||||||
|
|
||||||
## prometheus.
|
## prometheus.
|
||||||
|
echo "PROBE ENGINE : prometheus : http://localhost:9090"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -79,7 +80,7 @@ cd ..
|
||||||
&& echo "node_exporter NOT installed" && exit 1 \
|
&& echo "node_exporter NOT installed" && exit 1 \
|
||||||
|| echo "node_exporter installed"
|
|| echo "node_exporter installed"
|
||||||
|
|
||||||
|
echo "New prometheus PROBE node_exporter : https://grafana.com/dashboards/1860"
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
24
install.sh
24
install.sh
|
@ -155,9 +155,15 @@ fi
|
||||||
|
|
||||||
################################################### NODE MONITORING LAYER
|
################################################### NODE MONITORING LAYER
|
||||||
[[ ! $isLAN ]] && plus="GRAFANA"
|
[[ ! $isLAN ]] && plus="GRAFANA"
|
||||||
echo "############# INSTALL PROMETHEUS NODE EXPORTER $plus"
|
echo
|
||||||
|
echo "## MONITORING LAYER #### $plus ## PROMETHEUS ### PROBE : node_exporter"
|
||||||
${MY_PATH}/install.prometheus_node_exporter_linux.sh $plus
|
${MY_PATH}/install.prometheus_node_exporter_linux.sh $plus
|
||||||
|
|
||||||
|
echo "## CLONING seedbox "
|
||||||
|
cd ~/.zen
|
||||||
|
git clone https://github.com/papiche/seedbox.git
|
||||||
###############################################################
|
###############################################################
|
||||||
|
echo
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
#### ~/.bashrc
|
#### ~/.bashrc
|
||||||
|
@ -182,7 +188,7 @@ sudo usermod -aG docker $USER
|
||||||
curl https://raw.githubusercontent.com/\
|
curl https://raw.githubusercontent.com/\
|
||||||
jesseduffield/lazydocker/master/scripts/\
|
jesseduffield/lazydocker/master/scripts/\
|
||||||
install_update_linux.sh | bash
|
install_update_linux.sh | bash
|
||||||
|
echo
|
||||||
echo "#############################################"
|
echo "#############################################"
|
||||||
echo "######### SYSTEM SETUP #########################"
|
echo "######### SYSTEM SETUP #########################"
|
||||||
echo "#############################################"
|
echo "#############################################"
|
||||||
|
@ -231,16 +237,16 @@ echo "#############################################"
|
||||||
##########################################################
|
##########################################################
|
||||||
## ON BOARDING PLAYER
|
## ON BOARDING PLAYER
|
||||||
# ~/.zen/Astroport.ONE/start.sh
|
# ~/.zen/Astroport.ONE/start.sh
|
||||||
espeak "Welcome Space Kitty" 2>/dev/null
|
espeak "Welcome Web3 Astonaut" 2>/dev/null
|
||||||
echo ">>> Welcome Space Kitty <<<"
|
echo ">>> Welcome Web3 Astonaut <<<"
|
||||||
echo "Explore Web2.0 / WEb3 frontier"
|
echo "Create a PLAYER using : ~/.zen/Astroport.ONE/command.sh"
|
||||||
echo "Join Dragons WOT by continuing keygen procedure..."
|
echo "Join Dragons. Add DATA to UPlanet Common Good Ledger"
|
||||||
echo "#############################################"
|
echo "#############################################"
|
||||||
# DESACTIVATING ASTROPORT DAEMONS
|
# DESACTIVATING ASTROPORT DAEMONS
|
||||||
~/.zen/Astroport.ONE/tools/cron_VRFY.sh OFF
|
~/.zen/Astroport.ONE/tools/cron_VRFY.sh ON
|
||||||
echo "############################## ♥BOX READY ###"
|
echo "############################## ♥BOX READY ###"
|
||||||
echo ">>> ACTIVATE ASTROPORT DAEMONS <<<
|
echo ">>> TO DESACTIVATE ASTROPORT <<<
|
||||||
~/.zen/Astroport.ONE/tools/cron_VRFY.sh ON"
|
~/.zen/Astroport.ONE/tools/cron_VRFY.sh OFF"
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue