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


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

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