Liam Carey
2013-06-03 03:31:35 UTC
Liam Carey [http://community.zenoss.org/people/liam_94609] created the discussion
"events and event details via RESTful"
To view the discussion, visit: http://community.zenoss.org/message/73403#73403
--------------------------------------------------------------
Hello all -
I have an snmptrap coming in from CA/Autosys that has the same OID for multiple failed jobs.
The job ID that has failed is buried in the event detail.
I am trying to dig up the various distinct Jobs that have failed by querying the event tables via JSON API (query and queryArchive in zep.py it seems)
However, the event detail that is return only appears to be the most recent info from the last snmptrap received. Any thoughts on how i can retrieve all the event details for say a particular device or OID snmptrap that was received?
Does the question make sense as stated?
eg . from zep.py (but use detailFormat=True) :
def query(self, limit=0, start=0, sort='lastTime', dir='desc', params=None, exclusion_filter=None, keys=None,page=None, archive=False, uid=None, detailFormat=False):
Regards,
Liam Carey
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73403#73403]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"events and event details via RESTful"
To view the discussion, visit: http://community.zenoss.org/message/73403#73403
--------------------------------------------------------------
Hello all -
I have an snmptrap coming in from CA/Autosys that has the same OID for multiple failed jobs.
The job ID that has failed is buried in the event detail.
I am trying to dig up the various distinct Jobs that have failed by querying the event tables via JSON API (query and queryArchive in zep.py it seems)
However, the event detail that is return only appears to be the most recent info from the last snmptrap received. Any thoughts on how i can retrieve all the event details for say a particular device or OID snmptrap that was received?
Does the question make sense as stated?
eg . from zep.py (but use detailFormat=True) :
def query(self, limit=0, start=0, sort='lastTime', dir='desc', params=None, exclusion_filter=None, keys=None,page=None, archive=False, uid=None, detailFormat=False):
Regards,
Liam Carey
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73403#73403]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]