Skip to content

Auto-reminder of your (and your teammates) on-call duty.

Notifications You must be signed in to change notification settings

gagaudre/duty-minder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

duty_minder -- Phone_Agent

Description

Queries PagerDuty every now and then and en/disable the appropriate support phone extension according to the PagerDuty schedule.

Installation

Install all files in the same directory ($INST_DIR).

Configuration

Tokens & Support team phone numbers

Update the config file with your information.
When adding a new user, make sure the call forwarding feature is enabled on her/his deskphone or softphone to allow proper forwarding.

Usage

PROD Invocation

From cron:
*/5 * * * * phoneagent [ ! -x $INST_DIR/Phone_Agent.py ] && \
chmod 744 $INST_DIR/Phone_Agent.py; \
$INST_DIR/Phone_Agent.py $INST_DIR/Phone_Agent.conf now now >> \
$INST_DIR/Phone_Agent.log 2>&1

TEST Invocation from the command line

Note: By using the test option [-t], we will not call out.
This is better used with the '-d' [debug] option as well (as shown here):
$INST_DIR/Phone_Agent.py -dt $INST_DIR/Phone_Agent.conf '2018-09-14T09:00:00-08:00' 0

Running one instance

Also, make sure there is only one instance of Phone_Agent running.

About

Auto-reminder of your (and your teammates) on-call duty.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages