PHP Classes

IFTTT PHP Server Monitor: Check if a server is up and notify a IFTTT service

Recommend this page to a friend!
  Info   View files Documentation   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2023-12-20 (17 days ago) RSS 2.0 feedNot enough user ratingsTotal: 41 This week: 4All time: 10,758 This week: 18Up
Version License PHP version Categories
ifttt-web-monitor 1.0MIT/X Consortium ...5Networking, PHP 5, System information, W..., A..., G...
Description 

Author

This package can check if a server is up using an IFTTT service.

It provides a script that can read a configuration file to retrieve the URL of a site hosted in a server to monitor and the URL of an IFTTT service to access.

The script can send an HTTP request to check if the site's server to monitor is responding correctly.

Then, it accesses the IFTTT service to notify the up or down status of the site's server that is monitoring.

Innovation Award
PHP Programming Innovation award nominee
December 2023
Nominee
Vote
Once a site is live, it is essential to monitor the status of the site to ensure it continues to serve its audience as expected, or it is necessary to address issues that may arise and make the site stop working.

Issues that may sometimes happen may be related to security compromises or slowness.

PHP can check if a remote site works well by sending an HTTP request to check the server response.

This package provides a script that can monitor the status of a site server. The hand can notify interested system administrators using the IFTTT service when there is an issue.

This way, system administrators can automate actions to handle site server status changes, such as sending emails or recording events of server status in a database.

Manuel Lemos
Picture of Chun-Sheng, Li
  Performance   Level  
Name: Chun-Sheng, Li <contact>
Classes: 27 packages by
Country: Taiwan Taiwan
Innovation award
Innovation award
Nominee: 13x

Winner: 1x

Documentation

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

  Files folder image Files  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file monitor.php Aux. Auxiliary script
Accessible without login Plain text file monitor.py Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file settings.txt.example Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:41
This week:4
All time:10,758
This week:18Up
User Comments (1)