Digital Marketing

How to fix monit: error connecting to the monit daemon

When you run:
monit status
monit summary
and you get
monit: error connecting to the monit daemon
And you are sure monit is running from
ps -A | grep monit
service monit status
You 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

Popular posts from this blog

How to fix Google Apps Script: Script function not found: doGet

Creating sort index in MySQL

How to fix: df shows no file systems processed on Linux