$ sudo monit reload Reinitializing monit daemon monit: No daemon process foundHowever "monit -Iv" would show monit able to read the configuration file and send alerts correctly.
As monit is installed as a service if such service is stopped the reload command would do nothing. So first the service should have been started:
sudo service monit startThe way monit restarts automatically is through a /etc/init.d/monit which sources the /etc/default/monit where in turn "startup=1" sets if monit should automatically start after system reboot.
As a reminder "/usr/sbin/service
sudo /etc/init.d/monit restartThere is one word of advise though. If you faced this issue be sure 'which monit' resolves to the same monit version in use when you call monit as a service. I have found dual installations in /usr/bin and /usr/local/bin perhaps related to ".configure" problems when installing monit from sources.
No comments:
Post a Comment