- changed status to resolved
Monit webinterface doesn't work after rebooting the server
Hello,
I’m using monit 5.28 on a RedHatLinux 8 system.
After rebooting the server, the monit webinterface service doesn’t work unless restarted.
My monitrc file is like:
set httpd port 2812 and
allow localhost
allow mypc1.mydomain.com # 172.22.15.116
allow myp2.mydomain.com
The message I get is monit.log after restarting is:
Denied connection from non-authorized client [172.22.15.116]
If I reload monit, it works flawlessly.
As a solution I just changed the following in monit.service (/usr/lib/systemd/system/monit.service):
[Unit]
#After=network.target
After=network-online.target
More info about Running Services After the Network is up:
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
Hope that it helps.
I really don’t know where to report this to the redhat distro.
Regards.
Comments (1)
-
repo owner - Log in to comment
fix Issue
#985: Monit webinterface, started via systemd, doesn't work after rebooting the server→ <<cset cd42e9bd6992>>