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

learn more… | top users | synonyms

0
votes
0answers
20 views

Nginx M/Monit password protect

I am trying to protect access to M/Monit web interface: Box: ubuntu 14.04 nginx 1.8.1 mmonit-3.5.1 I created a mmonit config file under /etc/nginx/sites-available: server { listen 8080; ...
1
vote
0answers
9 views

Monit “check program” and restart based on exit code

When I use check process, monit will start the program I define under start program then monit will restart it if it stops. But when I use check program monit will not automatically start it. If the ...
0
votes
0answers
9 views

Escalate monit events to pager address

is it possible to send escalating notification to pager address in case when monit test failed for n-times? We want to receive a pager beep only in case when monit tried to do its best and problem is ...
0
votes
0answers
18 views

Monit's $HOST variable expanding to “SYSTEM”

For some reason, Monit's $HOST variable is being expanded to "SYSTEM" which is causing problems for emailing (becomes "From: monit@SYSTEM"). The /etc/hostname and /etc/hosts files are correctly ...
0
votes
2answers
20 views

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 ...
0
votes
0answers
7 views

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 ...
0
votes
0answers
13 views

How to monitor multiple instances of the same process with Monit

I have one process of which I need to run multiple instances. I would like to monitor this with Monit. Currently this is how I'm doing it. check program maintain_workers with path ...
0
votes
4answers
46 views

Heavy stress test on Apache [closed]

We have a production server running Apache that sometimes crashes because of too much load, I'm trying to replicate the situation on a test server in order to test Monit. So my goal here is to ...
1
vote
0answers
20 views

Alert on simultaneous failure of multiple monit services

We're using Monit to check our web servers. When the check fails (or succeeds) the corresponding compontent on a status page is updated via a shell script like this: check host web-a-https with ...
0
votes
0answers
6 views

How to use number of CPUs as a multiplier in monit config?

What is the best way to use number of CPUs as a multiplier in monit confs? I need this for a system that has varrying number of CPUs, depending on predicted load. Right now the only idea I have is ...
1
vote
1answer
43 views

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 ...
0
votes
1answer
61 views

Monitoring zabbix server (itself) externally

I have some infrastructure (servers, switches etc) monitored by a Zabbix server, setup to alert in case of issues; so far so good. But what if the Zabbix server itself (or any of the underlying ...
0
votes
0answers
9 views

How to stop monit thinking a flow to start program has failed

I have a web server that I want to monitor using the host rather than the process and restart the webserver if it's stopped responding. The problem is that this webserver takes about 30 minutes until ...
0
votes
1answer
19 views

Send monit alert to log file instead of email

I am using monit for several processes. But I do not want to sent an email when there is an issue, whereas I need it to log it to a file. Can this be done? OS: Ubuntu 14.04 Monit: 5.6 Current ...
1
vote
0answers
14 views

how do I set monit to non-daemon mode

I'm trying to get monit to just excite the monitrc script once and then exit. I've tried monit -v -Ic /tmp/monitrc but when I look at the output it says: Runtime constants: Control file ...
0
votes
2answers
24 views

monitoring muliple machines from one monit webpage

I have multiple machines, a monit instance running on each of them. I'd like one of the instances to be the "master" instance, i.e. the other machines would report to it and I could monitor them all ...
0
votes
0answers
26 views

Monit http status monitoring behaviour

I am using monit v 5.15 and I try to set up monitoring for http status using the basic: if failed port 80 protocol http request "/status.fpm" status > 500 then alert And I ...
1
vote
1answer
35 views

Is it possible to setup Monit to send alerts to Nagios

I am trying to setup Monit on an auto-scaled group of machines. Ideally I would like monit to send alerts to my nagios service (which is already configured to escalate alerts). I have found this old ...
-2
votes
1answer
148 views

monit: /etc/monit.conf:188: Error: syntax error 'start program = "'

# monit -V This is monit version 5.1.1 Copyright (C) 2000-2010 by Tildeslash Ltd. All Rights Reserved. # cat /etc/redhat-release CentOS release 6.6 (Final) monit settings /etc/monit.conf check ...
-1
votes
1answer
19 views

Missing Monit WebGUI

I cannot for the life of me locate where the source files for the Monit WebGUI are stored. Does anyone know where in the file system this small web server is served from? Google has not been any help ...
-2
votes
1answer
59 views

How to monitor SFTP with monit

I just installed monit and checked the web interface. Unfortunately proftpd is marked as not running although it's running. I think it's because I'm running proftpd with S/FTP not FTP. Is it possible ...
2
votes
0answers
24 views

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 ...
0
votes
0answers
77 views

monit file content check if not match

I have monit set up as follows: check file log with PATH /var/log/nginx/access.log if NOT match "HTTP/[0-9.]{3} 200.*" then alert I need it to send an alert when the log brings up any ...
3
votes
1answer
58 views

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 ...
0
votes
2answers
60 views

monit: how do I restart many Tomcats without overloading the server?

My server has several separate Apache Tomcat instances that each take a lot of time and CPU to start. It is not possible to start all of them at the same time. This would generate too much I/O, each ...
0
votes
1answer
145 views

Monit can't restart nginx

I've got monit up and running on an Ubuntu 12.04 server, to monitor nginx, but I can't get it to successfully start nginx up again. My setup is thus: the monit config file is: -rwx------ 1 root root ...
0
votes
1answer
136 views

using monit to stop or start a service

I would like to use monit to monitor my DNS server. if BIND failed it should stop OSPFD. i tried this but I get an error; > check process named with pidfile /var/run/named/named.pid start > ...
0
votes
0answers
27 views

monit exec file and match result

Is there a way to get monit to run a python script and check the result? I was thinking something like this but it doesnt execute, only reads the file check file app1-check with path ...
0
votes
0answers
30 views

monit mysql not monitored centos

I've been successfully using Monit for several months now and MySQL is one of the services that I've been monitoring without issue. My Monit config is all still in place: Check MySQL check ...
0
votes
1answer
239 views

Monit unable to restart php5-fpm

Monit is correctly detecting that php5-fpm is unavailable as seen in the logs. However, it does not seem to be able to restart the service. log: [EDT Jun 11 18:04:20] error : 'php5-fpm' failed, ...
0
votes
0answers
107 views

setup monit and mmonit

I have installed monit and mmonit on two different machines. I have made below changes to /etc/monit.conf file: set eventqueue basedir /var/monit/ slots 1000 set mmonit ...
0
votes
1answer
104 views

How to monitor the postfix mail queue using monit?

Is there a way to monitor the postfix mail queue using monit? the available scripts just check, up/down/memory or CPU. I would like notices when the queue starts filling up. it would be nice to be ...
0
votes
1answer
143 views

Monit “method not defined”

I'm currently trying to use monit to purge my /var/log partition from specific files whenever the partition runs out of free disk space. I created a file named toto and tried this test after reading ...
1
vote
0answers
55 views

Monit Alert with Multiple URLs

I've got a monit setup to http check several subdomains of an http server. Currently, they are multiple check host statements that look like this: CHECK HOST a.example.com with address 1.2.3.4 if ...
2
votes
1answer
182 views

How can I restart “monit” when it stops or crashes?

I am setting up a server and have just installed "monit" to monitor processes and restart them (and alert me) when certain conditions are met. It works great. My question is what happens when monit ...
1
vote
1answer
112 views

How to configure Monit for use with Puma Ruby Web Server?

I am getting started with Monit and don't have a lot of systems knowledge. I have a Ruby app running on Puma. I want to use Monit to automatically restart Puma if it ever dies. I'm currently using the ...
1
vote
1answer
157 views

Secure Monit 5.6 httpd on Ubuntu Trusty

I'm trying to securely install the monit on Ubuntu 14.04 Trusty. The default packaged version is 5.6. From what I can see, monit is basically unusable without the httpd service enabled (ie you can't ...
1
vote
1answer
64 views

How to restart and alert if condition matches in Monit?

How can I do multiple things when condition is matched? For example if I want to restart a process and also send alert email. I know I can do it with two separate lines, but can I combine them? if ...
0
votes
0answers
18 views

monit daemon not triggered at startup

I am using Debian and would like to trigger monit at startup. As such monit is working perfectly fine if i start manually from sudo monit. However for some reason it doesnt trigger at startup. Tried ...
2
votes
0answers
228 views

How to make Monit “check process” conditional inside docker based on docker run args?

I would like to make Monit's "check process" work conditionally based on an env variable. Here's the pseudo-code of what I would like to achieve(not a valid monit config syntax): [ -n "$run_foo" ] ...
4
votes
1answer
153 views

Monit - How to add a delay between stop and start

I would like to know whether it is possible to add a delay between stop/start methods. This is mainly because it requires at least 10 secs delay to close all open socket connections and close the ...
3
votes
1answer
137 views

How to configure Monit to alert me when anything appears in syslog

I want Monit to alert me if ANYTHING shows up in syslog - as anything in there would be abnormal. I've tried the following and I'm not receiving any alert emails when I manually add something to ...
2
votes
0answers
158 views

mysql service status doesn't show started when it is started by monit

I installed monit on my Ubuntu 14.04 server and configured it to monitor mysql with the below config in monitrc. check process mysqld with pidfile /var/run/mysqld/mysqld.pid start program = ...
0
votes
1answer
84 views

Monit - send alert if mailserver down

Is there a way to make monit alert other than by mail: Sometimes the mailservers are down. How would I get a message about it? My idea was to make monit pass an http request to a defined service, is ...
1
vote
1answer
642 views

Execute custom monit script upon failure to restart the process [duplicate]

I have a case where empty PID files are being generated by certain processes which are monitored by monit. Monit is NOT so good in handling empty files and tries to re-start the process even when the ...
1
vote
1answer
444 views

Awaken monit daemon every few hours for all monitored processes

I am seeing a problem with monit config in configuring the monit daemon to awaken every few hours and start monitoring the processes which were set to "Not Monitored" state. PROBLEM: When the monit ...
3
votes
2answers
1k views

How to watch a service with multiple processes with Monit?

I'm trying to watch the mailing list manager sympa with monit. A running sympa instance consists of multiple processes for the different tasks of list management (e.g. a separate process for archiving ...
0
votes
1answer
218 views

Checking if a TCP port is closed with monit

I would like to check that a defined port on a host is closed, for example the 8080 port on host www.example.com. I tried something like: check host www.example.com with address www.example.com ...
-1
votes
1answer
147 views

Monitoring MySQL – “Execution failed”

Got some trouble with a VPS where MySQL dies on me from time to time. As a temporarily fix I've installed Monit to make sure that the process is restarted when it dies. I checked the site today and it ...
1
vote
0answers
121 views

why basic auth loops when using nginx and monit

I was trying to configure nginx so that http://example.com/monit will access http://127.0.0.1:2812, which is the url monit is listening. Two authentication was set, via nginx(nginx.conf file) and ...