Hero Image

Monitor website failure with curl

curl -sSf --max-time 120 'https://websitetomonitor.url' --compressed || echo "do something with alarm on failure"

-s means silent -S show error -f Fail silently (no output at all) on server errors --max-time maximum time allowed for request

Cronjob every 2 minutes

*/2 * * * * /usr/local/bin/check_website.sh

Other Related Posts:

Kubernetes setup on ubuntu 16.04

Master: Install dependencies

apt update && apt upgrade -y
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -

cat < /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF

apt-get update
apt install linux-image-extra-virtual c...

Read more

6th Mar 2019

OpenWhisk server

Configuring the OpenWhisk server

Manually setting up Openwhisk and CouchDB on a fresh Ubuntu 16.04 server.

Based on the OpenWhisk Ansible README, which at the time of writing is missing some key steps - hence this new guide.

  1. Dependencies
sudo apt-get update
sudo apt-get upgrade
sudo ap...

Read more

21st Jan 2019