![]() |
![]() |
Subject: | Weekly event emails |
Author: | Benjamin Dronen |
Posted: | 2015-02-11 14:47 |
Is it possible to group together all open events from a given device class into one email that is sent out once a week If so, how do I go about it
Subject: | Sounds like a job for the |
Author: | [Not Specified] |
Posted: | 2015-02-12 10:01 |
Sounds like a job for the evconsole_router API. If you get the zenoss_api shell wrapper you can see the events like this:
zenoss_api "evconsole_router" "EventsRouter" query '{"uid":"/zport/dmd/Devices/Server/Windows","limit":1000}'
That returns JSON. If you're a Perl guy like me, you can then use the JSON::Parse module to put the response into a hash. Then loop through and print out the info the way you like it.
Hope this helps..
< |
Previous Edit user groups via zendmd? |
Next How do we configure Zenoss to display table level MIB attributes ? |
> |