Hi,
O, a map, i want to show all status donut, except from the acknowledge alarms
Is it possible to do this with a custom mapobject copied from a existing donut.htm?
Is there an other way of implementing this.
Article Comments
The donut map object consists of two files:
- \webroot\includes\donut_alarms_only.htm
- \webroot\mapobjects\donut_font*.htm
If you were to create a custom map object from that. clone both donut_font*.htm files, change the name in the first line to reflect the missing acknowledged states. Do the same for the filenames.
File names
- \webroot\includes\donut_alarms_only_noack.htm
- \webroot\mapobjects\donut_font-dark_noack.htm
First line of the map object
<!--Status Donuts:All sensor states (No Acknowledged Sensors, dark text)-->
Content of includes\donut_alarms_only_noack.htm
<#id var="objid">
<div class="prtg-plugin simpledonut h200" data-plugin="prtg-simpledonut"
data-dataset='<#colorcode color="statusdown">:<#objectstatus name="downsens" id="@objid" varexpand="id" show="textraw" valueifempty="0">,
<#colorcode color="statuspartialdown">:<#objectstatus name="partialdownsens" id="@objid" varexpand="id" show="textraw" valueifempty="0">,
<#colorcode color="statuswarning">:<#objectstatus name="warnsens" id="@objid" varexpand="id" show="textraw" valueifempty="0">,
<#colorcode color="statusunusual">:<#objectstatus name="unusualsens" id="@objid" varexpand="id" show="textraw" valueifempty="0">'>
</div>
<div class="value-name-list">
<a href="/sensors.htm?filter_status=5" class="value-name-list_item">
<i class="item statusicon icon sensr"></i>
<span class="value"><#objectstatus name="downsens" id="@objid" varexpand="id" show="textraw" valueifempty="0"/></span>
<span class="item name"><#lang key="common.strings.nodestates.onsDown" default="Down"/></span>
</a>
<a href="/sensors.htm?filter_status=14" style='<#clusterdependent showfor=" clusterinstallation ">' class="value-name-list_item">
<i class="item statusicon icon sensq"></i>
<span class="value"><#objectstatus name="partialdownsens" id="@objid" varexpand="id" show="textraw" valueifempty="0"/></span>
<span class="item name"><#lang key="common.strings.nodestates.onsPartialDown" default="Down (Partial)"/></span>
</a>
<a href="/sensors.htm?filter_status=4" class="value-name-list_item">
<i class="item statusicon icon sensy"></i>
<span class="value"><#objectstatus name="warnsens" id="@objid" varexpand="id" show="textraw" valueifempty="0"/></span>
<span class="item name"><#lang key="common.strings.nodestates.onsWarning" default="Warning"/></span>
</a>
<a href="/sensors.htm?filter_status=10" class="value-name-list_item">
<i class="item statusicon icon sensp"></i>
<span class="value"><#objectstatus name="unusualsens" id="@objid" varexpand="id" show="textraw" valueifempty="0"/></span>
<span class="item name"><#lang key="common.strings.nodestates.onsUnusual" default="Unusual"/></span>
</a>
</div>
Note that the block with sensors.htm?filter_status=13 is missing, which will exclude the acknowledged Sensors.
Jul, 2019 - Permalink
Hi,
thnx for the information.
I followed the steps described, and indeed i have now a custom donut.
But the thing is that the acknowledge alarms are not shown in the legend part next to the donut, but the donut itself still displays the number of the acknowledged alarms.
Rgds
Benny
Jul, 2019 - Permalink
I've updated the code snippet above to reflect what you asked for. Note that this is all the customizing advice we can give here, since we usually don't assist in the creation of custom map objects.
Jul, 2019 - Permalink
Hi @Stephen,
I made this with a dounat sensor, I followed your instructions exactly since I wanna asee how I could do it, but I made a copy of the html -files and copied your content to my new file \webroot\includes\donut_alarms_only_noack.htm like you suggest. I did the steps copying the files etc, but what I am suppose to do next? when I add it to map, do I need add the sensor normaly (is it suppose to be showing on the menu?) or do I add the Custom html sensor and call the html somehow so it will show it..
Sorry, I feel stupid since im new with all of this. Hopely you can help me figure it out what am I suppose to do next.. :)
Best Regards,
Matti
Jul, 2020 - Permalink
Hello Matti,
The object should work with your sensors. You just need to add the group/device to that object.
Kind regards
Felix Wiesneth - Team Tech Support
Jul, 2020 - Permalink
Okay, I got it working! It seems to be now only 3 states, but snce I got now custom htm -file, which colums do I need to change to get status for Finnish on the code part.. I really wanna change the names as well since its working now.. but clearly this need to be in Included file.. but don't wanna break it again. :)
Thanks once more!
best regards,
Matti
Jul, 2020 - Permalink
Hello Matti,
Please note that we usually don't assist in the creation of custom map objects. For more detailed information about our position towards customizing, please take a look at here.
Kind regards
Felix Wiesneth - Team Tech Support
Jul, 2020 - Permalink
The donut map object consists of two files:
If you were to create a custom map object from that. clone both donut_font*.htm files, change the name in the first line to reflect the missing acknowledged states. Do the same for the filenames.
File names
First line of the map object
Content of includes\donut_alarms_only_noack.htm
Note that the block with sensors.htm?filter_status=13 is missing, which will exclude the acknowledged Sensors.
Jul, 2019 - Permalink