Skip to content
This repository was archived by the owner on Feb 14, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pagerduty-resolve
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@
#
# Copyright (c) 2012 Cold Brew Labs, Inc. See LICENSE for details.

# Uncomment and enter your service key here.
# Uncomment and enter your service key here or add it to /etc/pagerduty/pagerduty.conf.
# PAGERDUTY_SERVICE_KEY="1234567890abcdef1234567890abcdef"

CONFIG_FILE=/etc/pagerduty/pagerduty.conf

if [ -s $CONFIG_FILE ]; then
. /etc/pagerduty/pagerduty.conf
fi

if [ -z "$1" ]; then
echo "Usage: $0 <event>"
exit 1
Expand Down
8 changes: 7 additions & 1 deletion pagerduty-trigger
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@
#
# Copyright (c) 2012 Cold Brew Labs, Inc. See LICENSE for details.
#
# Uncomment and enter your service key here.
# Uncomment and enter your service key here or add it to /etc/pagerduty/pagerduty.conf.
# PAGERDUTY_SERVICE_KEY="1234567890abcdef1234567890abcdef"

CONFIG_FILE=/etc/pagerduty/pagerduty.conf

if [ -s $CONFIG_FILE ]; then
. /etc/pagerduty/pagerduty.conf
fi

if [ -z "$1" ]; then
echo "Usage: $0 <event>"
exit 1
Expand Down