RHEL systems, at least the ones I have (OracleLinux and CentOS), supply mail in /bin, not /usr/bin... /bin/mail -> /bin/mailx. On Ubuntu seems to use /usr/bin/mail -> /etc/alternatives/mail -> /usr/bin/mail.mailutils, which would seem to be fine with the give mail executable specified in the commands/special.cfg.
I'm not sure if the best solution is to set an $::operatingsystem dependent param that the special.cfg.erb template negotiates or to make separate templates for each supported $::operatingsystem.
My fork of this repo has been customized to integrate with pnp4nagios. I'm not sure how to use git to pull a fix for this into your repo w/o adding my pnp customizations.
RHEL systems, at least the ones I have (OracleLinux and CentOS), supply mail in /bin, not /usr/bin... /bin/mail -> /bin/mailx. On Ubuntu seems to use /usr/bin/mail -> /etc/alternatives/mail -> /usr/bin/mail.mailutils, which would seem to be fine with the give mail executable specified in the commands/special.cfg.
I'm not sure if the best solution is to set an $::operatingsystem dependent param that the special.cfg.erb template negotiates or to make separate templates for each supported $::operatingsystem.
My fork of this repo has been customized to integrate with pnp4nagios. I'm not sure how to use git to pull a fix for this into your repo w/o adding my pnp customizations.