Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ismail1432/simple-health-check
This application allows us to monitor a web server and send a notification if a server is down
https://github.com/ismail1432/simple-health-check
Last synced: 3 months ago
JSON representation
This application allows us to monitor a web server and send a notification if a server is down
- Host: GitHub
- URL: https://github.com/ismail1432/simple-health-check
- Owner: ismail1432
- Created: 2020-12-24T11:01:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-05T16:48:10.000Z (over 2 years ago)
- Last Synced: 2024-07-27T21:50:40.191Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 160 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple-health-check-monitoring :bulb:
## Simple script that ping a web application and send a slack notification if there is a server error.

---
## 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```
---
### BashEdit 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](https://api.slack.com/messaging/sending)
### Discord
You must create a webhook on the channel of your choice.
You must have the rights on the Discord server for this.
## Results
### Discord
- with PHP :
- with Bash :
