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?
Article Comments
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>
Jun, 2018 - Permalink
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.
Jun, 2018 - Permalink
Hi there,
Have you tried the updated code for the facelift of PRTG?
https://helpdesk.paessler.com/en/support/solutions/articles/76000064833
Best regards.
Jun, 2018 - Permalink