metrixware-echoes-tech / puppet-monit

Puppet module to manage monit installation and configuration
https://forge.puppetlabs.com/echoes/monit
Apache License 2.0
4 stars 48 forks source link

Elements for message-format in monitrc cannot be sorted #33

Open johnzimm opened 6 years ago

johnzimm commented 6 years ago

https://github.com/echoes-tech/puppet-monit/blob/ae2eb12c102169b1cbe383e7ec31270ab2f96808/templates/monitrc.erb#L17

If elements are sorted the "message" element is not last and things like "reply-to" and "subject" are just included in the message body. If I take the monittrc written by the puppet module and rearrange the the elements in message-format so "message" is last and then restart monit it works as expected.