Sinefa API: Supercharge your PRTG dashboards with L7 & 1 second traffic resolution
We’ll also be developing and maintaining client libraries making integrating with Sinefa even easier, look out for a blog post on these when they’re available.
Top Downloaders in PRTG
This blog post showcases a managed service provider that uses Sinefa’s API to extract the top downloading users in real-time using our Live API. The results are displayed in PRTG Network Monitor.
This integration was written in C# and is called periodically by a PRTG monitor sensor. These are the steps taken during each call:
- Query the Sinefa Live API with RestSharp.
- Extract the top hosts with Newtonsoft Json/LINQ.
- Resolve the Sinefa results to a hostname
- If a username can be resolved from the host, use Active Directory to retrieve their first and last names
- Construct the XML output to be consumed by PRTG.
The screenshot below shows how this can be setup as a sensor in PRTG to show who is the top downloader (and how much bandwidth they are consuming at that point in time).
This provides a really quick way of figuring out if a single user (or device) is hogging the Internet bandwidth.
The result can also be displayed as a graph over time. The screenshot below shows each of the samples collected over time. Whilst it doesn’t show the total link throughput, it tells you at what times individuals were consuming large amounts of bandwidth.
This tool is available on GitHub here https://github.com/lordmilko/SinefaCMD and Sinefa API documentation can be found here https://community.sinefa.com/hc/en-us/articles/201113297-API-Overview