{"repo":"alfiosalanitri/server-guardian","free":true,"listed":false,"github":"https://github.com/alfiosalanitri/server-guardian","clone":"git clone https://github.com/alfiosalanitri/server-guardian.git","description":"Bash script for server health monitoring with Telegram alerts on high CPU load, RAM usage, disk usage, or failed systemd services.","language":"Shell","stars":16,"topics":["bash","monitoring","telegram"],"license":"MIT","category":"analytics","readme_excerpt":"server-guardian A bash script that monitors server health and sends Telegram alerts when: - CPU load average exceeds the number of cores - RAM usage exceeds a configured threshold - A systemd service has failed - Disk usage exceeds a configured threshold --- Requirements - bash , curl , systemd - A Telegram bot token and chat ID (how to create a bot) --- Install 1. Download and extract the latest release The extracted folder must stay at this path after installation — the systemd units are symlinked directly from it. 2. Run the installer install.sh refuses to run without root — make install (without sudo ) stops immediately with an error. The installer is interactive and will ask you, one step at a time: - Telegram bot token and chat id (how to create a bot) - Minutes between repeated alerts - Whether to monitor CPU, RAM, systemd services and disk space, and their thresholds Your answers are written to .env ( chmod 600 , root-only). Re-running sudo make install later detects the existing .env and asks whether to reconfigure it, so upgrades don't require answering the questions again. Upgrading from an install that predates this file? If a .config from a previous version is found and no .env exists yet, the installer migrates it to .env automatically — no need to re-enter your Telegram credentials. Besides writing .env , the installer also: 1. Sets ownership ( root:root ) and file permissions 2. Generates systemd/guardian.service with the correct install path 3. Symlinks both ","default_branch":null,"files":null,"tree":[],"storefront":"/r/alfiosalanitri","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alfiosalanitri/server-guardian/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}