Skip to main content
Question

Avoid recovery e-mail notification after warning service state

  • Jul 14, 2022 10:04 AM UTC
  • 2 replies
  • 235 views

Forum|alt.badge.img+1

Hello all,

First of all thank you in advance who can help me with that.

We have configured in our Centreon system monitoring to only receive e-mail notifications when a service becomes critical and when it is recovered. The problem is when there are warnings situations: after they are Ok we receive an e-mail that they are recovered.

So to sum up: is it possible to receive recovery notifications only when it is a service coming from a critical service state and not when is it a warning?

Thank you very much,

2 replies

ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • Jul 14, 2022 8:22 PM UTC

Hello @Rafa , this is a recovery into OK so it doesn't matter from what states comes from. An idea could be to get alerted for the NOK and then when the OK comes in you can see the history. 

🙂


Forum|alt.badge.img+4
  • Steward **
  • Sep 22, 2022 2:53 PM UTC

this is what do for not received OK recovery from unknow state,:

 

[ "$LASTSERVICESTATE$" != "UNKNOWN" ] && /usr/bin/printf  …….