Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.03k stars 578 forks source link

Transitions between two non-ok states and soft states #8559

Open AurelienFo opened 3 years ago

AurelienFo commented 3 years ago

Hi

I've a "problem" with non-ok states on icinga.

I have a service which is on OK state. Due to some problem, theis service became on WARNING state.

On my configuration I have set:

  check_interval = 3m
  max_check_attempts = 5
  retry_interval = 2m

So after 5 attempts, my WARNING service become WARNING on hard state. I have defined that no notification has to be sent on WARNING state.

After that, due to some reason, my service become CRITICAL. Then, notification is sent just after that: Here we don't take care of max_check_attempts (because non OK state)

Is there any mean to change that?

Thanks!

Buutafly commented 3 years ago

Hi AurelienFo I've noticed the same behavior on my icinga2 installation. I think its by design. Would appreciate if there would be a switch for controlling this behavior since i dont want this on all my services.

Al2Klimov commented 3 years ago

Hello @AurelienFo and thank you for reporting!

I have defined that no notification has to be sent on WARNING state.

Would it be a reasonable solution for you to disallow the plugin to emit warnings?

Best, AK

AurelienFo commented 3 years ago

Hi, sorry I've just seen your answer. Not really, because I need warning on my monitoring solutions for some hosts.

AurelienFo commented 3 years ago

Hi

Do you have any news of a potential solution here? I understand it's in icinga design, but in my case warning are important for our backlog. is there any possibility to personalize that?

Thanks