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

MAPS: label and graph

Votes:

0

Good afternoon,

I've got a bandwidth sensor and usually I use the "Live graph (No labels)" object to represent it on maps. I want to make it better creating a div that has his background color related to the sensor status with a title.

So I created this:

<div class="map_object map_icon2 map_icon_large <#sensor type="colorclassofstate" prefix="map_iconcolor_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="border: 1px solid black; <#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
	<#mapobject type="objectgrip" mode="<@editmode>">
	<#mapobject type="htmlbefore" subid="<@subid>">
  <#checkobjecttype objecttype="sensor" nicemessage="true" id="<@objectid>">

  <span class="label"><#objectproperty name="Name" id="<@objectid>"></span>
<#object forcepng="true" type="graph" id="<@objectid>" graphid="0" graphstylefile="graphstyling.htm" datastylefile="graphdatastyling.htm" animationstylingfile="graphanimationstyling.htm"  tooltexts="1"  graphstyling="baseFontSize='0'%20showLegend='0'%20showAxis='0'" datastyling="anchorRadius='1'%20lineThickness='1'" >
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

it works but I've got a problem: the graphs comes out the border of the div and I can't make it stay in the div.

The problem

How can I fit it?

map-objects maps prtg

Created on Jun 30, 2016 1:54:00 PM



2 Replies

Votes:

0

Hi Andrea,

Right now, the graph will always inherit the height of the map object. You can now set a fixed height of the map object, or you can add the name into the object's graph title.

This will look like that:

<#checkobjecttype objecttype="sensor" nicemessage="true" 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 name="Name" id="<@objectid>" var="objname"> <#object forcepng="true" type="graph" id="<@objectid>" graphid="0" graphstylefile="graphstyling.htm" datastylefile="graphdatastyling.htm" animationstylingfile="graphanimationstyling.htm" tooltexts="1" graphstyling="baseFontSize='12'%20showLegend='1'%20showAxis='0'" datastyling="anchorRadius='1'%20lineThickness='1'" width="<@width>" height="<@height>" graphtitle="@objname" varexpand="graphtitle"> <#mapobject type="htmlafter" subid="<@subid>">

Paessler Note: Kindly note that we cannot give extended support to customize map objects. These proposals come as they are.

Best regards, Felix

Created on Jul 4, 2016 6:21:34 PM by  Felix Saure [Paessler Support]



Votes:

0

Good afternoon,

thanks for the reply but this doesnt fix the problem: I need only the name of the sensor and if I enable the legend I'll see alot of texts that take alot of space.

I found a solution: I put the sensor name label after the graph. In this way the graph fit the colored div and the sensor name is readable and clear.

Created on Jul 5, 2016 12:52:48 PM




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.