zix99/sshsysmon — reverse-engineered prompt

Reverse engineered prompt

Build me a small Python command line app for simple server monitoring over SSH. I want to point it at one or more Linux machines with a YAML config, connect either locally or over SSH, read common system health info like memory, cpu load, disk space, and swap from proc or simple shell commands, and then do two things.

First, show a human readable summary of all servers, with an optional HTML view. Second, run a check mode that evaluates alert rules from the config and sends notifications through stdout, email, a webhook, or a local command when something is wrong.

Please keep it lightweight and self hosted, with no agents installed on the servers, just SSH access, ideally using keys. Make the config flexible enough to define servers, monitors, alarms, and notification channels, with a few good examples included. It should be easy to run directly or in Docker, and suitable for calling from cron every few hours. Look up current docs online if you need to.

Want more depth? Deep Reverse