A Pingdom to Google Chat Relay Bot using Webhooks.
- Set up a "webhook"-bot in your Google Chat room.
- Copy app.config.template to app.config
- Modify the values to your liking, and be sure to set a secure token.
- Run
npm install
- Run the node app with:
./index.js
.
Set the pingdom webhook to YOURDOMAIN.com/pingl?token=TOKEN
.
The bot can echo anything you say by doing a post call to /echo
. The body should be in the following format:
{ text: "Hello world!" }
Custom messages can be set up in app.config.
Supported replacement tokens are:
Token - Example
{name}
- My website{hostname}
- www.example.com{type}
- HTTP{state}
- DOWN