Skip to content
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

Open
silverl opened this issue Aug 17, 2015 · 7 comments
Open

Is it possible to configure the message structure? #4

silverl opened this issue Aug 17, 2015 · 7 comments

Comments

@silverl
Copy link

silverl commented Aug 17, 2015

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.

@silverl
Copy link
Author

silverl commented Aug 18, 2015

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.

@ssplatt
Copy link
Owner

ssplatt commented Aug 19, 2015

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.

@silverl
Copy link
Author

silverl commented Aug 19, 2015

There are two slack_zenoss.py in the repo.

./slack_zenoss.py
./ZenPacks/community/Slack/lib/slack_zenoss.py

They appear to be different. Are neither used?

If I wanted to grab one and make it my own, which do you recommend?

@ssplatt
Copy link
Owner

ssplatt commented Aug 20, 2015

the one at root is the original. the other is a modification to work as a proper egg package.

@dstamen
Copy link

dstamen commented Sep 28, 2015

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.

@jregovic
Copy link

Yes, it really should have some more customization. My idea would be some kind of TALES evaluated fields to show allow a richer message.

@dstamen
Copy link

dstamen commented Sep 28, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants