CHeckmk still try to use sendmail instead of my script , which cause failed notification

CMK version: Community 2.4.0p24
OS version: Ubuntu 24.04

Hi All,

I am using my own script checkmk-call for notification, rather than use HTML/ASCIIMail which use the sendmail from Ubuntu. My notification rules covers all the host/service so it shouldn’t need to fallback to the fallback email address which I haven’t set, but 2 of rules use the "exclude host ", I am suspecting whether there is a bug which this “exclude host” setting that I should not use it. Can any one help ?

One more question, in the previous Community version "2.1.0P15 that I used , I was tolder by one of the checkmk support that I should not select both "match host event type " and “match service event type” in a single notification rule, i should split them into 2 rules, 1 rule for each for each event type. may I know in Community 2.4.0p24 which I am currently use, it is still the same ? Or I can include both host event type and service event type in 1 rule . Please help

Thanks

Yes it is the same - explanation why → if you have a service condition defined this will not match for any host notification as there are no service information inside.

For your original problem, i would look at the “notify.log” file to see why the asciimail plugin is triggered. Please keep in mind that this can also be triggered by any personal notification rules inside CMK.

Yes it is the same - explanation why → if you have a service condition defined this will not match for any host notification as there are no service information inside.
---- so I should still use 2 rules for the same host/folder, one for service event and one for host event , correct ?

Hi Andreas, what is personal notification rule in CMK , where can I find it ? I thought only Global Notification rule that we need to setup.

These two are the important lines. No rule matches and now it uses a fallback address. This address is somewhere configured. If you find it you will fix your notification problem.

The why it not matches you can only see inside the notify log. Like in your previous post you should see a reason inside the log file.

2026-06-11 11:59:37,237 [15] [cmk.base.notify] → does not match: Event type ‘x’ not handled by this rule. Allowed are: ?c, ?w, ?r

is it because of this line for mismatch ? What is the Event type “x”, Could you please advise ? Thanks

All the codes for the event types you can find here.

There you can find two tables - “Host event types” and “Service event types”.
With this information it should be easier to troubleshoot your notification problem.