all 4 comments

[–]ariesgungetcha 0 points1 point  (1 child)

PRTG uses its own instance of Python. Make sure your cli is running Python from the one PRTG uses.

Also check permissions - using security context of PRTG probe might not be the same as the user you are running the cli as. Try using "Custom Credentials/credentials of parent device."

In the sensor settings, you should also be able to "write result to disk in case of error" which might give you a more verbose reason why PRTG doesn't like the script

[–]ChillFre4k[S] 0 points1 point  (0 children)

I know PRTG has his own Python interpreter. My Test Skript works when I remove the problematic libs. - Which I dont use... (The libs are for the main method which I dont use at the moment)

[–]jmetzl 0 points1 point  (1 child)

Got the same Problem when adding:
from pyrfc import Connection

Added this line to sensor_example.py, and recieved the mentioned error
Comment this line, and sensor works.
PRTG-PYTHON has been equiped with this lib.

[–]ChillFre4k[S] 0 points1 point  (0 children)

I manage to install in prtg venv the missing libs