PHPServerMonitor is a script that checks whether your websites and servers are up and running. It comes with a web based user interface where you can manage your services and websites, and you can manage users for each server with a mobile number and email address.
https://github.com/phpservermon/phpservermon
First create a local file named config.php
and chown it to www-data chown 33:33 config.php
docker-compose up -d
Default: 5 minutes and 10 seconds
Edit file crontab
:
*/5 * * * * /usr/local/bin/php /var/www/html/cron/status.cron.php --timeout=310
http://docs.phpservermonitor.org/en/latest/install.html#setting-up-a-cronjob
If you used my docker-compose.yml file you have to :
- Go on phpmyadmin : http://ip_of_your_server:81 (If you don't want to use phpmyadmin for security reasons you can just delete the container in my docker-compose.yml file and create your database with the command line from the container MySQL.)
- Create a database : monitor (you can use another name)
- Go on PhpServerMonitor : http://ip_of_your_server
- Database Host: mysql_container_name
- Database Name: monitor
- Database User: root
- Data Password: your_password
- Table Previx: psm_