Reputation: 45124
I installed monit and tried to check the status using below command.
monit status
But end up with below error.
monit: error connecting to the monit daemon
How can I fix this?
Upvotes: 46
Views: 20624
Reputation: 287
Sometimes the problem appears because loopback interface is down . We should bring up the lo interface as follow
root@server:~# ifup lo
Upvotes: 1
Reputation: 45124
edit vim /etc/monit/monitrc
, starting from line 118 and uncomment below lines
set httpd port 2812
use address localhost # only accept connection from localhost
allow localhost # allow localhost to connect to the server and
allow admin:monit
sudo monit reload
to take affect
Upvotes: 92