Hello!
I'm trying to create new custom map object for PRTG map in folder C:\Program Files (x86)\PRTG Network Monitor\webroot\mapobjects.
Now I have object like this:
<!--New Gauges: Radial gauge--> <div class="map_object map_table <#sensor type="colorclassofstate" prefix="map_objectstate_" id="<@objectid>">" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:hidden;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <#checkobjecttype objecttype="sensor" nicemessage="true" id="<@objectid>"> <script src="http:////cdn.rawgit.com/Mikhus/canvas-gauges/gh-pages/download/latest/all/gauge.min.js"></script> <span> <canvas data-type="radial-gauge" data-width="300" data-height="300" data-title="<#objectproperty name="Name" id="<@objectid>">" data-units="<#objectproperty name="value" id="<@objectid>">" data-min-value="0" data-max-value="350" data-value='<#objectproperty name="primarychannel" show="number" id="<@objectid>">' data-highlights="[{"from": 300, "to": 350, "color": "rgba(200, 50, 50, .75)"}]" data-color-plate="#fff" data-border-shadow-width="0" data-borders="false" data-needle-type="arrow" data-needle-width="2" data-needle-circle-size="7" data-needle-circle-outer="true" data-needle-circle-inner="false" data-animation-duration="1500" data-animation-rule="linear" ></canvas> </span> <#mapobject type="htmlafter" subid="<@subid>"> </div>
But I don't understand where I can get objectproperty names? I can't find It in PRTG API docs. Now I can get only sensor Name value, I get It via this code:
<#objectproperty name="Name" id="<@objectid>">
How I can get this properties (for sersor) ?
- Maximum error limit
- Minimum error limit
- Current sensor value
- Unit
Thanks in advance!
Add comment