0

Monit daemon - error connecting to daemon

I installed monit and tried to check the status using the below command.
monit status
But it shows below error.
error connecting to the monit daemon
How can I fix this?

Daemons Monit Add a comment
carter
asked Oct 26 2021

Answer

0

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

Add a comment
linuxhelp
asked Oct 26 2021
edited Oct 26 2021
Post your Answer