Home › Topics › Writing Custom Checks and Sensors

Writing Custom Checks and Sensors

Sooner or later something you need to monitor has no built-in check. These guides teach the anatomy of a custom check and writing checks in PowerShell and Python. They cover SSH, SNMP, and API collection patterns. They also cover building small collectors for devices that speak no monitoring protocol at all.

Guides in this topic

  1. The Anatomy of a Custom CheckOne question, a clear output contract, exit states, timeouts, error handling, idempotence, and logging — the check contract.
  2. Writing Checks in PowerShellCIM and WMI queries, service, process, port, and HTTP checks, output formatting, scheduling, and credentials done safely.
  3. Writing Checks in PythonCross-platform checks with sockets, HTTP, SNMP and SSH libraries, JSON output, dependencies, and running on the collector.
  4. SSH, SNMP, and API Collection PatternsWhen each method is right, parsing command output without fragility, get versus walk, pagination, caching, and timeouts.
  5. Small Collectors for Devices Without SNMPScraping status pages, tailing logs, wrapping vendor tools, and publishing results into monitoring without creating a maintenance burden.

Put this into practice with SysPeep Monitor

SysPeep is network and infrastructure monitoring software for Windows. It discovers the devices on your network, polls their health and performance over SNMP and WMI, and alerts you the moment something goes wrong — all from one web console.

Download Free TrialLearn About SysPeep