<div dir="ltr">Hi Manny,<div>  If you want to get a count of devices that have last responded within a period of time you can use the following query</div><div><br></div><div>#/devices/?query={"_lastInform":{"$lt":"2015-02-24 09:32:34 -0900","$gt":"2015-02-23 09:42:34 -0900"}}</div><div><br></div><div>curl -i '<a href="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">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</a>' -X HEAD<br></div><div><br></div><div>The number of devices that have responded within that time period will be returned in the 'total' HTTP attribute.</div><div><br></div><div>This is how the GUI builds the devices graph.</div><div><br></div><div><br></div><div>---------------</div><div>Output from a packet capture</div><div><div><font face="monospace, monospace">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</font></div><div><font face="monospace, monospace">Accept: */*</font></div><div><font face="monospace, monospace">User-Agent: Ruby</font></div><div><font face="monospace, monospace">Connection: close</font></div><div><font face="monospace, monospace">Host: <a href="http://192.168.7.80:7557">192.168.7.80:7557</a></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">HTTP/1.1 200 OK</font></div><div><font face="monospace, monospace">Content-Type: application/json</font></div><div><font face="monospace, monospace"><b>total: 1</b></font></div><div><font face="monospace, monospace">Date: Tue, 24 Feb 2015 18:42:34 GMT</font></div><div><font face="monospace, monospace">Connection: close</font></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 17, 2015 at 8:30 AM, Manny Veloso <span dir="ltr"><<a href="mailto:manny.veloso@smartrg.com" target="_blank">manny.veloso@smartrg.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>
<div>
<div>Hi Everyone,</div>
<div><br>
</div>
<div>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?</div><span class="HOEnZb"><font color="#888888">
<div>
<div>
<div>-- </div>
<div>Manny Veloso</div>
</div>
<div>Sr. Solutions Engineer</div>
<div>Smartrg.com</div>
</div>
</font></span></div>
</div>
</div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>