Skip to content

Instantly share code, notes, and snippets.

Created September 30, 2015 06:26
Show Gist options
  • Save anonymous/236adc00f0ba78f5138d to your computer and use it in GitHub Desktop.
Save anonymous/236adc00f0ba78f5138d to your computer and use it in GitHub Desktop.
the script to test aliveness called by gdnsd extmon plugin
#!/bin/bash
html=$(curl $1)
if [ "$html" = "okok" ]; then
exit 0
else
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment