Would like to send an alarm only after the given process has been checked and found to be down 2x (not on the first check of the of the process state).
How to send an alarm only after the given process has been checked and found to be down 2x (and not alarm on the first check of the of the process 'down' state)?
All incoming alarms that match would be set to invisible, hence the 2nd AO profile to set them to visible when the count is >= (gte) 2. This profile would run on an interval basis to ensure they remained visible.
Tips: You can try using the processes probe default of 60 seconds and for the nas 2nd rule, "On every interval" of 2m. Or simply adjust both settings for the desired effect/timing.
Note:
Stop the process to generate the alarm.
Start the process to clear the alarm.
Nas AO profile 1:
Action type: set_visibility
Make event invisible
Action mode: On message arrival
Message string: /.*<process_name>.*/
Message Counter: Equals to 1
NOTE: You may have to adjust the processes check interval and the nas rule On Interval setting to make it practical. Maybe set the 'On interval' to slightly after the processes check interval for instance.
Nas AO profile 2:
Action type: set_visibility
Make event visible
Action mode: On every interval
Message string: /.*<process_name>.*/
Message Counter: Greater than or equal 2
Note that the Count continues to rise and the alarm remains until it is cleared. You can test it by starting the given process again.
Tips: