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

creating custom map table using tag filtering



I'm trying to create a map object that lists all errors filterd on tags. I want to add different tables to one map, where each table represents the errors for a different team.

so far I have the following

<!--Data Tables: Alarms (Small Library) Tag in HTMLbefore -->

<div class="map_object map_table" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:auto;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" subid="<@subid>" var="tagfilterstring">
  <#checkobjecttype objecttype="probenode,group,device" nicemessage="true" id="<@objectid>">
  <div class="maptablecontainer" style="overflow:hidden">
    <#lang key="html.dashboard.alarms" default="Alarms" var="alarms">
    <#lang key="html.dashboard.ackalarms" default="Ack'ed Alarms" var="ackalarms">
    <#lang key="html.dashboard.warnings" default="Warnings" var="warnings">
    <#lang key="html.dashboard.unusuals" default="Unusuals" var="unusuals">
    <#objectstatus name="downsens" id="<@objectid>" show="htmllink" var="alarmcount">
    <#objectstatus name="downacksens" id="<@objectid>" show="htmllink" var="ackalarmcount">
    <#objectstatus name="warnsens" id="<@objectid>" show="htmllink" var="warningcount">
    <#objectstatus name="unusualsens" id="<@objectid>" show="htmllink" var="unusualcount">
    <#objectproperty name="name" var="objname" id="<@objectid>">
    <b><#inserthtml html="@tagfilterstring @alarmcount @alarms, @ackalarmcount @ackalarms, @warningcount @warnings, @unusualcount @unusuals (@objname @objectid)" varexpand="html"></b>
    <#table tableid="dashalarmtable"
  <#mapobject type="htmlafter" subid="<@subid>">

When adding this object and adding a keyword to the BeforeHTML it seems the variable @tagfilterstring is recognized. It is listed by line 17 <#inserthtml html=@tagfilterstring.... This line shows the text from the BeforeHTML in my table.

The filtering however does not work. it only works when I add the keyword to the filter_tags line.

Kind regards Bert van Hove

map mapobject table variable

Created on Mar 28, 2019 10:27:47 PM

Last change on Mar 29, 2019 5:17:03 AM by  Sven Roggenhofer [Paessler Technical Support]

1 Reply



Hi Bert,

The easiest would probably be to add custom map objects that directly filter for these tags instead of the variable, if the filter_tags field is no viable option. The way you're doing it is not supported I'm afraid.

PRTGapi | Feature Requests | WMI Issues | SNMP Issues

Kind regards,
Stephan Linke, Tech Support Team

Created on Apr 1, 2019 8:59:34 AM by  Stephan Linke [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.