This article provides instructions for configuring thresholds on custom variables within the logmon probe to trigger alarms based on specific command output or log entries. A common use case includes triggering an alarm when network latency (e.g., average ping time) or server health metrics breach a defined limit.
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
ping #.#.#.# (Windows/Linux)/.*Average = (.*)ms.*/AvgTime).AvgTime is greater than 100.AvgTime is greater than 100.