How to configure threshold for a variable in logmon probe
search cancel

How to configure threshold for a variable in logmon probe

book

Article ID: 10880

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

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

Environment

logmon probe any version

Resolution

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.

 



Additional Information

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/alphabetical-probe-articles/logmon-log-monitoring/logmon-use-case-examples.html