kijart / docker-monit Goto Github PK
View Code? Open in Web Editor NEWRun Monit inside docker
Home Page: https://hub.docker.com/r/kijart/monit/
License: MIT License
Run Monit inside docker
Home Page: https://hub.docker.com/r/kijart/monit/
License: MIT License
monit_1 | input in flex scanner failed
monit_1 exited with code 2
I tried docker run and docker-composer both , But stuck with same error again and again
I am using a docker-compose file to bring up the service:
version: "3.0"
services:
monit:
image: kijart/monit
restart: unless-stopped
environment:
TEST: "servertest"
ports:
- "2813:2813"
volumes:
- ./monitrc:/etc/monitrc
When I check the log output all the container does is:
input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
input in flex scanner failed
Hey @kijart , thank you very much for this image. After some time the container begins restarting with "Monit daemon with PID 1 awakened" message. Do you know how to resolve it? ATM I use kijart/monit:1.2.0
with following configuration:
# All settings can be found on https://mmonit.com/monit/documentation/monit.html
# Check all services every n seconds
set daemon 30
# Start the web interface on localhost:2812. Also needed for the CLI to work.
# https://mmonit.com/monit/documentation/monit.html#TCP-PORT
set httpd port 2812
allow confi:dential
# Add a custom mailserver through which monit will send alerts
# https://mmonit.com/monit/documentation/monit.html#Setting-a-mail-server-for-alert-delivery
SET MAILSERVER email.com
PORT 587
USERNAME very
PASSWORD secret
using TLSV1
# Adjust the contents and format of the mail
# https://mmonit.com/monit/documentation/monit.html#Message-format
set mail-format {
from: important@mycompany
}
# Activate mail alerts and set mail adresses
# Mails are sent once on alert and once on recovery
# https://mmonit.com/monit/documentation/monit.html#Setting-a-mail-server-for-alert-delivery
# SET ALERT mail-address [[NOT] {event, ...}] [REMINDER cycles]
SET ALERT boss@mycompany REMINDER 120
check system localhost
if loadavg(5min) > 2 then alert
if memory > 50% then alert
check filesystem localhost-sda1 with path /dev/sda1
if SPACE usage > 30% then alert
check host sentry with address important.host
group common
if failed
port 443
protocol https
request /auth
status = 200
content = "csrfmiddlewaretoken"
certificate valid > 28 days
timeout 10 seconds
then alert
[....]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.