monit HTTP server on FreeBSD startup

David Newman <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Organization Network Test Inc.
Message-ID <[email protected]>
monit-5.25.2
FreeBSD 11.2-RELEASE-p2

After a reboot, the monit process starts but the HTTP interface does
not. The command 'netstat -an -f inet | grep 2812' shows nothing
listening on port 2812.

Manually restarting monit will start the HTTP interface.

Here are the log entries during a reboot:

[PDT Aug 26 17:12:15] info     : 'mail8.networktest.com' Monit 5.25.2
stopped
[PDT Aug 27 00:13:43] info     : Starting Monit 5.25.2 daemon with http
interfac
e at [localhost]:2812
[PDT Aug 27 00:13:43] info     : Monit start delay set to 120s

I think the time delta is because the system converts from UTC time to
the local time zone (PDT/PST) after starting Monit.

Here is the HTTP interface config from monitrc:

set httpd port 2812 and
    use address localhost
    allow localhost
    allow admin:monit

How to get the HTTP interface to launch automatically on startup?

Thanks.

dn



-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.