However, please be aware that you will experience limited usability and performance. In this case, PRTG will try to display all sensor channels. Depending on the data used with this sensor type, you might exceed the maximum number of supported sensor channels. PRTG does not support more than 50 sensor channels officially. Knowledge Base: What is the Mutex Name in PRTG's EXE/Script Sensor's settings?.This sensor does not support more than 50 channels officially.We recommend Windows 2012 R2 on the probe system for best performance of this sensor.Sensor channel values greater than 2^62 are not supported.Exceptions in the script are not supported.Print commands in the Python script are not supported and lead to an invalid JSON result.Ensure your Python script does not run longer than this. The timeout of the sensor is its scanning interval minus 1 second.For best sensor usage we recommend that the return value is JSON encoded.In a cluster setup, copy the file to every cluster node. You must store the script file on the system of the probe on which you create the sensor: If used on a remote probe, you must store the file on the system running the remote probe.The sensor can show values returned by the Python script in multiple channels.You can find the paepy package to easily create PRTG API conforming JSON output in the \Python34\Lib\site-packages folder. It is located in the the \Python34 subfolder of your PRTG program directory. Your Python scripts must be compatible to Python 3 to run with this interpreter. ![]() ![]() Because of this you do not have to install anything manually to use the Python Script Advanced sensor. PRTG includes a CPython 3.4.2 interpreter to execute Python scripts for this sensor type. For details about the return value format please see the Application Programming Interface (API) Definition. The return value of this sensor must be valid JSON or XML. This option is provided as part of the PRTG Application Programming Interface (API). The Python Script Advanced sensor executes a Python script on the computer running the local or remote probe. PRTG Manual: Python Script Advanced Sensor
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |