![]() |
![]() |
Subject: | evid and uuid in zenoss json_api are different in add_event and close methods |
Author: | [Not Specified] |
Posted: | 2015-04-11 09:04 |
I finally tracked down the problem to this:
https://support.zenoss.com/hc/en-us/articles/202384859-How-To-Create-And...
when i send event, i get this back:
{"uuid": "9444b9b5-c849-4e3c-81e2-ae716b6ce05e", "action": "EventsRouter", "result": {"msg": "Created event", "success": true}, "tid": 1, "type": "rpc", "method": "add_event"}
however, when i tried to close the event using the uuid as evid, it failed.
i checked the zenoss console, i saw that evid is completely different:
it says: evid 0242ac11-0027-9363-11e4-e0511
when i used this evid i found in zenoss event console, the json_api call in the doc worked.
i wonder how i can have the add_event method return the evid, or if there is a way to convert the returned uuid into evid.
i noticed that if i repeat the add_event call, the uuid changes, but due to dedupe, the evid stays the same, which makes sense.
I found an old thread that is exactly the same, but it is not answered there either.
http://www.zenoss.org/forum/76
thanks for your help!
< |
Previous Rhybudd |
Next could not find the event created through zenoss json api (zenoss 5) |
> |