Detect offline workers of a specific HiveOS farm and notify by mail which one is down.
- Download this repository
git clone https://github.com/Tibelian/HiveOS-NotifyOfflineWorkers.git
- Use the dependency manager composer to install PHPMailer
composer install
- Edit the /include/config.json file to insert the "Generated Personal API Token" from HiveOS and your Farm ID
- Edit the /include/mailer.json file to configure your outgoing mail
- Create CRON Job to run the index.php file each X minutes/hours/days... For example: cron style to execute the script each 3 minutes
*/3 * * * *