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

Down sensors only on a map.

Votes:

0

Hi there, We are using sensors with a status background on maps. Is there a way to set up the sensor to show them on the map only when they are down?

map ping-sensor prtg

Created on May 23, 2022 11:39:14 PM



3 Replies

Votes:

0

Hello Dear customer,

Thank you for contacting PRTG Support.

Within the Map designer in your PRTG, under the section Data Tables, there is already an object called Down sensors which shows Down and acknowledged sensors.

You can find more information about Maps designer and its settings in this manual: https://phq-support-08.paesslergmbh.de/help/maps_designer.htm

Created on May 24, 2022 3:36:07 PM by  Ricardo Sanchez [Paessler Technical Support]



Votes:

0

Thank you. But that is not what I'm looking for. We use our Visio diagram as a background on a map. And I want to highlight with red some areas when a router, as an example, in this area is offline. We use a sensor with status-related background, but I don't want to see it when it's green or yellow, so I need to find a way to make it visible only when the sensor's status is down.

Created on May 24, 2022 7:46:04 PM



Votes:

0

Hello Dear customer,

Thank you for clarifying your issue.

Please note that officially we do not support customization of any kind. I'm willing to assist you with the customization of the map object as best as I can. However, please note that this is an exception and not part of the usual support offering. If it's not working as expected, or if it stops working with newer PRTG versions, we won't be able to assist you further. Please also refer to the following article which explains why we can't officially offer any customization help for PRTG: https://kb.paessler.com/en/topic/78334

In order to implement this behavior, it is necessary to add the following content in the file styles_custom_v2.css located under "C:\Program Files (x86)\PRTG Network Monitor\webroot\css":

.map_iconcolorcustom_sensr { background-color: #e30613 !important; color: #fff; } .map_iconcolorcustom_sensg, .map_iconcolorcustom_sensb, .map_iconcolorcustom_sensg, .map_iconcolorcustom_senso, .map_iconcolorcustom_sensw, .map_iconcolorcustom_sensy { display: none; }

Then, you will need to create a new map object under "C:\Program Files (x86)\PRTG Network Monitor\webroot\mapobjects" with the following code:

<!--Status Icons: Name and status (status-related background, only red)-->

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

<span> <#objectstatus name="downsens" id="<@objectid>"> <br> <#objectproperty name="Name" id="<@objectid>"> <br><#if value="@nodename" is="sensor" then="@lastvalue" varexpand="value,then"> <br>&nbsp; <br><#if value="@nodename" is="sensor" then="@message" varexpand="value,then"> </span> <#mapobject type="htmlafter" subid="<@subid>"> </div>

For sure you can change the object name (in bold) as you preferred.

Finally please proceed and clear the cache by using the button under Setup > System Administration > Administrative Tools | Clear Caches. additionally proceed to clear your browser cache and then create the map object as follows:

  • Once you are on your map, you can drag and drop a sensor in down-state (from the left menu) in the editor (the sensor MUST be in down-state)
  • If the sensor you want to add is not in down-state, then you should create a temporary sensor (with simulated error) and then place the map object (move it, resize it, etc.) before dropping the desired sensor on it.

The object automatically disappears and will appear again only when the sensor goes in down-state.

Created on May 25, 2022 6:03:25 PM by  Ricardo Sanchez [Paessler Technical 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.