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

PRTG Network Monitor

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

Free Download

Top Tags


View all Tags

How can i display a library sunburst on a map

Votes:

0

Your Vote:

Up

Down

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>

html library maps

Created on Jun 25, 2014 11:19:42 AM by  andrewsykes (10) 1

Last change on Jun 26, 2014 8:03:52 AM by  Torsten Lindner [Paessler Support]



Best Answer

Accepted Answer

Votes:

0

Your Vote:

Up

Down

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

Created on Apr 19, 2017 7:51:04 AM by  Dariusz Gorka [Paessler Support]

Last change on Jun 22, 2018 10:10:35 AM by  Luciano Lingnau [Paessler]



16 Replies

Votes:

0

Your Vote:

Up

Down

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

Created on Jun 27, 2014 7:59:41 AM by  Greg Campion [Paessler Support]

Last change on Jun 27, 2014 8:22:07 AM by  Greg Campion [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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.

Created on Jun 30, 2014 11:49:07 AM by  andrewsykes (10) 1



Votes:

0

Your Vote:

Up

Down

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

Created on Jun 30, 2014 12:37:49 PM by  Greg Campion [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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

Created on Jul 29, 2014 1:27:40 PM by  andrewsykes (10) 1



Votes:

0

Your Vote:

Up

Down

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

Created on Jul 31, 2014 8:23:13 AM by  Greg Campion [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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

Created on Aug 1, 2014 10:16:11 AM by  andrewsykes (10) 1



Votes:

0

Your Vote:

Up

Down

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

Created on Aug 1, 2014 12:31:12 PM by  Greg Campion [Paessler Support]




Votes:

0

Your Vote:

Up

Down

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

Created on Aug 22, 2014 1:23:56 PM by  Gerald Schoch [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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?

Created on Sep 5, 2016 12:35:34 PM by  hea (0) 1



Votes:

0

Your Vote:

Up

Down

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

Created on Sep 6, 2016 11:38:32 AM by  Felix Saure [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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

Created on Sep 8, 2016 10:20:37 AM by  hea (0) 1



Votes:

0

Your Vote:

Up

Down

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

Created on Sep 8, 2016 11:51:23 AM by  Felix Saure [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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?

Created on Sep 9, 2016 1:23:59 PM by  hea (0) 1

Last change on Sep 9, 2016 1:50:22 PM by  Luciano Lingnau [Paessler]



Votes:

0

Your Vote:

Up

Down

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

Created on Sep 12, 2016 12:38:05 PM by  Erhard Mikulik [Paessler Support]



Accepted Answer

Votes:

0

Your Vote:

Up

Down

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

Created on Apr 19, 2017 7:51:04 AM by  Dariusz Gorka [Paessler Support]

Last change on Jun 22, 2018 10:10:35 AM by  Luciano Lingnau [Paessler]



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.