Thanks for the answers and would like to see how you Mattk developed your map object.
I edited the map object (trafficlight.htm) and added the function (tooltip) to shows a popup with more sensor information.
https://www.paessler.com/manuals/prtg/maps_designer
https://kb.paessler.com/en/topic/61263-where-can-i-find-custom-map-objects-and-other-map-customizations
The following custom map object code.
C:\Program Files (x86)\PRTG Network Monitor\webroot\mapobjects
custom_object_circle.html
code:
<!--Custom: circle with black border Status Related Background-->
<div class="map_object map_table map_icon2 map_icon_large" 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>">
<a href="/sensor.htm?id=<@objectid>" show="linklong">
<div data-toggle="tooltip" data-placement="top"
title=" <b> Device: <#objectproperty name="ParentDevice" show="text" id="<@objectid>">
<p>
Sensor: <#objectproperty name="Name" id="<@objectid>">
<p>
Status: <#objectstatus name="lastvalue" id="<@objectid>"><p>">
<#mapobject type="htmlafter" subid="<@subid>">
<#mapobject type="htmlafter" subid="<@subid>">
<#sensor type="colorclassofstate" id="<@objectid>" var="status">
<#objectproperty type="nodename" id="<@objectid>" var="nodename">
<#if value="@nodename" is="sensor" then="sensr" else="hasred" varexpand="value" var="containsred">
<#if value="@nodename" is="sensor" then="sensy" else="hasyellow hasnored" varexpand="value" var="containsyellow">
<#if value="@nodename" is="sensor" then="sensg" else="hasgreen hasnoyellow hasnored" varexpand="value" var="containsgreen">
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.0"
width="100%"
height="100%"
viewBox="0 0 100 100">
<defs>
<rect x="0" y="0" width="1px" height="1px" fill="#ECECEC" id="a" />
</defs>
<use xlink:href="#a" />
<g class="trafficlight" transform="translate(0,0)">
<use xlink:href="#a" />
<circle r="40" fill="#DADADA" cx="50" cy="50" />
<circle style="<#if value="@status" contains="@containsgreen" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#98BD1D" cx="50" cy="50" />
<circle style="<#if value="@status" contains="@containsred" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#D21925" cx="50" cy="50" />
<circle style="<#if value="@status" contains="@containsyellow" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#EECE00" cx="50" cy="50" />
</g>
</svg> </a>
<div style="position:relative;margin-top:-20px">
<#mapobject type="htmlafter" subid="<@subid>">
</div>
</div>
</div>
Zarate Max
Add comment