Skip to content

Commit

Permalink
Merge pull request #2 from dobs/use-webhook-ips-endpoint
Browse files Browse the repository at this point in the history
Updating webhook IP check to leverage new URL.
  • Loading branch information
mdcollins05 authored Oct 25, 2019
2 parents fd52138 + 8c586ab commit 08fad63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion check_webhooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ -f "webhooks_result.txt" ]; then
mv webhooks_result.txt webhooks_result.txt.old
fi

dig +short webhooks.pagerduty.com | sort > webhooks_result.txt
curl -s https://app.pagerduty.com/webhook_ips | tr -d \[\]\" | tr , '\n' | sort > webhooks_result.txt

if [ -f "webhooks_result.txt.old" ]; then
DIFF=$(diff -q 'webhooks_result.txt.old' 'webhooks_result.txt' > /dev/null)
Expand Down
2 changes: 1 addition & 1 deletion check_webhooks_and_alert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if [ -f "webhooks_result.txt" ]; then
mv webhooks_result.txt webhooks_result.txt.old
fi

dig +short webhooks.pagerduty.com | sort > webhooks_result.txt
curl -s https://app.pagerduty.com/webhook_ips | tr -d \[\]\" | tr , '\n' | sort > webhooks_result.txt

if [ -f "webhooks_result.txt.old" ]; then
DIFF=$(diff -q 'webhooks_result.txt.old' 'webhooks_result.txt' > /dev/null)
Expand Down

0 comments on commit 08fad63

Please sign in to comment.