whatisgithub

What is prtgsensorkit?

architektapx/prtgsensorkit — explained in plain English

Analysis updated 2026-05-18

8PowerShellAudience · ops devopsComplexity · 3/5LicenseSetup · easy

In one sentence

A PowerShell framework that removes boilerplate and guarantees valid output when building custom PRTG monitoring sensors.

Mindmap

mindmap
  root((PrtgSensorKit))
    What it does
      Builds PRTG sensor output
      Enforces PRTG rules
      Handles sensor errors
    Tech stack
      PowerShell
      PRTG
    Features
      Encrypted secret storage
      State between runs
      Sensor doctor diagnostics
    Runtime
      32-bit PowerShell 5.1
      64-bit and pwsh helpers
    Audience
      Sysadmins
      DevOps engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Write a custom PRTG sensor that reports CPU, disk, or API metrics without manually formatting JSON.

USE CASE 2

Securely store API tokens or credentials for a monitoring script using built-in encrypted secret storage.

USE CASE 3

Calculate rate-of-change metrics between sensor runs using the built-in state caching helpers.

USE CASE 4

Diagnose common mistakes in an existing PRTG sensor script before deploying it.

What is it built with?

PowerShell

How does it compare?

architektapx/prtgsensorkitbjdubb/codex-full-outputchawyehsu/base16-concfg
Stars8610
LanguagePowerShellPowerShellPowerShell
Last pushed2026-06-17
MaintenanceMaintained
Setup difficultyeasymoderateeasy
Complexity3/53/51/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Requires PRTG Network Monitor and installing the module for the correct PowerShell host bitness.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

PrtgSensorKit is a PowerShell toolkit that makes it much easier to write custom monitoring sensors for PRTG, a popular network and system monitoring tool. Normally, writing a custom sensor for PRTG means manually formatting output in a specific structure and carefully following a long list of rules, and getting any detail wrong can cause the sensor to silently fail. This toolkit takes over that repetitive plumbing so you can focus on the part that actually collects the data you care about, such as CPU usage or disk space. With this framework, you write a small script block containing just the logic for gathering your metric, hand it to a single command, and the toolkit builds the properly formatted result for you. It automatically enforces PRTG's rules, such as a maximum of fifty measurement channels per sensor and message length limits, and it catches errors in your code and turns them into a proper PRTG error message instead of letting your sensor crash silently. The toolkit also includes several convenience features beyond basic formatting. It offers a secure way to store passwords and API tokens using Windows' built in encryption instead of writing them directly into your script, a way to save small pieces of information between runs so you can calculate rates of change over time, automatic retry logic for unreliable operations, and a helper to fix an older PowerShell security setting that can otherwise block modern web requests. There is also a diagnostic tool that checks your sensor script for common mistakes before you deploy it to PRTG. Because PRTG always starts custom sensors using an older 32 bit version of Windows PowerShell, the documentation carefully explains where the toolkit and your own script's dependencies need to be installed, and includes helper commands to relaunch your script in 64 bit PowerShell or PowerShell 7 when your sensor code specifically needs that. The project is installed as a standard PowerShell module and is released under the MIT license, meaning it can be used and modified freely, including for commercial monitoring setups.

Copy-paste prompts

Prompt 1
Help me install PrtgSensorKit for AllUsers and write my first sensor with Invoke-PrtgSensor.
Prompt 2
Show me how to build a PRTG channel with New-PrtgChannel and Add-PrtgChannel for disk free percentage.
Prompt 3
Explain when I need Restart-As64BitPowershell or Restart-InPwsh in a PrtgSensorKit sensor.
Prompt 4
How do I store an API token securely with Save-PrtgSecret in PrtgSensorKit?

Frequently asked questions

What is prtgsensorkit?

A PowerShell framework that removes boilerplate and guarantees valid output when building custom PRTG monitoring sensors.

What language is prtgsensorkit written in?

Mainly PowerShell. The stack also includes PowerShell.

What license does prtgsensorkit use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is prtgsensorkit to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is prtgsensorkit for?

Mainly ops devops.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.