I have the following configuration in Monit:
check program raid-md127 with path "/sbin/mdadm --misc --test /dev/md127"
if status != 0 then alert
When restart monit, I get the following error:
root@NAS2:/etc/apt/sources.list.d# /etc/init.d/monit restart
Stopping daemon monitor: monit.
Starting daemon monitor: Syntax error:
/etc/monit/monitrc:29: Error: syntax error 'raid-md127'
Can you advice, please?
Best Answer
The functionality to use parameters in the command was first introduced in Monit 5.7; https://mmonit.com/monit/changes/
You need to upgrade to a newer version of Monit.