Add clean deployment scripts for monitoring services
- setup-glances.sh: Install Glances with web interface and systemd service - setup-netdata.sh: Install Netdata without nginx configuration changes - deploy-netdata-config.sh: Complete Netdata deployment with privacy config - Remove redundant iterative scripts from troubleshooting process - Each script handles one specific deployment task cleanly
This commit is contained in:
28
scripts/setup-glances.sh
Executable file
28
scripts/setup-glances.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Install and configure Glances monitoring service
|
||||
# Run with: sudo -A ./scripts/setup-glances.sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "=== Installing Glances monitoring service ==="
|
||||
pacman -S --noconfirm glances python-fastapi uvicorn python-jinja
|
||||
|
||||
echo "=== Creating glances user ==="
|
||||
useradd -r -s /bin/false glances 2>/dev/null || echo "User glances already exists"
|
||||
|
||||
echo "=== Deploying Glances systemd service ==="
|
||||
cp /home/hoborg/homelab/config/systemd/glances-web.service /etc/systemd/system/
|
||||
systemctl daemon-reload
|
||||
|
||||
echo "=== Enabling and starting Glances service ==="
|
||||
systemctl enable glances-web
|
||||
systemctl start glances-web
|
||||
|
||||
echo "=== Checking Glances service status ==="
|
||||
systemctl status glances-web --no-pager -l
|
||||
|
||||
echo ""
|
||||
echo "=== Glances installation complete! ==="
|
||||
echo "Local access: http://127.0.0.1:61208/"
|
||||
echo "External access: https://ak-homelab.duckdns.org/glances/ (requires nginx config)"
|
||||
echo "Basic auth: admin / AdminPass2024!"
|
||||
Reference in New Issue
Block a user