feat: add homelab deployment configs, documentation, and automation scripts
This commit is contained in:
24
scripts/check_ports.py
Normal file
24
scripts/check_ports.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import socket
|
||||
|
||||
hosts = [
|
||||
('140.44.4.11', 9100, 'Aerodrome Master 01'),
|
||||
('140.44.4.41', 9100, 'Spaceport Master 01'),
|
||||
('140.44.4.71', 9100, 'Shipyard Swarm'),
|
||||
('140.44.4.81', 9100, 'Harvester Node 01'),
|
||||
('140.44.4.81', 9400, 'Harvester Node 01 DCGM'),
|
||||
('140.44.4.11', 10250, 'Aerodrome Kubelet'),
|
||||
('140.44.4.41', 10250, 'Spaceport Kubelet'),
|
||||
('140.44.4.60', 8888, 'Zabbix Web'),
|
||||
('140.44.4.64', 10051, 'Zabbix Server'),
|
||||
]
|
||||
|
||||
for ip, port, desc in hosts:
|
||||
s = socket.socket()
|
||||
s.settimeout(1.5)
|
||||
try:
|
||||
s.connect((ip, port))
|
||||
print(f"[OPEN] {ip}:{port} ({desc})")
|
||||
s.close()
|
||||
except Exception as e:
|
||||
print(f"[CLOSED/ERR] {ip}:{port} ({desc}) - {e}")
|
||||
|
||||
Reference in New Issue
Block a user