Questions tagged [monit]

monit is a free, open source process supervision tool for Unix and Linux.

Monit is a free open source utility for managing and monitoring processes, programs, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.

382 questions
2
votes
1 answer

HTML formatted alert emails using monit

Is it possible to send HTML formatted alert emails using monit service ? I would like to include coloured status based on the alert. Ref: https://linux.die.net/man/1/monit
penguin
  • 39
  • 7
2
votes
1 answer

How can I make monit poll more often during a state change?

I'm using Monit to monitor various processes that need to be up and running as a group for a web site to work properly. To bring up or bring down the site, there's a definite order by which the processes must be started or stopped. The dependencies…
Louis
  • 506
  • 3
  • 12
2
votes
1 answer

Log system information collected by Monit to local log

I have configured Monit version 5.6 on an Ubuntu 14.04 server. There are few check like filesystem usage, remote host connectivity check and service monitoring. Now, when I check the web gui of monit, I see something like this; Now, there are many…
2
votes
1 answer

monit - "else if succeeded then exec"

I have a problem with monit executing script on success. ~/.monitrc: check host example.com with address example.com if failed url http://example.com/startpage and content == "mainBaner" timeout 10 seconds then exec…
LetMeSOThat4U
  • 1,159
  • 2
  • 14
  • 29
2
votes
2 answers

Setting up "monit" to monitor services, but can't get it to load

I'm trying to get this going on my new server: https://mmonit.com/monit/ I've installed it, but when I try and run any commands, it times out: root@mail:~# monit status /etc/monit/monitrc:298: Include failed -- Success…
Andrew Newby
  • 1,041
  • 1
  • 22
  • 48
2
votes
1 answer

Overriding monit alerts with mail-format on a per check basis

I currently have two monit checks for each host I have running HTTPS: check host www-example-https with address www.example.org if failed port 443 protocol https then alert check host www-example-certificate with address…
pwaring
  • 209
  • 2
  • 7
2
votes
2 answers

no httpd connection for monit started from systemd

When starting monit my logs show that [CET Oct 31 19:43:34] info : Starting Monit 5.16 daemon [CET Oct 31 19:43:34] error : monit: monit httpd not started since no connect allowed [CET Oct 31 19:43:34] info : 'srv.home' Monit 5.16…
WoJ
  • 3,365
  • 8
  • 46
  • 75
2
votes
2 answers

Monit missing files / wont start webserver

I just recently tried to install 'monit' on a server which runs Ubuntu, though when I try to run monit it will always popup the following errors: test:~$ sudo monit restart all /etc/monit/monitrc:289: Include failed -- Success…
killstreet
  • 83
  • 1
  • 9
2
votes
1 answer

Monit fails to start process

Monit fails to start a Java process that is launched from an init script in /etc/init.d. The init script works when launched from the shell. Monit detects that the service is running and detects when the service is down. Error message from…
jk73
  • 61
  • 1
  • 1
  • 4
2
votes
0 answers

aggregation of monit alerts per cycle

I have a dozen of identical services configured in monit. When I enable alerts for check process on these services and alert condition arises in all of the services I receive a dozen of identical alerts. Is there a way to do some kind of aggregation…
timurb
  • 347
  • 3
  • 12
2
votes
1 answer

On restart, start with "monitor all" enabled

I have monit enabled and monitoring one of my applications, where if the application restarts more than 4 times in 10 cycles, I stop it, and run a script (which, among other action, also does unmonitor all, and stops monit) Now, if I manually start…
Ani
  • 32
  • 12
2
votes
2 answers

monit: Consolidated dashboard for monit running on multiple machines

I have monit setup on multiple machines. For Example: x.example.com:2812, y.example.com:2812 and z.example.com:2812. Is there a way so that we can see all these dashboards consolidated at one place let's say at web location consolidated.example.com.…
Mayank Jaiswal
  • 141
  • 1
  • 5
2
votes
0 answers

monit: add NOALERT in an IF construct

On debian jessie, I have configured monit to check for HAproxy particular port forwardings, and to restart it if failed like this: check process haproxy with pidfile /run/haproxy.pid group www-data start program = "/bin/systemctl start…
Danduk82
  • 178
  • 1
  • 9
2
votes
1 answer

Is there a feature built into Docker for monitoring and ensuring containers are always running?

My first thought would be Monit, which I use to monitor other processes. Is there a different way of doing this in the Docker universe? I wish to monitor both the Docker daemon and specific containers.
Sarke
  • 371
  • 1
  • 3
  • 12
2
votes
1 answer

Varnish failing intermittently for no obvious reason

For the last few years we have been running Varnish as a cache and load balancer in front of several apache servers serving several thousand websites. We also use monit to ensure that if varnish ever dies it gets restarted. The varnish section in…
skmbr
  • 43
  • 3