impd - Intermapper Pagerduty notifier
This is a simple program for triggering, acknowledging and resolving incidents on pagerduty.
Installation
In order to compile from source, golang needs to be installed on the machine compiling the code (Go Installation Instructions). To ease installation of dependencies we recommend installing glide.
- Download package
go get github.com/blacksails/impd
- Install dependencies with glide
glide install
or just download the single dependencygo get github.com/blacksails/pdevent
- Compile package
go build
- Move binary to the Intermapper Tools folder. The tools folder can be found within the Intermapper settings folder. For more info about the location of the folder, see the intermapper docs.
- Ensure that the binary has the right permissions so that Intermapper can execute it.
Configuration
Add a new notifier with the Command Line type. Insert command with pagerduty service key into the command field.
impd -k "<PAGERDUTY_SERVICE_KEY>" ${MESSAGE}
Edit the message and add the following exact message.
-e '<Event>' -d '<Smart Name>: <Device Condition>' -i '<Device-IMID>'
- Configure the notifier for the probes that you want