Hello everybody,

We use PRTG to monitor different network devices via SNMP. 2-3 sensors were set up for each device.

In the PRTG Map view, we have created a custom object, which only shows devices and since when they are no longer accessible (data table).

Is there a possibility that is displayed in the data table in case of failure of a device, this only once in the data table? Currently, the failed device is displayed 3 times.

We do not want to solve our problems with dependencies, because sometimes only one of the 3 sensors fails.

Thanks for your support!

Marco Heinrich


Article Comments

Hi Marco,

Please paste the following code into a .HTM file under "C:\Program Files (x86)\PRTG Network Monitor\webroot\mapobjects\". You can then add this map object under "Data Tables (Custom)".

<!--Data Tables (Custom): DOWN Devices-->

<div class="map_object map_table" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:auto;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" subid="<@subid>">
  <#checkobjecttype objecttype="probenode,group,device" nicemessage="true" id="<@objectid>">

  <div class="maptablecontainer" style="overflow:hidden">
    <#table tableid="devices"
    id="<@objectid>"
    content="devices"
    columns="probegroupdevice,device,location,downsens"
    sortby="-downsens"
    infoheader="false"
    links="true"
    sortable="false"
    tabletitle="DOWN Devices (@@)"
    filter_downsens="@neq(0)"
    >
  </div>
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

Jan, 2017 - Permalink

Hello,

When I use this custom mapobject, no devices are displayed.


Jan, 2017 - Permalink

Hi Marco,

Sorry, forgot that. You have to choose the root-group (or any other group) from the left side.


Jan, 2017 - Permalink

Hi,

i choose a Group under the Local Probe and simulate a failure to test your custom mapobject, but no devices displayd.


Jan, 2017 - Permalink

Hi there,

Please make sure that the sensor is really in the simulated error state and not warning. Please also reload the map once you simulated the error.


Jan, 2017 - Permalink

Sorry! My mistake!

Can you tell me, how can I display "Down Sesnors" AND "Acknowlegde DOWN Sensors" in your view?


Jan, 2017 - Permalink

Hi Marco,

Unfortunately, that is not possible within one map object (due to the filters). But here are the map objects summarized for Down, Acknowledged and Partial Down:

Put them on the core server (in a ".htm" document) under "C:\Program Files (x86)\PRTG Network Monitor\webroot\mapobjects\"

They will then look like: Map Objects


Down

<!--Data Tables (Custom): DOWN Devices-->

<div class="map_object map_table" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:auto;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" subid="<@subid>">
  <#checkobjecttype objecttype="probenode,group,device" nicemessage="true" id="<@objectid>">

  <div class="maptablecontainer" style="overflow:hidden">
    <#table tableid="devices"
    id="<@objectid>"
    content="devices"
    columns="probegroupdevice,device,location,downsens"
    sortby="-downsens"
    infoheader="false"
    links="true"
    sortable="false"
    tabletitle="DOWN Devices (@@)"
    filter_downsens="@neq(0)"
    >
  </div>
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

Acknowledged

<!--Data Tables (Custom): Acknowledged Devices-->

<div class="map_object map_table" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:auto;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" subid="<@subid>">
  <#checkobjecttype objecttype="probenode,group,device" nicemessage="true" id="<@objectid>">

  <div class="maptablecontainer" style="overflow:hidden">
    <#table tableid="devices"
    id="<@objectid>"
    content="devices"
    columns="probegroupdevice,device,location,downacksens"
    sortby="-downacksens"
    infoheader="false"
    links="true"
    sortable="false"
    tabletitle="Acknowledged Devices (@@)"
    filter_downacksens="@neq(0)"
    >
  </div>
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

Partial Down

<!--Data Tables (Custom): Partial Down Devices-->

<div class="map_object map_table" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="overflow:auto;<#mapobject type="coordinates" subid="<@subid>" mode="<@editmode>">">
  <#mapobject type="objectgrip" mode="<@editmode>">
  <#mapobject type="htmlbefore" subid="<@subid>">
  <#checkobjecttype objecttype="probenode,group,device" nicemessage="true" id="<@objectid>">

  <div class="maptablecontainer" style="overflow:hidden">
    <#table tableid="devices"
    id="<@objectid>"
    content="devices"
    columns="probegroupdevice,device,location,partialdownsens"
    sortby="-partialdownsens"
    infoheader="false"
    links="true"
    sortable="false"
    tabletitle="Partial Down Devices (@@)"
    filter_partialdownsens="@neq(0)"
    >
  </div>
  <#mapobject type="htmlafter" subid="<@subid>">
</div>

Jan, 2017 - Permalink

Wow! Thanks!


Jan, 2017 - Permalink