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

Can the device name of a sensor be listed in a library when using tags?

Votes:

0

When using TAGs to list sensors in a library (for example all PING sensors), there is no way to know which sensor is from which device without hovering above it. Can the device name be displayed next to the sensor name?

Because we cannot use placeholders when renaming multiple sensors, the idea of manually adding the device name to the sensor is not an option with hundreds of sensors.

device library prtg tags

Created on Apr 21, 2021 7:43:27 PM



1 Reply

Votes:

0

Hello John,

Thank you for your message.

Regarding what you would like to achieve, I recommend to use the API of PRTG to get the list of the corresponding sensors to modify, and then add the name of the device they belong to.

To get a list of sensors with a specific tag, you can use this API call:

/api/table.json?content=sensors&columns=objid,name,probe,group,device,tags&noraw=1&count=*&filter_tags=@sub(YOUR_TAG)&username=PRTGUSER&passhash=PASSHASH

Then, to modify the name of a sensor you have to use the following request:

/api/rename.htm?id=SENSORID&value=NEW_NAME&username=PRTGUSER&passhash=PASSHASH

Here is the corresponding manual: https://www.paessler.com/manuals/prtg/object_manipulation

As the device name is included with each sensor (device property), you can use a loop to define the new name in a variable that you can pass to the query above.

If you have questions, let us know.

Regards.

Created on Apr 26, 2021 7:21:54 AM by  Florian Lesage [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.