Skip to main content

Command suitable in use for Zenoss notification commands for sending events to hipchat.

Project description

Command suitable in use for Zenoss notification commands for sending events to hipchat.

Installation

Simply install using your preferred python package manager with either:

pip install zenoss-hipchat

for the latest release, or

pip install -e git+https://github.com/carsongee/zenoss-hipchat#egg=zenoss-hipchat

for the latest development version.

Configuration

In Zenoss go to Events -> Triggers and create a trigger with the rules for which you want to send events to hipchat. Of course you can use an existing trigger as well. For more detailed guide on triggers and notifications see the community documentation.

After you have a trigger you wish to use, go to notifications and create a new notification. Set the Id to something memorable like HipChatErrors or similar and choose Command as the action.

After creating the notification, edit it. On the Notification tab configure it as you see fit, but you are generally going to want to make sure it is enabled, and that you have added the Trigger you created earlier. The command does support clear messages, so go ahead and check that option if you like.

Now on the Content tab of the notification paste the following into the Command field:

zenoss-hipchat --device="${evt/device}" --info=${evt/summary} --component="${evt/component}" --severity=${evt/severity} --url="${urls/eventUrl}" --message=${evt/message}

And if you want to use the clear option, for the clear command:

zenoss-hipchat --device="${evt/device}" --info=${evt/summary} --component="${evt/component}" --severity=${evt/severity} --url="${urls/eventUrl}" --message=${evt/message} --cleared-by="${evt/clearid}" --clear

You also need to provide the room and API token using the Environment variables field with something like:

HIPCHAT_TOKEN=<APIv1 Token>;HIPCHAT_ROOM=<Room Name (or ID) to post to>

replacing the values with ones appropriate for you.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zenoss-hipchat-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file zenoss-hipchat-0.1.0.tar.gz.

File metadata

File hashes

Hashes for zenoss-hipchat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0d83c227bb278585f1d7f6540a2f9bb164e33012c53105198e218b9f0d53c687
MD5 b934977b4d3e4c49f899f578e56b61de
BLAKE2b-256 c07be790d4c98e943978844c52e337bd6fe3323192faed14a740d48426dad647

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page