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
11
votes
4 answers

How to disable Monit instance start/stop alerts?

Monit sends an alert every time the monit daemon is stopped or started. This is obnoxious and not useful information. According to the docs, I set: set alert user@mycompany.com but not on { instance } ...which should send alerts to that e-mail,…
Winfield
  • 266
  • 2
  • 8
9
votes
4 answers

Can Monit be configured to never unmonitor/timeout a service?

Monit seems to give up restarting a service if it fails a few times, and unmonitors it. I can’t find anything in the documentation about the specifics of when or why. My Monit config would be setup as follows: set daemon 10 set logfile…
Joe Shaw
  • 191
  • 1
  • 5
8
votes
1 answer

monit: can't connect to the http interface

I'm setting up monit on a new site, which I'll refer to as mywebsite.com during this question. I've set up the config to access monit's web interface page, but I can't connect to it. I've got a basic firewall running with iptables, and I think…
Max Williams
  • 237
  • 1
  • 3
  • 14
8
votes
2 answers

What's the point of using runit in combination with monit?

I see a lot of people using monit in combination with runit. Isn't that redundant? What is the point of using runit as well? Is it because it's more reliable when dealing with services (as it doesn't rely on pidfiles)? Thanks!
Milan Novota
  • 181
  • 4
8
votes
2 answers

Monit connection test frequency

I want to have Monit check a web application's health, running a cheap/trivial check frequently and an expensive/nontrivial check less frequently (e.g. 1/5 minutes). How can I tell it to check a given host less frequently than every monitoring…
npt
  • 313
  • 3
  • 10
7
votes
1 answer

Monit use alert along with exec

I have rule like this: if memory usage > 85% for 10 cycles then alert I want to notify not only via email but also via slack. So I can add second line like this: if memory usage > 85% for 10 cycles then exec /path/to/slack.rb It's annoying when…
Alexander
  • 173
  • 6
7
votes
1 answer

Monit: How to optimally monitor an URL

My webserver runs nginx with php5-fpm. If some trouble occurs, usually php5-fpm hung up, resulting in a "bad gateway" server error. Of course, I never know, if nginx may crash as well, some day. When something happens, the both processes (ad their…
BurninLeo
  • 860
  • 2
  • 11
  • 28
7
votes
3 answers

Monit failing to connect to Dovecot over SSL IMAP

I run Monit to keep check on processes on a Debian server. It's working as normal for all other services (Apache SSL, Postfix, SSH etc.) but Monit's checks on Dovecot are failing repeatedly. I think this may have started after installing some…
Ben
  • 71
  • 1
  • 2
7
votes
1 answer

What are the advantages of using a process manager inside a Docker container?

As mentioned by Jerome, You also need to add a process manager; for instance Monit or Supervisor. This is because Docker will watch one single process. If you need multiple processes, you need to add one at the top-level to take care of the…
Hyperfocus
  • 1,147
  • 4
  • 13
  • 23
7
votes
3 answers

Configuring Monit to Send Mail through Office365

I'm trying to configure monit to send emails through Office365. Here's the relevant configuration: set mailserver smtp.office365.com port 587 username "username" password "password" using tlsv1 with timeout 30 seconds Unfortunately, it…
nsxt
  • 71
  • 1
  • 2
7
votes
1 answer

How to monitor passenger with monit

I want to set up monit to monitor passenger but everything I've found so far has basically said just monitor your website using monit. If possible I'd like to monitor passenger directly so I have more control over it.
DEfusion
  • 287
  • 3
  • 9
6
votes
1 answer

How can I automatically restart my Docker containers with container auto-delete?

I have a general purpose VPS, and am Dockerising the apps on it. There will be around 5-6 containers on it, and very little else, so the box can be trivially rebuilt as required. For each app I have a start script. A WordPress container looks like…
halfer
  • 233
  • 1
  • 5
  • 21
6
votes
1 answer

How can I configure monit to only alert rather than restart?

I'm looking for a way to have monit only send out an alert when a particular process goes down. For example: check process apache with pidfile /var/run/httpd.pid group www start program = "/usr/sbin/apachectl start" stop program =…
Gene
  • 3,633
  • 19
  • 39
6
votes
1 answer

How do I get monit to do multiple actions when a monitored process has failed?

I have a custom service that I want to monitor with monit. When the process fails I want to copy the log to a shared file system and restart the service. Something like the following but I am not not sure what. Any hints would be appreciated. …
Atlas1j
  • 163
  • 1
  • 5
6
votes
3 answers

What does monit consider to be memory usage?

Once can have monit monitor memory usage… check system foo if memory usage > 95% then alert Does it use free RAM, or free -/+ buffers/cache? (or something else?) # free -m total used free shared buffers …
John Bachir
  • 2,344
  • 7
  • 29
  • 37
1
2
3
25 26