-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to configure the message structure? #4
Comments
I took a look at the source code of slack_zenoss.py. It appears that while the script supports passing in the Component of the event, it does nothing with the value whatsoever. |
basically, you'll need to modify slack_zenoss.py to fit whatever output you want. It's not the most ideal situation but this is basically a hack to get any data in the first place. Also, the script only covers a small portion of the available expressions, so you can add more by hand if you want. For a full list of expressions, see http://community.zenoss.org/docs/DOC-12029 also, slack_zenoss.py isn't run by the .egg, it's been saved for historical reasons more or less. |
There are two slack_zenoss.py in the repo.
They appear to be different. Are neither used? If I wanted to grab one and make it my own, which do you recommend? |
the one at root is the original. the other is a modification to work as a proper egg package. |
Is there a way to add some custom fields into the notification? we have a SaaS environment, so we dont have the ability to easily edit the zenpack and make changes. |
Yes, it really should have some more customization. My idea would be some kind of TALES evaluated fields to show allow a richer message. |
agree. it works good but would love to see component listed, we monitor alot of vsphere and switches, so most of the data we need is at the component level on alerts not just on the device. |
I've been using just the slack_zenoss.py as a command notifier for months, and liked the configurability of it. I switched to the ZenPack/egg last week. There doesn't seem to be any way to configure which message elements are included, such as Component.
Am I just missing it? I'd like to have some fields to configure which of the available message components are passed along to Slack.
Thanks.
The text was updated successfully, but these errors were encountered: