ADDING seedbox :: add extra docker services

This commit is contained in:
fred 2024-04-17 01:42:47 +02:00
parent e7998f7bf8
commit 9551c5bcb4
3 changed files with 25 additions and 14 deletions

View File

@ -124,13 +124,17 @@ if [[ -s ~/.zen/prometheus/prometheus ]]; then
## 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 ]] && echo "RESTARTING" && kill -HUP $ncrunning
[[ $ncrunning ]] \
&& echo "RESTARTING" && kill -HUP $ncrunning \
|| ~/.zen/prometheus/prometheus &
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 ]] && echo "RESTARTING" && kill -HUP $ncrunning
/usr/local/bin/node_exporter &
[[ $ncrunning ]] \
&& echo "RESTARTING" && kill -HUP $ncrunning \
|| /usr/local/bin/node_exporter &

View File

@ -24,13 +24,13 @@ if [[ "$1" == "GRAFANA" && ! -d ~/.zen/prometheus ]]; then
&& wget https://dl.grafana.com/oss/release/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
sudo systemctl daemon-reload
sudo systemctl enable grafana-server
### You can start grafana-server by executing
sudo systemctl start grafana-server
echo "MONITORING : grafana : http://localhost:3000 (admin/admin)"
## PROMETHEUS GATEWAY
[ "$architecture" == "x86_64" ] \
@ -42,6 +42,7 @@ if [[ "$1" == "GRAFANA" && ! -d ~/.zen/prometheus ]]; then
mv $(ls -d prometheus-*) ~/.zen/prometheus
## prometheus.
echo "PROBE ENGINE : prometheus : http://localhost:9090"
fi
@ -79,7 +80,7 @@ cd ..
&& echo "node_exporter NOT installed" && exit 1 \
|| echo "node_exporter installed"
echo "New prometheus PROBE node_exporter : https://grafana.com/dashboards/1860"
exit 0

View File

@ -155,9 +155,15 @@ fi
################################################### NODE MONITORING LAYER
[[ ! $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
echo "## CLONING seedbox "
cd ~/.zen
git clone https://github.com/papiche/seedbox.git
###############################################################
echo
#####################
#### ~/.bashrc
@ -182,7 +188,7 @@ sudo usermod -aG docker $USER
curl https://raw.githubusercontent.com/\
jesseduffield/lazydocker/master/scripts/\
install_update_linux.sh | bash
echo
echo "#############################################"
echo "######### SYSTEM SETUP #########################"
echo "#############################################"
@ -231,16 +237,16 @@ echo "#############################################"
##########################################################
## ON BOARDING PLAYER
# ~/.zen/Astroport.ONE/start.sh
espeak "Welcome Space Kitty" 2>/dev/null
echo ">>> Welcome Space Kitty <<<"
echo "Explore Web2.0 / WEb3 frontier"
echo "Join Dragons WOT by continuing keygen procedure..."
espeak "Welcome Web3 Astonaut" 2>/dev/null
echo ">>> Welcome Web3 Astonaut <<<"
echo "Create a PLAYER using : ~/.zen/Astroport.ONE/command.sh"
echo "Join Dragons. Add DATA to UPlanet Common Good Ledger"
echo "#############################################"
# DESACTIVATING ASTROPORT DAEMONS
~/.zen/Astroport.ONE/tools/cron_VRFY.sh OFF
~/.zen/Astroport.ONE/tools/cron_VRFY.sh ON
echo "############################## ♥BOX READY ###"
echo ">>> ACTIVATE ASTROPORT DAEMONS <<<
~/.zen/Astroport.ONE/tools/cron_VRFY.sh ON"
echo ">>> TO DESACTIVATE ASTROPORT <<<
~/.zen/Astroport.ONE/tools/cron_VRFY.sh OFF"
else