feat(monitor): store nginx telemetry for generic clients

- accept nginx installation status and sites-enabled list
- persist nginx fields in server state
- expose nginx data in monitor overview/admin views
- auto-migrate new server_states columns on startup
This commit is contained in:
zhi
2026-03-20 10:03:56 +00:00
parent d67f676006
commit 14dcda3cdc
4 changed files with 18 additions and 0 deletions

View File

@@ -52,6 +52,8 @@ class ServerState(Base):
openclaw_version = Column(String(64), nullable=True)
plugin_version = Column(String(64), nullable=True)
agents_json = Column(Text, nullable=True) # json list
nginx_installed = Column(Boolean, nullable=True)
nginx_sites_json = Column(Text, nullable=True) # json list
cpu_pct = Column(Float, nullable=True)
mem_pct = Column(Float, nullable=True)
disk_pct = Column(Float, nullable=True)