mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-18 22:33:50 +02:00
fix ip_support
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#/bin/bash
|
#/bin/bash
|
||||||
IP=$(ifconfig ppp0 | head -n 2 | tail -n 1 | cut -d: -f2 | cut -d" " -f 1)
|
serviceIP=$(ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
clear
|
clear
|
||||||
echo "################################################"
|
echo "################################################"
|
||||||
echo "# #"
|
echo "# #"
|
||||||
@@ -156,17 +156,17 @@ echo ""
|
|||||||
echo "DE >"
|
echo "DE >"
|
||||||
echo "Wenn alles geklappt hat, funktioniert Prometheus und Node_Exporter wunderbar!"
|
echo "Wenn alles geklappt hat, funktioniert Prometheus und Node_Exporter wunderbar!"
|
||||||
echo "Beides kannst du unter"
|
echo "Beides kannst du unter"
|
||||||
echo "http://$IP:9090/"
|
echo "http://$serviceIP:9090/"
|
||||||
echo "http://$IP:9100/"
|
echo "http://$serviceIP:9100/"
|
||||||
echo "http://$IP:3000/"
|
echo "http://$serviceIP:3000/"
|
||||||
echo "erreichen"
|
echo "erreichen"
|
||||||
echo ""
|
echo ""
|
||||||
echo "EN >"
|
echo "EN >"
|
||||||
echo "If everything went well, Prometheus and Node_Exporter will work wonderfully!"
|
echo "If everything went well, Prometheus and Node_Exporter will work wonderfully!"
|
||||||
echo "You can access at"
|
echo "You can access at"
|
||||||
echo "http://$IP:9090/"
|
echo "http://$serviceIP:9090/"
|
||||||
echo "http://$IP:9100/"
|
echo "http://$serviceIP:9100/"
|
||||||
echo "http://$IP:3000/"
|
echo "http://$serviceIP:3000/"
|
||||||
echo "to reach"
|
echo "to reach"
|
||||||
echo ""
|
echo ""
|
||||||
echo "###############################################################################"
|
echo "###############################################################################"
|
||||||
Reference in New Issue
Block a user