https://github.com/angristan/server-status
A little Bash script that checks if a server is up or down with ICMP, and sends a mail with status update.
https://github.com/angristan/server-status
Last synced: 6 months ago
JSON representation
A little Bash script that checks if a server is up or down with ICMP, and sends a mail with status update.
- Host: GitHub
- URL: https://github.com/angristan/server-status
- Owner: angristan
- License: unlicense
- Created: 2015-07-14T14:43:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-17T22:06:52.000Z (almost 9 years ago)
- Last Synced: 2025-04-02T13:12:45.720Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 12
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# server-status
A little Bash script that checks if a server is UP or DOWN, and sends a mail with status update.## Installation
### Dependencies
`fping` to check if the server answser to the ping. Available on Debian, Arch and Gentoo repositories, or on [fping.org](http://fping.org/)
`sendmail` or any mail sender. But you *must* make sure you can send mail with the `mail` command, or the script will be useless.
`cron` to run the script automatically.
### Download the script
```
wget https://raw.githubusercontent.com/Angristan/server-status/master/check.sh
chmod +x check.sh
```## Usage
To run the script : `./check.sh` or `bash check.sh`
To run the script automatically :
`crontab -e`
Add:
`*/1 * * * * bash /path/to/check.sh`
This will run the script every minute.
## License
[The unlicense](https://github.com/Angristan/server-status/blob/master/LICENSE) : do whatever you want with the code.