I just recently tried to install 'monit' on a server which runs Ubuntu, though when I try to run monit it will always popup the following errors:
test:~$ sudo monit restart all
/etc/monit/monitrc:289: Include failed -- Success '/etc/monit/conf.d/*'
/etc/monit/monitrc:290: Include failed -- Success '/etc/monit/conf-enabled/*'
Cannot create socket to [SERVERIP]:8080 -- Connection refused
Below is the command I used to forward the port 8080 since I changed that in the /etc/monit/monitrc
sudo iptables -A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
#printed out when I save my IPtable
-A INPUT -p tcp -m tcp --dport 8080 -j ACCEPT
I'm not entirely expecting the refused connection being my biggest worries here since I'm apperantly also missing 2 files, I have followed the installation instructions as per their own website.
Monit wiki for installation So right now I'm kinda at my end trying to get this to work.