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

Map audible alarm only on 'ping' objects warn or down

Votes:

0

Trying to modify 'An icon AA' into a custom file, to only alert on if a ICMP/PING Sensor has gone down, but im hitting walls as filter_type's etc dont work here.

<!--Status Icons: Status and Audible Alert (If Alarms > 0)-->

<div class="map_object map_icon <#sensor type="colorclassofstate" prefix="map_iconcolor_" id="<@objectid>">" 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>
    <#objectstatus name="warnsens" id="<@objectid>" filter_type="ping">
    <#objectstatus name="downsens" id="<@objectid>" filter_type="ping">
  </span>
<div id="alarmsound"></div>
<script type="text/javascript">

  function playalarm() {
    if($('#audiblealarm').length <= 0) {
      $("#alarmsound").empty().append('<audio id="audiblealarm"><source src="/sounds/beep.ogg" type="audio/ogg" /><source src="/sounds/beep.mp3" type="audio/mpeg3" /></audio>');
    }
    var audiblealarm = document.getElementById("audiblealarm");
    audiblealarm.load();
    audiblealarm.play();
  };

  var errors1="<#objectstatus name="downsens" id="<@objectid>" show="textraw">";
  var errors2="<#objectstatus name="warnsens" id="<@objectid>" show="textraw">";
  var errors=errors1*1.0+errors2*1.0;

	if (errors > 0) {
		setTimeout(playalarm, 2000);
	}
</script>

alarm map ping

Created on May 6, 2015 7:06:39 AM

Last change on May 6, 2015 7:12:05 AM by  Felix Saure [Paessler Support]



2 Replies

Votes:

0

We'll have a web developer take a look at this :) Bear with us!

Created on May 8, 2015 6:43:19 AM by  Stephan Linke [Paessler Support]



Votes:

0

Asked the developer about it and unfortunately, it's not possible to do it. You could only use the down state sensor table and check the content of it via JavaScript. Unfortunately, we can't support that because it will be rather complicated to develop :/

Created on May 8, 2015 8:12:07 AM by  Stephan Linke [Paessler Support]




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.