I know this topic is beaten to death - but Still I am not able to figure out where I am making mistake.
In External Command there is no mail / notification option. Ideally it should have been
So i created the command
I created a template
I created the apply rule. Note I want to send email for any service whose name starts with XXX_
My icinga is a distributed architecture. I am expecting the mail-notification script will be executed from my Master Server and not from clients or satellites
But the script itself is not being called