Hello,

Is it possible to generate a map (sunburst or treemap) with only warnings and criticals alerts ?

I tried to edit the HTML under the webroot directory without success.

Thanks for help,

Nicolas.


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Hello,

Please read the KB article about custom map objects carefully before you begin. http://www0.paessler.com/en/topic/1703-how-can-i-add-or-edit-map-objects-used-for-prtg-s-maps

The code for the sunburst map object is

<!--Devices: Sunburst Warning Error only-->

<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 ="Plugin_<@itemid>"
		class="sensorTree prtg-plugin"
		data-layout="none"
		data-no-full-size="false"
		data-plugin="sunburst"
		data-root-id="<#objectid>"
		data-objectid="<#objectid>"
		data-view-type="sunburst"
		data-display-mode="<#displaymode>"
		data-show-top-panel="false"
		data-border-bottom-width="0"
		data-options='{"sunburstSizePriority": false,"sunburstSizeSensors": false,"treeMapSizePriority": false,"treeMapSizeSensors": false,"hideControls":true, "filter":["up", "paused", "unknown", "unusual"]}'>

    <!--
      {
  		 "objects":<#table
        id='<@objectid>'
  			output='json'
  			count='*'
  			content='sensorxref'
  			noraw='1'
  			subcheck='1'
  			filter_basetype='probe'
  			filter_basetype='group'
  			filter_basetype='device'
        filter_tags="@tag(<@tagfilterstring>)"
  			sortby='probegroupdevice'
  			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,info,priority'>
      }
    -->

		<div id="viewport"></div>
	</div>
	<#mapobject type="htmlafter" subid="<@subid>">
</div>

After you added the new custom map object to your map you should press CTRL-F5 to reload the page so the sunburst displays correctly.


Mar, 2015 - Permalink