Skip to content

Simple script to monitor if servers are responding (status 200) or not

License

Notifications You must be signed in to change notification settings

zofuthan/monitor-http-server

 
 

Repository files navigation

monitor-http-server

Simple script to monitor if servers are responding (status 200) or not.

Screenshot

Sample output

Dependencies

You need to have a mail server configured to be able to send notification.

  • mail command to send notification.
  • stylerc: bash output style ;
  • toolboxrc: some stupid utilities ;

Install

The project use two submodules, the instructions below cover an out of the box installation process:

git clone git@github.com:edouard-lopez/monitor-http-server.git
cd monitor-http-server
git submodule init && git submodule update # install the submodules

Usage

First you need to edit the file monitor-list.txt and add some servers URLs (using their FQDN).

Note that lines starting with a # (dash) are ignored.

# ignored hosts
# http://wont-be.tested.com/
# test
http://my.website.com/

Then you are good to go and run your first test

bash ./monitor-servers.sh me@host.com ./monitor-list-default.txt

About

Simple script to monitor if servers are responding (status 200) or not

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%