PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-12-20 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 58 All time: 10,536 This week: 61Up
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: 37 packages by
Country: Taiwan Taiwan
Age: 31
All time rank: 21046 in Taiwan Taiwan
Week rank: 5 Up1 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 17x

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 (5)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:58
This week:0
All time:10,536
This week:61Up
User Comments (1)