What is this?

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

Learn more

PRTG Network Monitor

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

Top Tags


View all Tags

add new sensor by script python

Votes:

0

Hello, I have just made a sensor by script python who works perfectly by indicating in the script the hostname of the equipment. But if I want to put this sensor on other equipements, I should create a script for every equipment. Which is not good. During the addition of the sensor I noticed the line "Additionnal parameters" which seems to be able to help me get back the hostname of the équiment on which I place the sensor. In this line I put -host %"host" but how to get back this value in my script python? Thank you

add-sensor prtg python

Created on Nov 22, 2017 9:52:53 AM



1 Reply

Votes:

0

Hello there,

%host is the correct placeholder you need, please also check this reply and also this one. Otherwise let us know in case you require further help.

Kind regards,

Erhard

Created on Nov 22, 2017 4:49:34 PM by  Erhard Mikulik [Paessler Support]




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.