Alert Rule

Is there any way to setup an alert rule for high ICMP response time?

here is the rule I got… But I don’t think its working. %devices.last_ping_timetaken >= “100”

Try this as a macro and see:

$config['alert']['macros']['rule']['icmp_response'] = '(%macros.past_5m && %device_perf.avg)';

Then use macros.icmp_response >= "X" in the rule. X = the average latency.

Thank you laf, I will test it out and let you know.

Hey @laf

I’m trying to set this up myself but I’m only getting a No/Yes ratio box.
How do I specify the X value?

Config.php

$config[‘alert’][‘macros’][‘rule’][‘icmp_response’] = ‘(%macros.past_5m && %device_perf.avg)’;

Result:

Edit:
I think I’ve worked around it by doing the following. This seems to work during my testing so far.