How to filter up only in sunburst on a map ?
<!--Device Tree Views: devices2)--> <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":["down", "warning", "paused", "unknown", "unusual"]}'> <!-- { "objects":<#table id='<@objectid>' output='json' count='*' content='sensorxref' noraw='1' subcheck='1' 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>
Use filter :["warning"] not work
data-options='{"sunburstSizePriority": false,"sunburstSizeSensors": false,"treeMapSizePriority": false,"treeMapSizeSensors": false,"hideControls":true, "filter":["down", "warning", "paused", "unknown", "unusual"]}'>
Article Comments
how to set to show ping only ? filter ping sensor only
<!-- Added Objects: StatusTest --> <div class="map_object map_icon2 map_icon_large <#sensor type="colorclassofstate" prefix="map_iconcolornew_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <#objectproperty type="nodename" id="<@objectid>" var="nodename"> <#objectstatus name="lastvalue" id="<@objectid>" var="lastvalue"> <span> <#objectstatus name="downsens" id="<@objectid>"> <#objectstatus name="upsens" id="<@objectid>"> <br> <#objectproperty name="Name" id="<@objectid>"> <!-- <br><#if value="@nodename" is="sensor" then="@lastvalue" varexpand="value,then"> Remove last Value from Sensors--> <br> <br><#if value="@nodename" is="sensor" then="@message" varexpand="value,then"> </span> <#mapobject type="htmlafter" subid="<@subid>"> </div>
Mar, 2021 - Permalink
This is possible by filtering for tags, as explained in the this Knowledge-Base article.
Kind regards,
Matthias Kupfer - Team Tech Support
Mar, 2021 - Permalink
Not working. Please suggest or an example. put code in line ?
filter_tags="@tag(<@tagfilterstring>)"
Mar, 2021 - Permalink
Can you please clarify your request. I am not sure where you want to apply the filter.
Please also take a look at the following Knowledge-Base articles, where you can find information how to create custom map objects:
Kind regards,
Matthias Kupfer - Team Tech Support
Feb, 2021 - Permalink