monit: e-mail password with special chars won't work [fix]

Started by Stephan, September 13, 2017, 06:26:42 PM

Previous topic - Next topic
Hi,

I use a e-mail password with special chars - but monit does not accept / can't handle this.

Therefore the password needs to be in qoutes - I used single quotes and it seems to work. (the monit manual sates somewhere else to use duoble quotes...)

Here's the fix for the template (/usr/local/opnsense/service/templates/OPNsense/Monit/monitrc):

Line 19: {%      set password = "password " ~ "'" ~ OPNsense.monit.general.password ~ "'" %}

Cheers,

Stephan