Clearing threshold states via shell should take effect immediately and not require restart

Description

The shell commands for clearing threshold states in https://github.com/OpenNMS/opennms/pull/2690 only affect the state stored in the KV store. Usually thresholding will be using the in-memory copy of the state and that copy will not be cleared when the command is run. The net effect of this is that thresholding would need to be restarted in order to see that the state was cleared.

The clear and clear-all commands should be updated so that when they are ran they also clear the in memory states effected immediately.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Matthew Brooks October 2, 2019 at 2:46 PM

Matthew Brooks September 17, 2019 at 5:50 PM

Another thing we should look at for this feature is when clearing a state, have the option of re-arming the threshold as part of the clear. Otherwise if we clear the state, and the next evaluation would result in a re-arm, that won't happen since there was no state anymore indicating a re-arm should happen. This is especially applicable once threshold states might have interpolated expressions associated with them in https://opennms.atlassian.net/browse/NMS-12247#icft=NMS-12247.

Fixed

Details

Assignee

Reporter

Sprint

Priority

PagerDuty

Created September 11, 2019 at 3:12 PM
Updated October 9, 2019 at 11:49 PM
Resolved October 9, 2019 at 11:49 PM

Flag notifications