How to fix monit: error connecting to the monit daemon
When you run:
In /etc/monit.conf or /etc/monit/monitrc, uncomment the following:
monit statusor
monit summaryand you get
monit: error connecting to the monit daemonAnd you are sure monit is running from
ps -A | grep monitor
service monit statusYou need to check Monit HTTP interface is enable. It’s used by the command line tools as well as human being.
In /etc/monit.conf or /etc/monit/monitrc, uncomment the following:
set httpd port 2812 and
use address localhost
allow localhost
and restart monit with
service monit restart
Comments
Post a Comment