Monitoring GenieACS?
Dan Morphis
dan at milkcarton.com
Tue Feb 24 13:51:04 EST 2015
Hi Manny,
If you want to get a count of devices that have last responded within a
period of time you can use the following query
#/devices/?query={"_lastInform":{"$lt":"2015-02-24 09:32:34
-0900","$gt":"2015-02-23 09:42:34 -0900"}}
curl -i '
http://acs_ip:7557/devices/?query=%7B%22_lastInform%22%3A%7B%22%24lt%22%3A%222015-02-24+09%3A32%3A34+-0900%22%2C%22%24gt%22%3A%222015-02-23+09%3A42%3A34+-0900%22%7D%7D'
-X HEAD
The number of devices that have responded within that time period will be
returned in the 'total' HTTP attribute.
This is how the GUI builds the devices graph.
---------------
Output from a packet capture
HEAD
/devices/?query=%7B%22_lastInform%22%3A%7B%22%24gt%22%3A%222015-02-24+09%3A32%3A34+-0900%22%7D%7D
HTTP/1.1
Accept: */*
User-Agent: Ruby
Connection: close
Host: 192.168.7.80:7557
HTTP/1.1 200 OK
Content-Type: application/json
*total: 1*
Date: Tue, 24 Feb 2015 18:42:34 GMT
Connection: close
On Tue, Feb 17, 2015 at 8:30 AM, Manny Veloso <manny.veloso at smartrg.com>
wrote:
> Hi Everyone,
>
> How are you monitoring the ACS? Are there endpoints to see the session
> count/etc? Are you just doing up/down monitoring on the various processes
> and watching mongo/redis?
> --
> Manny Veloso
> Sr. Solutions Engineer
> Smartrg.com
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150224/3756356a/attachment.html>
More information about the Users
mailing list