Please check out the "Top 10"-Lists in the map objects. These should come close to what you are looking for. The next bit would be to customise one of them, by creating a copy of its underlying html-file. You'll find this in the
\PRTG Network Monitor\webroot\mapobjects\
folder of the PRTG program directory.
I've taken the Top 10 most used CPU Sensors here:
<!--Top 10: VMware CPU Ready-->
<div class="map_object map_table" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:auto;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
<#mapobject type="objectgrip" mode="<@editmode>">
<#mapobject type="htmlbefore" subid="<@subid>">
<#checkobjecttype objecttype="probenode,group,device" nicemessage="true" id="<@objectid>">
<div class="top10listcontainer" style="overflow:hidden">
<#lang key="html.mapobjects.top10cpusmostused.tabletitle" default="Top 10: Most Used CPUs (@@@@)" var="tabletitle">
<#table tableid="sensortable"
content="sensors"
columns="lastvalue,sensor,probegroupdevice"
sortby="-lastvalue"
sortable="false"
refreshable="false"
filter_tags="@tag(<@tagfilterstring> %2b_CPUReady_)"
filter_status="3"
filter_status="4"
filter_status="5"
filter_status="10"
filter_status="13"
filter_status="14"
infoheader="false"
links="false"
count="10"
varexpand="tabletitle"
tabletitle="@tabletitle"
id="<@objectid>">
</div>
<#mapobject type="htmlafter" subid="<@subid>">
</div>
A few things that you will need to watch out for:
- Change the name of the map object in the first line, otherwise it will not appear in the map editor.
- Make sure that the CPU Ready channel is the primary channel on the according VMware Sensors, because the Top 10 list map objects will only display the value of the primary channel, and more importantly, their sorting works accordingly to the primary channel.
- Either use the default sensor type tag or create a custom tag on all CPU Ready sensors, for the map object to only use those sensors (_CPUReady_ in the example above, which needs to be replaced then.)
- After creating your own map object, restart the PRTG Core server, then it should appear in the list of map objects.
Add comment