How to generate a new UIM logmon alarm and clear previous alarm
search cancel

How to generate a new UIM logmon alarm and clear previous alarm

book

Article ID: 205529

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

We created one profile in logmon and mode is command and profile run every 12 hr. And every time generated new alert with new nimid.  
But old alarm always in open state. And we already applied suppression key in watcher profile.
Our requirement is, alert should be generated when the system uptime is 1 day. So, created a custom match expression and set the variable values as 1 .

Our goal is...Generate a new alarm and clear the old one when it generates the second alarm

example :-
 ||810136||LINUX||SERVER1I||uptime boot_time :: " 20:34:05 up 81 days, 3:39, 0 users, load average: 10.29, 9.09, 11.60 "
||810550||LINUX||SERVER1||uptime boot_time :: " 08:34:05 up 81 days, 15:39, 0 users, load average: 13.87, 8.68, 9.58 "

 

 

 

Environment

UIM: All versions

Logmon: All versions

Resolution

In order to achieve this, you need to create 2 profiles as below
 
1) This is the first profile
 
General Tab
 
Watcher Rules -> Variables
 
Watcher Rules -> Standard Tab
 
Watcher Rules -> Alarm Tab
Message Subsystem ID: 1.1
Suppression Key: boot_time
With the above profile, it generates an alarm
 
2) Create 2nd Profile
 
General Tab
 
 
Watcher Rules -> Standard Tab
 
Watcher Rules -> Alarm Tab
 
With above, before it generates a new alert (with new NimID value), first it clears the previous alert