I am using a custom map object to try and display a library on a map, the sunburst displays in map designer and map preview but when we view as a HTML page the object is not displayed. Custom map object....

<!--Custom Map Objects: Library 8435-->
 
<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>">
  <#checkobjecttype objecttype="probenode,group" nicemessage="true" id="<@objectid>">
<div id="viewport">
<div id="libTree" class="libTree prtg-plugin" 
  data-plugin="libtree" 
  data-objectid="8435"
  data-lib-name='Library'
  data-view-type='<#system type="groupviewsize" varexpand="overwrite" overwrite="@grpvs">'
  data-controls-parent='#viewport'
  data-hide-controls="true"
  data-objects='<#table 
    id='8435'
    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>
  </div>
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

I have also tried this custom object but we get a Ajax error when trying to view the HTML page....

<!--Custom Map Objects: Library Sunburst add 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">
<div id="showalibrary">
  <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>

Article Comments

What version of PRTG are you using currently?

Also, when creating the object, make sure you click the object, click on the HTML button then add the library's ID to the HTML before section.

Add the ID to this section


Jun, 2014 - Permalink

We are on version 14.2.10.2114+

When creating the object I do enter the library's ID in HTML before section, the sunburst is displayed in the Map Design view but we get a Ajax error when trying to view the HTML page.


Jun, 2014 - Permalink

When using the unaltered version of the code that we published, what Ajax exact error code and message do you get?


Jun, 2014 - Permalink

We get an error titled "Ajax Error (Unauthorized)"

Unauthorized

Server: (xxx.xxx.xxx.xx) URL:/.... undefiened Time: 14:23:54

This flashes up for a second and we then get the map rendered without the sunburst


Jul, 2014 - Permalink

Can you please post here what URL you are using to access the map?


Jul, 2014 - Permalink

I'm afraid the URL is only accessible locally, it is not available externally.


Aug, 2014 - Permalink

It's not for us to access the map but rather to see what URL is causing this error.


Aug, 2014 - Permalink

https://internalip/public/mapshow.htm?id=8566&mapid=EAFAAE06-C6AD-4E6C-AF72-F331AF8AF05D


Aug, 2014 - Permalink

Note: We describe how to add a library in sunburst view to Maps in this article.


Aug, 2014 - Permalink

hey i relly like this feature its so cool.

i am having a little problem through. I got it working pretty easly but the sunburst, is not center in the object i am making for the maps. it both cutting it and make alot of space in the top. so it look abit stupid on the maps i have the issue both on firefox, chrome and ie it look like this https://s13.postimg.org/86golw45j/Capture.png

i am on prtg 16.2.24.4046

can i dou somthing to help this problem?


Sep, 2016 - Permalink

Hi Hea,

I just checked the map object in PRTG Network Monitor 16.3.25.5767+ and the circle of the sunburst object is still in the center of the object.

Is there any chance that you scrolled into the object using the browser zoom? Please try to open this object from another workstation and see if it works then.

Best regards, Felix


Sep, 2016 - Permalink

hey felix

thx for the quick answer no i dont have any zoom in my browser's or prtg have been update to 16.3.24.4980

i think one of my challenge is that i like to make the sunburst so small, if i just make them big enough they look good. can you confirm that there is no visible wrong when you dou the following? make a map 1920 x 1080. make the html object in the map as above with no html before tag. with the following properties.

Top: Left: Width: Height: Layer:

100 750 407 420 2

and when i place a normal sunburst on it it look perfect. its a very old install we have been upgrading alot so mabey there can be some corner case in or installation.

best regard Hea


Sep, 2016 - Permalink

Hi Hea,

It's still in the center, even with your provided properties. Can you spin up a new virtual machine (or use a workstation) to install a trial of PRTG to see if it works there. This will show us if it's related to the update or the web browser.

Best regards, Felix


Sep, 2016 - Permalink

hey

i made a new virtuel pc with server 2012 r2.
install prtg server on it first the 16.3.24.4980 and confirm the same bug and then update to 16.3.25.6123 same result.

Top:	Left:	Width: Height:	Layer:
80	260	570	  380	        1

is my crop issue on the object.
if i use full hd resolution on screen and max my browser windows.
and then open the map it is cropping for me both on windows 10 and server 2012 r2.(test in chrome 53.0.2785.101 m) if i crop my browsers windows so it is smaller, it can show the entire circle. (in viewmap not on html link), also if i use zoom (ctrl + +) i can get to a point where i can se the sunburst/circle agin. (in view map not on html link)

say if you need some more data on the supcect atm my head is spinning with all the difference result that i get back. if you have no trouble at all can you give me that browser and os system you are testing from so i can re produce no cropping issue?


Sep, 2016 - Permalink

Hi Hea,

To have a deeper look into it, please send us a support bundle including the PRTG configuration file. This can be done via the "Contact Support" ribbon in the lower right corner of the web interface. Please enter PAE755526 as case number when submitting the Bundle so it stays connected to your reported issue.

Kind regards,

Erhard


Sep, 2016 - Permalink

Hi there,

Due to some changes and improvements to the code, you can find the correct and most recent one, on the following site:

Best regards


Apr, 2017 - Permalink