OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: Stephan on September 13, 2017, 06:26:42 pm

Title: monit: e-mail password with special chars won't work [fix]
Post by: Stephan on September 13, 2017, 06:26:42 pm
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:
Code: [Select]
{%      set password = "password " ~ "'" ~ OPNsense.monit.general.password ~ "'" %}
Cheers,

Stephan