example42 / puppet-nagios

Puppet module for Nagios
Other
4 stars 18 forks source link

notification commands are not functional on RHEL #26

Closed salderma closed 11 years ago

salderma commented 11 years ago

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.

salderma commented 11 years ago

Partially fixed by: https://github.com/example42/puppet-nagios/pull/28