How do I associate a lookup with all channels of a custom advanced (EXEXML) sensor without having to manually go to the page of each channel and selecting the value lookup?
Setting value lookup in advanced custom sensor script.
Votes:
0
Best Answer
Votes:
1
You can also specify the lookup in the xml structure like in this example:
<prtg>
<result>
<Channel>Channel 1</Channel>
<Value>1</Value>
<ValueLookup>prtg.standardlookups.offon.stateonok</ValueLookup>
</result>
<Text>Text example</Text>
</prtg>
This will only work for new sensors and you will not be able to update existing sensors with it. If you want to update an existing sensor, you need to use multiedit, as Andreas Heidrich already described.
4 Replies
Votes:
0
Please use the feature Multi-Edit. https://www.paessler.com/manuals/prtg/multi_edit_lists.htm
Select the Device, select the respective EXEXML Sensor(s) you´d like to change, click on the wrench symbol and in the upcoming dialog select the "Channel Settings" tab. By selecting the respective Channel you can choose which Value Lookup you´d like to see for all Channels included in your Multi-Edit.
Votes:
1
You can also specify the lookup in the xml structure like in this example:
<prtg>
<result>
<Channel>Channel 1</Channel>
<Value>1</Value>
<ValueLookup>prtg.standardlookups.offon.stateonok</ValueLookup>
</result>
<Text>Text example</Text>
</prtg>
This will only work for new sensors and you will not be able to update existing sensors with it. If you want to update an existing sensor, you need to use multiedit, as Andreas Heidrich already described.
Votes:
0
Thanks for the replies @Andreas Heidrich [Paessler Support]: When I go to the "channel settings" screen, I cannot select more than one channel at a time. Is there something I'm missing here? I can multi edit sensors and devices but not channels.
@Johannes Herrmann [Paessler Support]: Though I havent tried this out yet, it looks like exactly what i need. Thanks. Is this a new XML tag for the EXEXML sensor? I dont recall seeing this in the version of the documentation I had earlier.
Votes:
0
Multiedit is working, if you want to edit the same channel in a set of sensors. It will no (yet) work to edit the settings of a bunch of channels in one sensor.
The Xml-Tag is quite new, because the whole lookup feature is quite new. We will check our documentation and see, if it was added correctly.
Add comment