alerta / nagios-alerta

Forward nagios alerts to the alerta monitoring system
http://alerta.io
MIT License
24 stars 17 forks source link

Filter for HARD state only #13

Closed tkuther closed 7 years ago

tkuther commented 7 years ago

Is there a way to filter out SOFT state checks, so only HARD states are shown in Alerta?

If not yet, this would be a great feature.

satterly commented 7 years ago

Not currently. Can you explain why you might only want to see HARD state changes and ignore SOFT ones?

tkuther commented 7 years ago

Mainly to get a consistent alerting behaviour. Nagios (or Centreon in our case) sends out an email alert for hard states only, and only those alerts should show up in the centralized alert dashboard, too. It takes into account what you configured in the service check regarding max retries and retry check interval before an alert is fired.

Having a simple boolean config option like hard_states_only=true could achieve this. A default value of false would ensure no change to current behaviour.

satterly commented 7 years ago

Fixed in version 3.3.3

satterly commented 7 years ago

Note: Usage is hard_only=1 to enable.

tkuther commented 7 years ago

Perfect. Thank you!