Giter Site home page Giter Site logo

docker-monit's Introduction

Hi there ๐Ÿ‘‹

docker-monit's People

Contributors

kijart avatar paskal avatar shneoh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-monit's Issues

Error when starting in docker

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

Container keep restarting with "Monit daemon with PID 1 awakened"

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
[....]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.