Is there a way to read the Tags of an Object or a Sensor yet? I did check the knowledge database and only caught the list with the variables, but i couldnt find a variable to get the tags. And if its not possible is there any workaround or is it something planned for the future?

Thanks for your answer


Article Comments

Hi there,

The following API call should do the trick: /api/getobjectproperty.htm?id=<object id>&name=tags

Writing them can be done via /api/setobjectproperty.htm?id=<object id>&name=tags

Note that you'll need to get the tags first, modify the string (comma separated) and then set it again. Otherwise you'll always overwrite them and configuration changes made prior might get lost.


May, 2017 - Permalink

Thanks for the fast reply.

I unfortunatly did not specify my question enough. Is there a way to write that to the Eventlog?


May, 2017 - Permalink

Write what exactly to the event log? The tag? Depends on what language you're using.
PowerShell would look something like this: Write-EventLog -LogName Application -Source “My Script” -EntryType Information -EventID 1 -Message “This is a test message.”


May, 2017 - Permalink

At the Moment i have a Notification that adds a eventlog entry on every trigger. And i would like to add the tags of the device to the eventlog.

Something like this

%device | %name | status | %down (%message) | %tag

The question is how to submit the Tags that were defined in PRTG


May, 2017 - Permalink

There's no placeholder for the tags; you'll need to read them via API and log them separately :/


May, 2017 - Permalink