添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
憨厚的大脸猫  ·  python ...·  5 天前    · 
霸气的花卷  ·  python list 错位相减 ...·  5 天前    · 
帅气的领带  ·  【Pyspark ...·  3 天前    · 
近视的橙子  ·  python ...·  昨天    · 
叛逆的感冒药  ·  html | Vue Test Utils·  4 月前    · 
高大的木瓜  ·  Groovy与Json - IT ...·  7 月前    · 
爱喝酒的核桃  ·  What is a perpetual ...·  7 月前    · 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

I get the following error when executing a python advanced sensor

06/03/2020 10:00:56 Script Output (UTF8 Encoding): Traceback (most recent call last):[CR][LF] File "C:\Program Files (x86)\PRTG Network Monitor\custom sensors\python\HourLongRunningThreads.py", line 7, in <module>[CR][LF] from requests import Session[CR][LF]ImportError: No module named 'requests'[CR][LF]

Is there a way to just print the desired json isntead of using the paepy module to create it? I just need a simple channel that returns 1 value

prtg version 19.2.50.2842+ python 3.7

python python-script-advanced-sensor script Created on Mar 6, 2020 10:54:29 AM Last change on Mar 6, 2020 4:29:34 PM by

Hello there.

As of PRTG version 22.1.74 it is possible to install/add modules to PRTG's python. If my script needs the requests module for example, I can do so by heading to C:\Program Files (x86)\PRTG Network Monitor\python\ (PRTG's install path) and issuing:

Afterwards requests can be used in scripts. This has to be done on a per-probe basis.

Best regards,
Luciano Lingnau, Paessler Team

Add comment

Hello there.

As of PRTG version 22.1.74 it is possible to install/add modules to PRTG's python. If my script needs the requests module for example, I can do so by heading to C:\Program Files (x86)\PRTG Network Monitor\python\ (PRTG's install path) and issuing:

python.exe -m pip install requests

Afterwards requests can be used in scripts. This has to be done on a per-probe basis.

Best regards,
Luciano Lingnau, Paessler Team

Add comment
python.exe -m pip install requests