I have discovered a solution in SQL to only retrieve the HARD state changes.  
In the query of the icinga_statehistory table, select state transitions where 
state_type = 1 ("HARD") AND last_state = 1 ("HARD").
This seems to have the effect that I desire -- which is to exclude all the HARD 
"OK" state changes  which occur after a SOFT non-OK state, and thus only show 
the HARD non-OK states along with the HARD OK state changes that occur after a 
HARD non-OK state.

Best regards,
Jude George

> From: George, Jude 
> Sent: Tuesday, September 22, 2015 1:31 PM
> To: 'icinga-users@lists.icinga.org'
> Subject: Don't want to see HARD recovery states that follow a SOFT error state
> 
[ removed ]

> Is there any way I can configure Icinga2 to NOT make the recovery a HARD 
> state change unless the problem was a HARD problem to begin with?  I have 
> searched for various config options (like setting "interval = 0" in the 
> "apply Notification to Service.") but I'm not sure that is relevant.  But 
> there are so many configuration options, that perhaps there is a way to 
> achieve what I want.

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to