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 new sensor by script python
Modified on 2025-06-10 20:58:27 +0200
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.
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.
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
Nov, 2017 - Permalink