[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

monit HTTP server on FreeBSD startup

From: David Newman
Subject: monit HTTP server on FreeBSD startup
Date: Sun, 26 Aug 2018 17:29:59 -0700
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

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     : '' Monit 5.25.2
[PDT Aug 27 00:13:43] info     : Starting Monit 5.25.2 daemon with http
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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]