Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

LTstats - lightweight open-source resource monitoring system

lukast__lukast__ Member, Megathread Squad

I wrote a lightweight resource monitoring system in C and thought it might interest some here.

For screenshots and more details you can take a look at the website or the GitHub repo (both basically have the same content), and there's also a demo with most of my servers.
This has been in development for the last 2-3 months and so far seems to work rather well.

The main features:

  • Agent-server architecture, no special permissions or ports required
  • Low resource usage (the agent uses around 100-300 KB RAM)
  • Web interface with status pages, charts with historical data and an admin interface
  • Notification support, both up/down notifications and resource thresholds
  • Saving the data locally in memory in case the server is unreachable
  • Secure: both the server and the agent run as unprivileged users and all install scripts verify all checksums before using binaries, and the install commands also verify the downloaded scripts before using them
  • Rather easy setup
  • Simple, less than 3k LoC of C code (backend) and less than 2k LoC of JavaScript (frontend), the frontend can also be modified easily

The main caveats/suboptimal things:

  • Currently only x86_64 is supported, ARM support is planned
  • Only Linux systems are supported (for now)
  • Possibilities for automated deployment of agents across a large fleet are limited
  • Single-user (the admin user)
  • (TLS) reverse proxy is necessary
  • Limited debugging possibilities
  • Not as much is monitored compared to other solutions, and, for example, if multiple partitions are monitored, one can't view statistics for each one individually because this would require variable-length datapoints

This is not a replacement for uptime monitoring systems because it doesn't actively monitor the servers, and, while you can configure it to send alerts/notifications when a server is down, this naturally is a few minutes later than it would be with systems that send a notification when they can't reach a server, and this also only works when the main server is running as it isn't distributed.

If you have any questions or suggestions, let me know.

«1

Comments

Sign In or Register to comment.