Discussion:
getPingStatus via JSON API?
cgriebel
2012-01-26 18:33:13 UTC
Permalink
cgriebel [http://community.zenoss.org/people/cgriebel] created the discussion

"getPingStatus via JSON API?"

To view the discussion, visit: http://community.zenoss.org/message/63947#63947

--------------------------------------------------------------
Is it possible to get the ping status (preferably the number of seconds a device has not been responding to ping) via the JSON API?  DeviceRouter::getInfo(uid) doesn't seem to return that.  Any thoughts on how I could get this bit of info via API?

Chock
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63947#63947]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
dpetzel
2012-01-26 21:02:09 UTC
Permalink
dpetzel [http://community.zenoss.org/people/dpetzel] created the discussion

"Re: getPingStatus via JSON API?"

To view the discussion, visit: http://community.zenoss.org/message/63948#63948

--------------------------------------------------------------
getInfo seems to do the trick for me, although I only see up/down in the form of the 'status' field. True when up, False when down. I'm exploring if the time down is accesible via the events
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63948#63948]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
cgriebel
2012-01-27 12:52:46 UTC
Permalink
cgriebel [http://community.zenoss.org/people/cgriebel] created the discussion

"Re: getPingStatus via JSON API?"

To view the discussion, visit: http://community.zenoss.org/message/63975#63975

--------------------------------------------------------------
Thanks for pointing out the status field.  It appears that it's set to False if device is down. 

I was also wondering if down time could be gleaned from /Status/Ping events.  Maybe that's the way I'll have to go with this.  Seems kludgy to scour events for that kind of info. but it might just work.

Chock
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63975#63975]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...