Skip to main content

Prtg-sensor

Simple data generator for advanced PRTG sensors.

It will help you to generate output in JSON format for the Python Script Advanced, EXE/Script Advanced, SSH Script Advanced and HTTP Data Advanced sensors.

You can refer to the official PRTG manual to figuring out all the features of custom sensors.

Installing

Install with pip

pip install prtg-sensor

Example

Executable sensors like Python Script Advanced sensor must send the result to the stdout. HTTP Data Advanced sensor must send the result in the http response body.

from prtg_sensor import Sensor

sensor = Sensor()
sensor.add_channel('Duration', 32, unit='timeseconds')
sensor.add_channel('Loading', 12.55, unit='percent', float=1, decimal_mode='all')
sensor.add_channel('Status', 0, value_lookup='prtg.standardlookups.aws.status')
sensor.text = 'Everything is ok'
print(sensor.get_result())

PRTG interprets this result to sensor by itself

Sensor screenshot

Release files for prtg-sensor 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prtg-sensor 1.0.1
File Size Uploaded
prtg-sensor-1.0.1.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prtg-sensor 1.0.1
File Interpreter ABI Platform
prtg_sensor-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / prtg-sensor-1.0.1.tar.gz

Download URL prtg-sensor-1.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f0aae7752928dcd2c5381c871ee1b43265ba00f2277822cd51928f4231bfe5f6
BLAKE2b-256 checksum
How to use checksums
425fe069450b27719523dbef8bc8439840728f016987460dde1fb4159c961ee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / prtg_sensor-1.0.1-py3-none-any.whl

Download URL prtg_sensor-1.0.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b51a0b88e6c4a78a55700cd11b90249a68db86a3041847672a3ee56bb8c3e6c
BLAKE2b-256 checksum
How to use checksums
905aded93f52ccda0ad9ec9de1081b2805ce6ac6c93513696a7b0ab2dff153aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page