Cyclenerd/static_status


🚦Bash script to generate a static status page.

https://cyclenerd.github.io/static_status_demo/

License: GPL-3.0

Language: Shell

Keywords: bash, bash-hacks, bash-script, simple, status, statuspage


status.sh

Build Status

Simple Bash script to generate a static status page. Displays status of websites, services (HTTP, SAP, MySQL...) and ping. Everything easy to customize. 🤓

Screenshot

Installation

Download status.sh and configuration file:

$ curl -f https://raw.githubusercontent.com/Cyclenerd/static_status/master/status.sh -o status.sh
$ curl -f https://raw.githubusercontent.com/Cyclenerd/static_status/master/status_hostname_list.txt -o status_hostname_list.txt

Customize the status.sh script and the services to be monitored:

$ vi status.sh
$ vi status_hostname_list.txt

Run:

$ bash status.sh

Usage

Usage: status.sh [OPTION]:
    OPTION is one of the following:
        silent   no output from faulty connections to stout (default: no)
        loud     output from successful and faulty connections to stout (default: no)
        help     displays help (this message)

Example:

$ bash status.sh loud

Execute a cron job every minute:

$ crontab -e

Add:

*/1 * * * * bash /path/to/status.sh silent >> /dev/null

Demo

https://cyclenerd.github.io/static_status_demo/

Screenshots

Screenshot Screenshot Screenshot Screenshot Screenshot

Requirements

Only bash, ping, curl and nc. In many *NIX distributions (Ubuntu, macOS) the commands are already included. If not, the missing packages can be installed quickly. On a debian-based system (Ubuntu), just run sudo apt-get install curl iputils-ping netcat-openbsd.

TODO

  • More and better documentation

Help is welcome 👍

License

GNU Public License version 3. Please feel free to fork and modify this on GitHub (https://github.com/Cyclenerd/static_shell).

Project Statistics

Sourcerank 7
Repository Size 55.7 KB
Stars 170
Forks 15
Watchers 5
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Nils

Interesting Forks See all

djdagovs/static_status
🚦Bash script to generate a static status page.
Shell - Published - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2017-01-03 21:19:41 UTC

Login to resync this repository