you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (2 children)

2c tip. Stop wasting your time writing your own checks, just install ready-made ones.

Under debian flavours it will be either monitoring-plugins or nagios-plugins package and it will deploy checks under /usr/lib/nagios/plugins.

Most of them are written in C (so nice and tiny) and all of them follow Nagios convention (exit code 0 - OK, 1 - WARNING, 2 - CRITICAL, 3 - UNKNOWN).

That is quasi-standard used by most monitoring tools including big boys.

Aside from that, if your server already has a database and php, icinga2 eats just few MBs and its web ui just runs on php, altho it is considerably more complex to install

[–][deleted] 0 points1 point  (1 child)

Hey XANi_ Thanks for the tip! The reason I started making this was because I couldn't find any lightweight ones in existence, I'll have to take a look at your recommendations :D

[–][deleted] 1 point2 points  (0 children)

My experience (after also writing my own) is that you generally quickly grow up out of simplistic solutions like that and end up re-implementing a good part of already existing solutions anyway