OPNsense Forum

English Forums => 26.7, 26.10 Series => Topic started by: Maurice on November 24, 2026, 02:02:36 PM

Title: Monit fails to start after updating to 26.7.10
Post by: Maurice on November 24, 2026, 02:02:36 PM
Just to start the unavoidable thread. Yes, I did read the release notes, so I wasn't caught completely off guard. 😆

<118>[27] /usr/local/etc/monitrc:25: A program with arguments must be quoted -- unexpected argument '-c'
<118>[27] Monit exiting due to parsing errors in the configuration file.
<118>[27] /usr/local/etc/rc.d/monit: WARNING: failed to start monit

Will investigate later and update this thread.

Cheers
Maurice
Title: Re: Monit fails to start after updating to 26.7.10
Post by: OPNenthu on November 24, 2026, 02:07:02 PM
Quote from: Maurice on <strong>Today</strong> at 02:02:36 PMYes, I did read the release notes, so I wasn't caught completely off guard. 😆
Ha!  At least it was nicely called out ;)
Title: Re: Monit fails to start after updating to 26.7.10
Post by: franco on November 24, 2026, 02:25:06 PM
Well, someone complained they should be more to the point. *cough*


Cheers,
Franco
Title: Re: Monit fails to start after updating to 26.7.10
Post by: sopex on November 24, 2026, 02:39:24 PM
My guess is that you have some custom action that uses exec?

Monit now fails on unquoted program arguments....

"
Fixed: Stray text after a program is now a syntax error. Before, the parser silently added it to the program's arguments. For example, a cron specification without the every keyword became an argument of the stop program above it. An unquoted program is still accepted, but only without arguments. A program with arguments must be quoted. Monit now reports "A program with arguments must be quoted" at the line of the argument. This also catches a Monit keyword used as an argument, as in stop program = /etc/init.d/foo stop. An unquoted program now also works in the form start program = /path. Before, this gave a syntax error.
"