Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (44 sloc) 2.19 KB
################################################################################
#### Configuration Section
################################################################################
# Title for the status page
MY_STATUS_TITLE="msfjarvis.dev Status Page"
# Link for the homepage button
MY_HOMEPAGE_URL="https://msfjarvis.dev"
# Text for the homepage button
MY_HOMEPAGE_TITLE="Homepage"
# Shortcut to place the configuration file in a folder.
# Save it without / at the end.
MY_STATUS_CONFIG_DIR="$(pwd)"
# List with the configuration. What do we want to monitor?
MY_HOSTNAME_FILE="$MY_STATUS_CONFIG_DIR/status_hostname_list.txt"
# Where should the HTML status page be stored?
MY_STATUS_HTML="$(pwd)/status/index.html"
# Where should the JSON status page be stored? Set to "" to disable JSON output
MY_STATUS_JSON=""
# Text file in which you can place a status message.
# If the file exists and has a content, all errors on the status page are overwritten.
MY_MAINTENANCE_TEXT_FILE=""
# Duration we wait for response (nc, curl and traceroute).
MY_TIMEOUT="2"
# Duration we wait for response (only ping).
MY_PING_TIMEOUT="4"
MY_PING_COUNT="2"
# Route to host
MY_TRACEROUTE_HOST="1.1.1.1" # Cloudflare DNS
# Sets the number of probe packets per hop
MY_TRACEROUTE_NQUERIES="1"
# Location for the status files. Please do not edit created files.
MY_HOSTNAME_STATUS_OK="$MY_STATUS_CONFIG_DIR/status_hostname_ok.txt"
MY_HOSTNAME_STATUS_DOWN="$MY_STATUS_CONFIG_DIR/status_hostname_down.txt"
MY_HOSTNAME_STATUS_LASTRUN="$MY_STATUS_CONFIG_DIR/status_hostname_last.txt"
MY_HOSTNAME_STATUS_HISTORY="$MY_STATUS_CONFIG_DIR/status_hostname_history.txt"
MY_HOSTNAME_STATUS_HISTORY_TEMP_SORT="/tmp/status_hostname_history_sort.txt"
# CSS Stylesheet for the status page
MY_STATUS_STYLESHEET="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css"
# A footer
MY_STATUS_FOOTER='Powered by <a href="https://github.com/Cyclenerd/static_status">static_status</a>'
# Lock file to prevent duplicate execution.
# If this file exists, status.sh script is terminated.
# If something has gone wrong and the file has not been deleted automatically, you can delete it.
MY_STATUS_LOCKFILE="/tmp/STATUS_SH_IS_RUNNING.lock"
You can’t perform that action at this time.