What is the output of which mail?
Is it /usr/bin/sendmail? If so, your commands look correct.
No alerts
Re: No alerts
/usr/bin/which: no mail in (/root/perl5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
Re: No alerts
Try which sendmail
Also check manually if there is a sendmail binary located at /usr/sbin/sendmail. Your command definitions are trying to access the binary at that location.
Also check manually if there is a sendmail binary located at /usr/sbin/sendmail. Your command definitions are trying to access the binary at that location.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: No alerts
That command definition look fine. There might be additional considerations for the postfix configuration, but you've covered all the important bits I can think of.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/