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 (5 months ago) RSS 2.0 feedNot enough user ratingsTotal: 55 This week: 1All time: 10,565 This week: 65Up
Version License PHP version Categories
ifttt-web-monitor 1.0.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
Number 7
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: 29 packages by
Country: Taiwan Taiwan
Age: 30
All time rank: 22046 in Taiwan Taiwan
Week rank: 18 Up1 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 14x

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:55
This week:1
All time:10,565
This week:65Up
User Comments (1)