LTstats - lightweight open-source resource monitoring system
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.
LTstats resource monitoring system | Recommended providers: Layer7, dataforest (Avoro/PHP-Friends), @host_c
Comments
Way to go bruddah 🙏
Congrats @lukast__ , this looks very good.
Is it written with majority of AI help?
Anything I have tried to make with AI almost always needed a rewrite.
youtube.com/watch?v=k1BneeJTDcU
Not a huge surprise. We've said the same thing since the assembly language coders first bitched about compilers.
Honestly, we need to stop calling this "AI". It’s not intelligence, it’s pattern recognition at scale, powered by massive datasets and clever prediction engines. The term artificial intelligence used to mean something, now it’s been hijacked by marketing teams chasing VC money. What we’re really dealing with is engineered inference, not thinking machines. Calling it AI just muddies the water for everyone who actually understands systems.
Free Hosting at YetiNode | MicroNode| Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop?
Well, our brain is pattern recognition engines refined by nature. Yet, it is finite and limited.
The problem is, that 'intelligence' has been defined in many ways (https://en.wikipedia.org/wiki/Intelligence). One can call 'intelligent' thing or biological entity when self-awareness tests passed, others may see 'intelligence' in ability to consume information and provide reason.
I think it is matter of perspective. For me, cgpt and others are artificial intelligence, because a ton of 'if then else ...' may actually BE intelligent if enough lines
, just as humans.
Can it think for itself is all I will ask period.
Free Hosting at YetiNode | MicroNode| Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop?
Without triggering thought process externally? No. For now. And I fear the day it will. Let it be in sensory deprivation tank.
I saw some video where the guy made an AI talk with itself and it went insane and started spitting out training data and whatnot. They are really not good thinkers and the most they will do is probably overheat themselves to death.
youtube.com/watch?v=k1BneeJTDcU