[SOLVED] Monit: file content quoted value wont apply

Started by gpfountz, March 20, 2025, 10:29:01 PM

Previous topic - Next topic
March 20, 2025, 10:29:01 PM Last Edit: March 23, 2025, 01:52:08 AM by gpfountz
How to duplicate:

create a service test with condition: content = "Cert success" and action: alert, save.

create a service of type File, path: /var/log/acmeclient/latest.log, tests: cert_success, save.

Apply - apply prompt does not clear

ssh: sudo cat /usr/local/etc/monitrc, the file is corrupt, the quotes are replaced with â:
...
check file acme_log with path "/var/log/acmeclient/latest.log"
   if content = âCert successâ

is this a bug or am I doing something wrong?

I am running version 25.1.3

I found this issue only occurs when editing the service test using my ipad (safari, firefox, or chrome) - works fine when editing the service test using my macbook (safari).

Hopefully this information will be useful to the developers.

And many thanks to all the developers for all your hard work!!

In case anyone is interested....

I found the keyboard setting on the ipad called 'smart punctuation'.  When enabled, the quotes are left or right leaning vs being straight quotes.  Disabling 'smart punctuation' fixes this problem.