PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   IFTTT PHP Server Monitor   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: IFTTT PHP Server Monitor
Check if a server is up and notify a IFTTT service
Author: By
Last change:
Date: 7 months ago
Size: 719 bytes
 

Contents

Class file image Download

ifttt-web-monitor

IFTTT Web Monitor Architecture

Usage

  • Ensure that PHP is installed and the PHP cURL extension already has been enabled.
  • Or using the Python 3 program and ensure python3 is available on targted machine.
  • Clone the repository with the `git` command.
  • Create the `settings.txt` file and its format can be referenced by `settings.txt.example` file.
  • Set the Cronjob with the `crontab` command and run `monitor.php` program every 5 minutes.

Cronjob setting

/5  * cd /root/ifttt-web-monitor && export TZ=Asia/Taipei && php monitor.php

/5  * cd /root/ifttt-web-monitor && export TZ=Asia/Taipei && python3 monitor.py