Skip to content

Instantly share code, notes, and snippets.

Avatar

Vincent Barrier vbarrier

  • Kagilum SAS
  • Toulouse
View GitHub Profile
@vbarrier
vbarrier / UpOrDown.sh
Created Oct 13, 2017 — forked from davetromp/UpOrDown.sh
Bash script that checks if a site is up or down and emails notifications
View UpOrDown.sh
#!/bin/bash
################################################################################
# This script will check to see if a website is up/down by pinging the url
# If there is no response an email wil be send via an external smtp mail server
# If the site status is down an email will be send when the site is up again
# set your check interval here :-) #############################################
interval=3600 # hour
View data.json
{
"name": "Root",
"children": [
{
"name": "Branch 1",
"children": [
{"name": "Leaf 3"},
{"name": "Leaf 4"}
]
},