This article applies as of PRTG 22.2.77
Python update and Python library update
PRTG 22.2.77 includes an update of the Python distribution. The update includes the following changes:
- Update to Python 3.9.12
- New /paesslerag_prtg_sensor_api/ library
Python 3.9.12 update
Check the Python 3.9.12 changelog for a comprehensive list of changes and deprecation notices.
New /paesslerag_prtg_sensor_api/ library
We renamed the Python helper library from prtg to paesslerag_prtg_sensor_api. To make sure that your Python Script Advanced sensors continue to work properly, please review the updated Python Script Advanced sensor example and adjust your Python scripts accordingly.
Example based on sensor_example.py:
from prtg.sensor.result import CustomSensorResult
from prtg.sensor.units import ValueUnit
from paesslerag_prtg_sensor_api.sensor.result import CustomSensorResult
from paesslerag_prtg_sensor_api.sensor.units import ValueUnit
Note: You can find the example sensor_example.py in the \python subfolder of the PRTG program directory under:
%programfiles(x86)%\PRTG Network Monitor\Custom Sensors\python
or
%programfiles%\PRTG Network Monitor\Custom Sensors\python
Add comment