New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


PRTG python sensor "No module named 'requests'

Votes:

0

Your Vote:

Up

Down

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 by  alexbouttelgier (0) 1

Last change on Mar 6, 2020 4:29:34 PM by  Birk Guttmann [Paessler Support]



2 Replies

Votes:

0

Your Vote:

Up

Down

Hi there,

I'm afraid, that's not possible. The module is needed to handle the results correctly with the sensor.


Kind regards,
Birk Guttmann, Tech Support Team

Created on Mar 9, 2020 2:37:26 PM by  Birk Guttmann [Paessler Support]



Votes:

0

Your Vote:

Up

Down

I was able to download the requests module but my script needs a module that's not in python 3.4 so I created a batch script that reads the output of the python script instead.

Created on Mar 9, 2020 3:08:23 PM by  alexbouttelgier (0) 1



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.