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

PRTG Custom Map Object

Votes:

0

I'm looking to create a custom map object based on one of the existing tables. To provide context I have all of my devices inside subgroups (Organisation) inside groups (Country) inside a top level group. What I would like is a table that contains only the Country level groups and how many sensors in the various states, i.e. up, down, unusual.

I've managed to create something that achieves nearly this functionality by copying one of the existing data table map objects however it results in listing not only the Country groups but the Organisation groups. Is there a way to force the table to only include the first level of groups and not the subgroups?

The code I came up with is below: -

<!--Data Tables: Grouped Sensors-->

<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>">
  <#checkobjecttype objecttype="probenode,group,device" nicemessage="true" id="<@objectid>">
  
  <div class="maptablecontainer" style="overflow:hidden">
    <#table tableid="grouptable"
    id="<@objectid>"
    content="groups"
    columns="group,upsens,downsens"
    sortby="group"
    infoheader="false"
    links="false"
    sortable="false"
    varexpand="tabletitle"
    tabletitle="@objname" 
    filter_tags="@tag(<@tagfilterstring>)"
    filter_status="3"
    >
  </div>
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

custom map-objects maps

Created on Mar 14, 2017 10:22:24 PM

Last change on Mar 15, 2017 6:06:54 AM by  Sven Roggenhofer [Paessler Technical Support]



3 Replies

Votes:

0

Hi Sean,

Unfortunately, there is no "level" property to set the level of the group view. So the main group and subgroups will be displayed.

Best regards.

Created on Mar 16, 2017 11:36:18 AM by  Dariusz Gorka [Paessler Support]



Votes:

0

That's a shame but good to know that I wasn't missing something obvious! Is there a way to achieve something similar?

Regards, Sean.

Created on Mar 16, 2017 1:13:24 PM



Votes:

0

Hi Sean,

I wish there would be one, but I am afraid that there is no other way to achieve that. Sorry. :(

Created on Mar 16, 2017 1:35:42 PM by  Dariusz Gorka [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.