PRTG with Teeth:

Mike BeckerMike Becker
2 min read

Announcing ZentrixLabs.PrtgSdk

Mike Becker
May 23, 2025 · 4 min read


🧭 Mission Objective

You’ve got sensors. You’ve got uptime to prove. But that brittle old PRTG API wrapper? It’s held together with zip ties and regret.

Time to drop something cleaner.

Today we’re releasing ZentrixLabs.PrtgSdk — a modern .NET 9 SDK for talking to your PRTG Core Server like a pro. No XML hell. No guessing at URLs. Just typed queries, LINQ-style filters, and JSON results that don’t make your eyes bleed.


🔍 Gear Check

You’ll need:

  • .NET 9+ project (tested with Razor Pages, Console, and Worker Services)

  • PRTG Core Server with API access enabled

  • ✅ Sensor data you want to weaponize

Optional:

  • 🧠 A sysadmin brain that’s sick of parsing content=csvtable

💻 Execution Plan

Install via NuGet:

dotnet add package ZentrixLabs.PrtgSdk

Create Your Client:

var client = new PrtgClient(new PrtgClientOptions
{
    BaseUrl = "https://your-prtg-core",
    Username = "prtgadmin",
    Passhash = "your-passhash"
});

Query sensors:

var sensors = await client.Sensors
    .Where(s => s.Tags.Contains("critical"))
    .Take(10)
    .ToListAsync();

Get raw results:

var raw = await client.Sensors.GetRawAsync("filter_tags=@tag(system)");

No guesswork. Just signal.

🧰 SDK Loadout

Out of the box:

  • Sensors → Fetch, filter, and slice live sensor data

  • Devices → Pull status, names, groups

  • Raw access → Skip the SDK if you want direct endpoint control

  • PrtgClientOptions → Strong-typed config for everything (base URL, credentials, user-agent override)

  • Built-in error handling and status codes mapped cleanly

Coming soon:

  • ✅ Logs & Notifications

  • ✅ Sensor status history

  • ✅ Write access (pause/resume, acknowledge, etc.)


🧪 Use Cases

  • Dashboards: Pull live data into Razor Pages, Blazor, or WinForms.

  • Alert sync: Bridge PRTG alerts into Graph, Teams, or ServiceNow.

  • Health probes: Validate segmented network sensors during patch nights.

  • Infra overlays: Feed this into Zentrix Monitor for real-time tiles.


🏁 Exit Strategy

Get it now:
🔗 github.com/ZentrixLabs/ZentrixLabs.PrtgSdk

MIT licensed. Built for admins, not frameworks.

PRTG’s API isn’t dead—it just needed better gear.
Mainframe79 out.

0
Subscribe to my newsletter

Read articles from Mike Becker directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Mike Becker
Mike Becker