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

learn more… | top users | synonyms

0
votes
0answers
10 views

Does monit restart service if service was told to stop via systemd?

I am new to monit and don't use it up to now. Scenario monit should restart PostgresSQL if it is dead PostgresSQL gets started via systemd A sysadmin shuts down PostgresSQL via systemd since he ...
-1
votes
0answers
17 views

Monitor logs with Monit?

I have a cluster of zookeepers that occasionally enters a state where they can not reconnect to each other without a restart. The best way to detect this condition, I believe, is to monitor the logs ...
0
votes
0answers
18 views

Running monit AND supervisord simulatenously. Any possible issues?

Two aims: 1) Make sure background daemons such as webserver/rabbitmq are running all the time. If they crash they are automatically restarted etc. For this I am using monit with a config like: set ...
0
votes
0answers
6 views

Monit cannot read content

I've installed the latest version of Monit and created a very basic rule: alert me when the word "Google" cannot be found on google.com (deface check). I keep getting following error: failed to [www....
0
votes
1answer
17 views

Monit showing 0 hosts connected

I am new to Monit. I have one VM and am trying to run M/Monit and Monit on the same server. I downloaded the binary for both and ran both processes. All M/Monit configs are default and I have not ...
0
votes
0answers
20 views

How to restart nginx when getting 502, with Monit

In Monit, how can I check the health of my Nginx server (if it is returning 502, for example) and how to restart it when this occurs. The environment is an Ubuntu 14.04 64bit
0
votes
2answers
40 views

Simple tool to monitor HAProxy web requests?

I'm looking for a tool that can monitor the number of requests that are going to the nodes within HAProxy to determine the need to push out another node to loadbalance the requests. Can something like ...
0
votes
0answers
23 views

Monitoring HAProxy to determine need to scale

I'm learning about load-balancing and auto scaling at the moment. I have a VM running HAproxy with 3 nodes under it to distribute traffic. My endgoal is to spam it to overload number of requests it ...
0
votes
0answers
31 views

Monit run script on restart

So I have been trying to get Monit to run a script on start of a service. While Monit has no problem restarting the service, I of course want to be alerted when if my service required starting, not ...
-1
votes
1answer
55 views

How do I execute monit commands from a shell script without root access?

I've installed and configured monit on a Debian server and opened the http service to localhost and gave rw permissions to the group "monit". I created this group and added myself to this group. The ...
-1
votes
1answer
41 views

Monit not able to start program in screen

I have monit able to watch the program but the start script is not working. The stop script works just fine. The when monit tries to start it, it just says execution failed. Monit part check ...
0
votes
1answer
16 views

“check file” in monitrc fails with syntax error

I have the following in /etc/monit/monitrc on line 130-131: check file ip-172-31-37-63:1.log with path /home/ubuntu/.vnc if match "Connections\: accepted" then exec /home/ubuntu/alerts/slack.rb ...
0
votes
0answers
23 views

Monit for PHP7 connection failed

Trying to get monit working for PHP7 but getting a connection error. Here is the config file: check process php7.0-fpm with pidfile /run/php/php7.0-fpm.pid group phpcgi start program = "/usr/sbin/...
2
votes
0answers
6 views

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

MONIT: Monitoring logfile on counting and changes of timestamp

I want to monitor a logfile and I am only interested in the "Received new block" lines. I need two different scripts to monitor a) the height, which should always be one number higher then the height ...
2
votes
1answer
45 views

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

Configure alerts on failed Unicorn restart

Our setup looks like this: Ubuntu 14.04.4 LTS AWS Opsworks Chef 12 Monit 5.17 Ruby 2.3 Rails 4.0.8 And we managed to get everything working just nicely, yet however if for some reason, Unicorn ...
-1
votes
2answers
104 views

Debian: How to upgrade MONIT correctly?

I did sudo apt-get install monit but it only installs version 5.9 and the current version is 5.17.1. So I did wget https://mmonit.com/monit/dist/binary/5.17.1/monit-5.17.1-linux-x64.tar.gz to download ...
0
votes
0answers
31 views

Is it possible to visualize disk stats using Monit Graph?

I am using Monit and Monit Graph in order to monitor Mysql and Apache processes. I have found in monit documentation and in serverfault (also here) that I can monitor disk usage and get alerts. ...
0
votes
1answer
21 views

Monit is reporting low memory use

Monit is reporting very low memory use that is not consistent with actual use. If I look at Monit, under System I see "5.7% [918.0 MB]" though the real scenario is very different; total ...
0
votes
0answers
16 views

How to set maximum limit to monit exec?

I have monit setup on servers. I am sending out SNS on monit alerts as below. check filesystem "root" with path /dev/xvda1 if space usage > 80% for 10 cycles then exec "/bin/bash -c '/usr/...
0
votes
1answer
34 views

monit can not resolve hostname: getaddrinfo does not find host

I use monit v5.16 running on Debian Wheezy to check if a server is up or down using the ping instruction. Here is my configuration: check host my.server.domain with address my.server.domain ...
0
votes
2answers
58 views

Prevent monit from checking while restarting

We have the following monit config which restarts tomcat if unable to connect to it: check host Tomcat-Foo with address localhost stop program = "/usr/bin/systemctl stop tomcat.service" start ...
1
vote
1answer
46 views

Monit Web Service not available

I'm trying to configure monit on my server using chef solo. When I visit port 2812 response saying this webpage is not availble. config/chef/files/default/monitrc set daemon 30 set pidfile /var/run/...
0
votes
1answer
57 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
145 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
15 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
38 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
88 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 ...
1
vote
0answers
51 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 www-...
0
votes
0answers
55 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 maintain_workers....
0
votes
4answers
58 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
24 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
7 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
144 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 ...
1
vote
2answers
224 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 infra)...
0
votes
0answers
11 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
33 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
24 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
28 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
66 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
48 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
339 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
119 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
36 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
144 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
172 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
80 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
247 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 ...