New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


creating custom map table using tag filtering

Votes:

0

Your Vote:

Up

Down

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"
      content="sensors"
      id="<@objectid>"
      columns="device,downtimesince,sensor"
      count="50"
      sortby="downtimesince"
      links="false"
      sortable="false"
      infoheader="false"
      filter_tags="@tag(<@tagfilterstring>)"
      filter_status="5"
      filter_status="4"
      filter_status="13"
      filter_status="14"
      filter_status="10">
  </div>
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

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 [email protected] 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 by  Bert van Hove (0) 1

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



1 Reply

Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.