Would like to trigger alarm when ping response Average Time for a device breaches specific threshold.
In this scenario, would like to trigger alarm when Average Time is bigger than X milliseconds.
D:\Users\abc.d>ping ##.##.##.##
Pinging ##.##.##.## with 32 bytes of data:
Reply from ##.##.##.##: bytes=32 time=1ms TTL=63
Reply from ##.##.##.##: bytes=32 time=2ms TTL=63
Reply from ##.##.##.##: bytes=32 time=2ms TTL=63
Reply from ##.##.##.##: bytes=32 time=1ms TTL=63
Ping statistics for ##.##.##.##:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 4ms, Average = 3ms
logmon probe any version
Create a command mode profile.
In the General tab > Command field, specify the command in the ping <IP> format. For example, ping 10.112.69.69
Create a Watcher rule.
In the Watcher Rules tab > Standard tab of the rule > Match Expression field, specify the expression to match in the command response.
For example, specify /.*Average = (.*)ms.*/ to look for the last line of the text keyword in the response.
Configure Custom Variable in Watcher Rule.
In the Variables tab, create a variable. For example, create a variable AvgTime Variable that extracts Average Time value from the ping response.
In the Variable Settings dialog, specify the initial location of the string. For example, select Match Expression with value 1 to capture the first matching group.
When Average Time value breaches the threshold (100), alarm is triggered.