(imported comment written by kapax00)
MetalMan,
the problem is that both console and WebReports are using “session relevance”, that is evaluated based on the IEM database content, while the agent properties are retrieved with agent’s relevance, that is evaluated inspecting data/information local to the endpoint(s).
You would have to “calculate” the number of reporting endpoints on all the relays with some mechanisms. While this may be possible by extracting some information from the relay files, the possibility to have inconsistent results is depending on the stability of your network topology (for instance an endpoint may be “moving” from one relay to another… and you may count it twice on different relays depending on the timing).
The key file to obtain the information about reporting endpoints on a relay would be the file:
\ClientRegisterData\registrationlist.db
In version 8.x and previous this file was a flat text file, but since version 9.x it has been changed into a sqlite db file.
In principle you could have a fixlet to periodically run a sql query to output the count of “currently” registered/active endpoints of the relay on a file and read it with the standard agent’s relevance.
I’m not sure what is the format of the timestamp used in the registration list and what filtering would be really meaningful.
I hope this helps…