Quantcast
Channel: Zenoss Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 853

Changes in API from Zenoss 3.x to 4.2.4

$
0
0

Good morning,

I've recently started at a company moving from Zenoss 3.x to the latest version, 4.2.4. One of the things I'm trying to get working involves creating events from our internal system using the api (basically running curl).

 

The old format basically is as follows with line-breaks for readability:

 

http://{our Zenoss site}/zport/dmd/ZenEventManager/manage_addEvent

?{device=___}

&{component=___}

&{eventkey=___}

&{summary=___}

&{message=___}

&{eventClass=___}

&{severity=____}

 

 

Unfortunately, this doesn't quite work for the newer API. I've been looking at the API docs for the versions to get ZEP's add_event method working through URLs, but I've been unsuccessful so far.

 

In the zenDMD, I've been able to add events with the following code and watch it pop up on the device's event page:

 

import zep

zep_facade=getFacade('zep')

zep_facade.create("EventSummary", "Severity # (not working)", "Device", "Component", "EventClass (not working)", "Something else (no idea)")

 

How do I format a string to create an event through the web API?


Viewing all articles
Browse latest Browse all 853

Trending Articles