Skip to content

A little Bash script that checks if a server is UP or DOWN, and sends a mail with status update.

License

Notifications You must be signed in to change notification settings

nazim/server-status

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

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 : do whatever you want with the code.

About

A little Bash script that checks if a server is UP or DOWN, and sends a mail with status update.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%