Created
January 28, 2020 02:19
-
-
Save dmerand/236fd3f66ebc751dbf0e9c3fb56350db to your computer and use it in GitHub Desktop.
Sample DNS-Monitor CRON Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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="[email protected]" | |
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