feat: watchdog v4 + check-alert v2 + collect-business v2 + DUMMY补数据脚本

This commit is contained in:
oa-monitor committed 2026-11-04 17:25:42 +08:00
commit 7ab75364b1
22 files changed
+1795

No files matched your search

Executable
+12
View File
@@ -0,0 +1,12 @@
import paramiko, sys
host, user, password, cmd = sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4]
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
try:
ssh.connect(host, username=user, password=password, timeout=10)
stdin, stdout, stderr = ssh.exec_command(cmd)
sys.stdout.write(stdout.read().decode("utf-8", errors="replace"))
ssh.close()
except Exception as e:
print(f"SSH_ERROR: {e}", file=sys.stderr)
sys.exit(1)