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

Custom Map Object - Does not resizing

Votes:

0

After upgrading for last version 18.2.41.1652+, i have a issue regarding a Custom MAP Object. I'm using a Library Sunburst add ID in HTMLbefore, and when i try to resize in Width and Height Properties, the object remains the same size. Would you know what might be affecting?

custom-map-object maps prtg

Created on Jun 18, 2018 6:37:34 PM



3 Replies

Votes:

0

Hi there,

Have you tried the updated code for the facelift of PRTG?
https://kb.paessler.com/en/topic/59942-how-can-i-use-a-status-icon-of-a-device-in-maps-which-only-considers-specific-sensors

Best regards.

Created on Jun 19, 2018 10:11:27 AM by  Dariusz Gorka [Paessler Support]



Votes:

0

I created a library with ID #139090.
And I need to update the following code.
Which fields should i need to fill, HTML before and HTML after?
May you try to help me, how to customize this code with my Library ID?

<!--Custom Map Objects: Library Sunburst ID in HTMLbefore-->
 
<div class="map_object map_table <#sensor type="colorclassofstate" prefix="map_objectstate_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:hidden;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" subid="<@subid>" var="libid">
<style>#<@itemid> .libTree{height: 100%!important;}</style>
<div id="showalibrary" style="width:100%;height:100%;">
  <div id="libTree" class="libTree prtg-plugin" 
    data-plugin="libtree" 
    data-objectid=" <#mapobject type="htmlbefore" subid="<@subid>">"
    data-lib-name='Library'
    data-view-type="sunburst">
<!-- 
   {"objects":<#table 
      id="@libid"
      varexpand="id"
      output="json"
      count="*"
      subcheck="1"
      noraw="1"
      content="library"
      sortby="probegroupdevice"
      filter_basetype="@ntxt('sensor')"
      columns="objid,name,access=treejson,probegroupdevice=treejson,basetype,icon,favorite,fold,devicenum=textraw,groupnum=textraw,totalsens=textraw,upsens=textraw,downsens=textraw,partialdownsens=textraw,warnsens=textraw,pausedsens=textraw,unusualsens=textraw,undefinedsens=textraw,downacksens=textraw,condition,status=textraw,message=textraw,info,priority,libkind,liblinkedid">
    }
 -->
<div id="viewport"></div>
  </div>
</div>
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

Created on Jun 19, 2018 12:16:44 PM

Last change on Jun 19, 2018 1:06:53 PM by  Luciano Lingnau [Paessler]



Votes:

0

Hi there,

All you need to do is to save the code as a ".htm"-file on the Core Server. Afterwards add the Map Object to the map and enter the Library ID (without the #) into the HTML-Before-Field within the Map Designer on the right side.

Best regards.

Created on Jun 19, 2018 7:01:19 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.