Monitoring script with embedded notification system
Find a file
2021-01-08 15:45:55 +01:00
sql First commit 2021-01-08 15:28:52 +01:00
web First commit 2021-01-08 15:28:52 +01:00
.env.example First commit 2021-01-08 15:28:52 +01:00
.gitignore First commit 2021-01-08 15:28:52 +01:00
LICENSE First commit 2021-01-08 15:28:52 +01:00
monitolite.pl First commit 2021-01-08 15:28:52 +01:00
README.md Update README.md 2021-01-08 15:45:55 +01:00

MONITOLITE

MonitoLite is a quite old project I recently found into my archives. I developed this script years ago. I figured it could be useful for others so here we are.

What it does

MonitoLite is a very simple monitoring tool developed in Perl. It supports :

  • ping monitoring
  • http monitoring

It uses a SQL backend for handling the tasks and the status of the tasks. Tested on MySQL only.

It comes with a very straightforward dashboard written in PHP.

I rewrote a couple of things today to make sure the script still works.

Requirements

  • Perl
  • a MTA
  • PHP (with PDO)
  • a Database server (MySQL, other?)
  • Access to CRON tasks

Installation

  • clone this repo
  • install Perl dependencies
  • install PHP composer dependencies: cd ./web && composer install
  • create a Database and import the schema from sql/create.sql
  • add tasks and contacts into the database (no backend yet)
  • run the script: perl monitolite.pl
  • check the web dashboard for results.
  • when everything works, you may create a CRON * * * * * cd <change/this/to/the/correct/path> && /usr/bin/perl monitolite.pl > /dev/null

MORE INFORMATION COMING SOON.