Suggestion to monitor server CPU, Memory, disks

Hi masters,

I am looking for solutions to monitor CPU, memory and disk consumption of servers to notify me by email message and telegram, what you guys suggest that can be integrated to n8n?

I am trying to avoid super huge services like nagius or grafana + prometeus + node export, I just want an alarm system that can check and notify me each 5 or 10 minutes, please, any recommendation?

Thanks a lot and regards

3 Likes

Did you try writing a bash script with N8N webhook call. Schedule the bash script using cron jobs.

I have exactly the same problem! I want to monitor my (remote) servers using n8n, with the most minimal footprint (mentally and hardware-wise) possible.
There are plenty of Github repos which allow to collect server info:

but, surprisingly, I cannot find a simple one which exposes server data in JSON, via URL endpoint (there are some half baked scripts like this one: collects OS stats on Linux · GitHub ).
The most relevant is probably Prometheus to JSON converter (it’s insane that Prometheus itself dropped JSON output support some time ago!) GitHub - prometheus/prom2json: A tool to scrape a Prometheus client and dump the result as JSON.

Or Prometheus node exporter AND server (which has an API with JSON output)

This is still not exactly minimal as I would like it to be – and takes time to set up.

So, here is the most minimal approach I could come up with: netcat web server + some bash magic + systemd to re-launch the script after machine reboot.
(I will attach the link to github repo once I publish this)

1 Like

Here is the github repo:

Essentially it’s just a single bash script which runs HTTP web server with single / endpoint, via netcat.

see server.sh for the implementation.

1 Like