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


Article ID: 205529


Updated On:


CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) NIMSOFT PROBES DX Infrastructure Management


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||AZURE-V2-PRI||uptime boot_time :: " 20:34:05 up 81 days, 3:39, 0 users, load average: 10.29, 9.09, 11.60 "
||810550||LINUX||AZURE-V2-PRI||uptime boot_time :: " 08:34:05 up 81 days, 15:39, 0 users, load average: 13.87, 8.68, 9.58 "





UIM: All versions

Logmon: All versions


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