feat: add diagnostic and management scripts for DNS, NPM, and cluster infrastructure

This commit is contained in:
2026-11-06 19:08:19 -05:00
parent 8e1c5f1e66
commit d5c2f6eae5
19 changed files with 559 additions and 8 deletions

View File

@@ -0,0 +1,33 @@
import paramiko
import sys
sys.stdout.reconfigure(encoding='utf-8')
key_path = r'C:\Users\Snarf\.ssh\id_ed25519_snarfnet'
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect("140.44.4.71", username="root", key_filename=key_path, timeout=10)
def run(cmd):
stdin, stdout, stderr = c.exec_command(cmd)
return stdout.read().decode('utf-8', errors='ignore') + stderr.read().decode('utf-8', errors='ignore')
print("--- 55.conf (pihole1) ---")
print(run("cat /var/lib/docker/volumes/nginx-proxy-manager_nginx-data/_data/nginx/proxy_host/55.conf"))
print("\n--- 43.conf (pihole2) ---")
print(run("cat /var/lib/docker/volumes/nginx-proxy-manager_nginx-data/_data/nginx/proxy_host/43.conf"))
print("\n--- Curl test from NPM node to Aerodrome Traefik (140.44.4.34) for pihole1 ---")
print(run("curl -k -I -H 'Host: pihole1.snarfnet.net' https://140.44.4.34/"))
print("\n--- Curl test from NPM node to Spaceport Traefik (140.44.4.62) for pihole2 ---")
print(run("curl -k -I -H 'Host: pihole2.snarfnet.net' https://140.44.4.62/"))
print("\n--- Curl test from NPM node to local VIP (140.44.4.70) for pihole1 ---")
print(run("curl -k -I -H 'Host: pihole1.snarfnet.net' https://140.44.4.70/"))
print("\n--- Curl test from NPM node to local VIP (140.44.4.70) for pihole2 ---")
print(run("curl -k -I -H 'Host: pihole2.snarfnet.net' https://140.44.4.70/"))
c.close()