Why do I get a notification Warning?

CMK version: 2.4.0p21
OS version: AlmaLinux 9

I’m configuring a notification if a specific service fails. It should check the DHCP lease, and informs me if DHCP lease fails.

So I configured to get the email ONLY when the state CRIT is reached. But I also get the intermediate step, so from OK → WARN > CRIT , and I don’t know why.

This is my setup -

image

and the details -

but I constantly get the WARN emails like this -

in my opinion I configured it correctly, but what might be the reason I get the (unwanted) warning ?

btw if I do a notification check, it matches 0 -

Thanks!

Do you have a rule above yours in the overview of all notifications that might be triggering this?

To test this, you can move it to position 0…

Since the first rule triggers when a condition is met.

Regards, Bernd

thanks, but no. The rules are actually on position 0 and 1, so at the very beginning.

what did the log say ???

# As site user:
tail -f ~/var/log/notify.log

other Idea is the fallback_email

1 Like

following is a sample of one notification:

SAL@lnzcheckmk01:~ $ less ~/var/log/notify.log

do you see something unusual?

but besides the myserious fact about this WARN emails I’ll do the following now.
I will change my check script to go direct from OK → CRIT, that’s ok for me.

In fact, I configured an additional interface on the host just for DHCP monitoring, with a very short untypical lease time of 10min (default is 2 days). So the warning is hit much too often at the moment … :grimacing:

I’ll post the result.

1 Like

sound like a good idea :wink:

by the way the log looks perfect … I didn`t see any other things just the 2 notification rules Teams and EMail…

Greetz Bernd

1 Like

notification works now, as I changed the check to go direct from OK → CRIT.

@BH2005 thanks :slight_smile:

1 Like