Skip to main content

Simple data generator for advanced PRTG sensors

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prtg-sensor-1.0.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

prtg_sensor-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file prtg-sensor-1.0.0.tar.gz.

File metadata

  • Download URL: prtg-sensor-1.0.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for prtg-sensor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a29351af5ec3b16a9bea00b75a1c5b3694a3da0d9d4d73aa331ef43e9b915f8c
MD5 6b05262d198208859223895f149a0171
BLAKE2b-256 ebffa4a08a82535e53af3e51bd859ed50ff7659f8bbc700ae65fbee1a118416d

See more details on using hashes here.

File details

Details for the file prtg_sensor-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: prtg_sensor-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for prtg_sensor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 33827d797afe71a5db1ecaee2a1c936f7626154a93ee0528799be1df7167aa2a
MD5 265983a87bbb4aab7ff42be577e3b976
BLAKE2b-256 ca5b94c5f94a7066509649ccd0eeb1946008d92a46d392168d45813078f5da3c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page