Skip to content

This application allows us to monitor a web server and send a notification if a server is down

Notifications You must be signed in to change notification settings

ismail1432/simple-health-check

Repository files navigation

Simple-health-check-monitoring 💡

Simple script that ping a web application and send a slack notification if there is a server error.

img.png


You can use the PHP script or the Bash script.

Requirements

  • PHP >= 7.1 and the cURL extension is available.
  • Bash and cURL command are available.

PHP

Edit the config.php.dist with your parameters

cp config.php.dist config.php

Run script (can be run with an interval via a CRON)

php path/to/directory/check_and_notif.php > /dev/null


Bash

Edit the config.sh.dist with your parameters

Run script (can be run with an interval via a CRON)

bash path/to/directory/check_and_notif.sh > /dev/null

Urls

Slack

See slack documentation

Discord

You must create a webhook on the channel of your choice. You must have the rights on the Discord server for this.

img.png

Results

Discord

  • with PHP : img.png

  • with Bash : img.png

About

This application allows us to monitor a web server and send a notification if a server is down

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published