Is there any way to add just the last measured value to a PRTG map? There are easy ways to pull descriptions and last measured value, or minigraphs and last measured value.

Is there any way to just display the last value?

Thanks in advance for your assistance!


Article Comments

Dear mcsestretch

Please go to the PRTG installation folder, subfolder "webroot" subfolder "mapobjects"

Please create a file, called "lastvalue.htm". This requires local Windows administrator rights. Please paste this as the file's content

<!--Status Icons: Last Value (On White)-->

<div class="map_object map_icon mapicon_status_white" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="topleftcoordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" subid="<@subid>">
  <#checkobjecttype objecttype="sensor" nicemessage="true" id="<@objectid>">

  <span class="label"><#objectstatus name="lastvalue" id="<@objectid>"></span>
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

Please refresh the Map editor. You should now have an additional Status Icon object, "Last Value (On White)".


Nov, 2014 - Permalink

Thank you! This worked perfectly!


Nov, 2014 - Permalink

Thank you! This worked perfectly!


Nov, 2014 - Permalink

This should be part of the default system by now, must need for maps. can we please get it added? I will add it manually, but I dont want to have to keep adding it every upgrade if it gets erased in upgrades.


Apr, 2016 - Permalink

Dear googol

A PRTG updates overwrites default files, but it does not delete manually created file with a file non-default file name.


Apr, 2016 - Permalink

Is it possible that sensor show the status sensor color? At least the status down and warning colors...


Dec, 2016 - Permalink

Dear Rodrigo,

May I kindly ask to further clarify your request? What exactly do you want to display?

Best,
Sebastian


Dec, 2016 - Permalink

Ive added this custom mapobject, but it is in static size, I cant drag it to be larger. I need the text to be in 48px or larger. Is there a way to customize the size?


Oct, 2019 - Permalink

Hello Morbus,

I'm afraid that customizations are not officially supported. You can either add you HTML code to the mapobject itself, or add custom CSS to this file:

Program Files (x86)\PRTG Network Monitor\webroot\css\styles_custom_v2.css

Kind regards,
Felix Saure, Tech Support Team


Oct, 2019 - Permalink

Hello,

I would also like to get more information on how to customize the appearance of the text. Simply referencing CSS I feel is insufficient support for a tool of this price range.

Regards Daniel


Feb, 2023 - Permalink

Hello Daniel,

Unfortunately, I'm afraid that customizations are not officially supported. Therefore, we are not able to share any further details regarding this.

Further information can be found in this article:
What is your position towards customizing the PRTG web interface


Kind regards,
Muna Azmi - Tech Support Team


Feb, 2023 - Permalink