What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How to use custom map objects in multiple groups ?

Votes:

1

When I add a new group it will write the first one.

########################################################################

<!--Custom: Sensor Status - Change_Color -->

<div class="map_object map_icon2 map_icon_large 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"> <#objectstatus name="message" show="textraw" id="<@objectid>" var="message">

<div id="demo"></div>

<script type="text/javascript">

var errors="<#objectstatus name="downsens" id="<@objectid>" show="textraw">";

if (errors > 4) {

document.getElementById("demo").innerHTML = ('<img name="ok" src="/images/lamp_ON.png" width="80" height="100" border="0" alt="" />');

} else {

document.getElementById("demo").innerHTML = ('<img name="false" src="/images/lamp_OFF.png" width="80" height="100" border="0" alt="" />');

}

</script>

</div>

custom-sensor javascript json maps prtg

Created on Jun 8, 2017 4:17:19 PM

Last change on Jun 9, 2017 4:32:36 AM by  Sven Roggenhofer [Paessler Technical Support]



1 Reply

Votes:

0

Hello,

Thank you for your KB-post.

May I please ask you to elaborate this issue in more details?

Created on Jun 9, 2017 2:16:50 PM by  Isidora Jeremic [Paessler Support]




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.