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 have sensor's data on same line in MapObjects?

Votes:

0

I create new MapObject and I want to show sensor's name and sensor's message on the same line, but every sort of html format doesn't work.. It's always showed on two lines! here the code:

<div class="map_object map_icon" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="topleftcoordinates" subid="<@subid>" mode="<@editmode>">">
<#mapobject type="objectgrip" mode="<@editmode>">
<#mapobject type="htmlbefore" subid="<@subid>">
<span>
	<#objectproperty name="Name" id="<@objectid>">: <#objectstatus name="message" id="<@objectid>"> 
</span>
<#mapobject type="htmlafter" subid="<@subid>">		                       
</div>

Thanks a lot!

Gianluca

map message sensor

Created on Feb 8, 2011 9:34:10 PM



Best Answer

Accepted Answer

Votes:

0

How about adding a

style="background:#fff"

to your <TD> cells?

Created on Feb 10, 2011 4:10:34 PM by  Dirk Paessler [Founder Paessler AG] (11,025) 3 6



3 Replies

Votes:

0

Try using a <table>:

<div class="map_object map_icon" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="topleftcoordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <span> <table><tr><td><#objectproperty name="Name" id="<@objectid>">:</td><td><#objectstatus name="message" id="<@objectid>"> </td></tr></table> </span> <#mapobject type="htmlafter" subid="<@subid>"> </div>

Created on Feb 9, 2011 7:16:40 AM by  Dirk Paessler [Founder Paessler AG] (11,025) 3 6



Votes:

0

It works great! But I don't understand why if I show the "message" field, the mapobject is always transparent and it shows a strange grey line in the bottom.. Any suggestions to have a white mapobject and/or no lines?

Gianluca

Created on Feb 9, 2011 9:17:02 PM



Accepted Answer

Votes:

0

How about adding a

style="background:#fff"

to your <TD> cells?

Created on Feb 10, 2011 4:10:34 PM by  Dirk Paessler [Founder Paessler AG] (11,025) 3 6




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.