Skip to content

Instantly share code, notes, and snippets.

@dmerand
Created January 28, 2020 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmerand/236fd3f66ebc751dbf0e9c3fb56350db to your computer and use it in GitHub Desktop.
Save dmerand/236fd3f66ebc751dbf0e9c3fb56350db to your computer and use it in GitHub Desktop.
Sample DNS-Monitor CRON Script
#!/usr/bin/env sh
HERE="/Users/explo/cron/dns-monitor-data"
GCHAT_URL='https://gchat_url_goes_here.com'
MANDRILL_KEY='paste_ye_olde_key_here'
MANDRILL_EMAIL="person@example.com"
cd "${HERE}" && /Users/explo/.rbenv/shims/dns-monitor --check \
--domains_path "${HERE}/hosts.txt" \
--db_path "${HERE}/dns-monitor.sqlite3" \
--gchat "${GCHAT_URL}" \
--mandrill_key "${MANDRILL_KEY}" --mandrill_email "${MANDRILL_EMAIL}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment