Monit webinterface doesn't work after rebooting the server

Issue #985 resolved
sistemes created an issue

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)

  1. Log in to comment