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

Traffic light acknowledged status

Votes:

1

How can I change the map object of a traffic light , if the status is "acknowledged" to show a red allarm status anyway ? At the moment with the status "acknowledged" the traffic light does not show anything.

map-objects maps traffic-light-customization trafficlight

Created on May 4, 2017 6:25:15 AM



Best Answer

Accepted Answer

Votes:

1

Here is my simple solution (you only need 2 additional lines. The lines with "containspurpur"...):

<div class="map_object map_table map_icon_large" id=2592 objectid="<@objectid>" subid="<@subid>" style="overflow:hidden;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" 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="senso" else="haspurpur" varexpand="value" var="containspurpur">
  <#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 280">
    <defs>
      <rect class="trafficlight_frame" x="0" y="0" width="100px" height="280px" fill="#ECECEC" id="a" />
    </defs>
    <use xlink:href="#a" />
    <g class="trafficlight" transform="translate(0,0)">
      <use xlink:href="#a" />
      <circle class="trafficlight_circle" r="40" fill="#DADADA" cx="50" cy="50" />
      <circle class="trafficlight_circle" r="40" fill="#DADADA" cx="50" cy="140" />
      <circle class="trafficlight_circle" r="40" fill="#DADADA" cx="50" cy="230" />
      <circle style="<#if value="@status" contains="@containsred" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#E6005F" cx="50" cy="50" />
      <circle style="<#if value="@status" contains="@containspurpur" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#E6005F" cx="50" cy="50" />
	  <circle style="<#if value="@status" contains="@containsyellow" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#F59C00" cx="50" cy="140" />
      <circle style="<#if value="@status" contains="@containsgreen" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#C0CC19" cx="50" cy="230" />
    </g>
  </svg>
  <div style="position:relative;margin-top:-20px">
    <#mapobject type="htmlafter" subid="<@subid>">
  </div>
</div>

Created on Feb 5, 2020 2:38:00 PM

Last change on Feb 6, 2020 11:36:51 AM by  Birk Guttmann [Paessler Support]



8 Replies

Votes:

0

Hi Mr_Dimitriy,

Right now, this is not possible. We are currently elaborating if, or how we can change this.

Best regards, Felix

Created on May 4, 2017 7:04:19 PM by  Felix Saure [Paessler Support]



Votes:

0

Have this been made possible? i need the traffic light to tell me, that the sensor is "acknowledged" when there is no light in it.

Created on Apr 19, 2018 1:31:16 PM



Votes:

0

Hello there,

Unfortunately, it is not possible to customize this object in this way.


Kind regards,
Birk Guttmann, Tech Support Team

Created on Apr 20, 2018 12:24:37 PM by  Birk Guttmann [Paessler Support]



Votes:

0

is it going to be possible in the future?

Created on Apr 30, 2018 7:39:29 AM



Votes:

0

Hi,

This is not planned at the moment and we have very few inquiries in this direction. Therefore, there will probably be no changes in the near future. If there are frequent requests for this, we will take a closer look at it.


Kind regards,
Birk Guttmann, Tech Support Team

Created on Apr 30, 2018 7:49:23 AM by  Birk Guttmann [Paessler Support]



Votes:

0

Have there been more request about this topic?

Created on May 27, 2019 1:29:56 PM



Votes:

0

Hi there,

There were no further requests in this direction. If this is important for you, you can create an official feature request, so other users may vote for it.

This article shows how to open a request and how we handle it.


Kind regards,
Birk Guttmann, Tech Support Team

Created on May 29, 2019 12:36:43 PM by  Birk Guttmann [Paessler Support]



Accepted Answer

Votes:

1

Here is my simple solution (you only need 2 additional lines. The lines with "containspurpur"...):

<div class="map_object map_table map_icon_large" id=2592 objectid="<@objectid>" subid="<@subid>" style="overflow:hidden;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" 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="senso" else="haspurpur" varexpand="value" var="containspurpur">
  <#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 280">
    <defs>
      <rect class="trafficlight_frame" x="0" y="0" width="100px" height="280px" fill="#ECECEC" id="a" />
    </defs>
    <use xlink:href="#a" />
    <g class="trafficlight" transform="translate(0,0)">
      <use xlink:href="#a" />
      <circle class="trafficlight_circle" r="40" fill="#DADADA" cx="50" cy="50" />
      <circle class="trafficlight_circle" r="40" fill="#DADADA" cx="50" cy="140" />
      <circle class="trafficlight_circle" r="40" fill="#DADADA" cx="50" cy="230" />
      <circle style="<#if value="@status" contains="@containsred" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#E6005F" cx="50" cy="50" />
      <circle style="<#if value="@status" contains="@containspurpur" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#E6005F" cx="50" cy="50" />
	  <circle style="<#if value="@status" contains="@containsyellow" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#F59C00" cx="50" cy="140" />
      <circle style="<#if value="@status" contains="@containsgreen" then="" else="opacity:0" varexpand="value,contains">" r="40" fill="#C0CC19" cx="50" cy="230" />
    </g>
  </svg>
  <div style="position:relative;margin-top:-20px">
    <#mapobject type="htmlafter" subid="<@subid>">
  </div>
</div>

Created on Feb 5, 2020 2:38:00 PM

Last change on Feb 6, 2020 11:36:51 AM by  Birk Guttmann [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.