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

learn more… | top users | synonyms

1
vote
1answer
39 views

Monitor a process using monit in ubuntu

On my server I have started a service using a script created by myself. I want to monitor that process using monit. I didn't see any .pid file for that process in the /var/run directory. How can I ...
1
vote
1answer
37 views

How do I check file count inside a directory with monit?

I have a directory on my server and I want to monitor the number of files inside this directory with Monit... How can I do this? Thanks.
0
votes
0answers
13 views

High cpu usage of Play server when started by monit

When I run "play start" from command line, the CPU load is very light. But when monit starts the program (as the same user), then the CPU usage tends to 100 - 130% all the time! Here is the content ...
1
vote
2answers
34 views

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

Monit cannot restart apache

I have got monit installed on a lot of our VMs. It all works fine except for this one VM. Monit is set to monitor apache and check if it is down. For some reason, monit is saying that apache is down ...
0
votes
1answer
42 views

Monit on EC2 - Monit works but it doesn't monitor any service

I have a ubuntu 14.04 instance on amazon, I've installed monit with some simple configuration files but it seems like it doesn't monitor them. I have installed monit a couple of times in other servers ...
0
votes
0answers
33 views

Monit: How to check a program executed by a specific user?

I have been using monit/mmonit to monitor my system. One if its features is the check program syntax, which runs a program and validates its return value: # Asserts that there are more than 40 users ...
1
vote
0answers
47 views

monit does not run script after “if does not exist” check

I'm having trouble with monit. I have setup monitoring with monit. However, I'm having trouble with a check for the process running. If the process is not running, i want to run an specific script ...
0
votes
1answer
29 views

Monit config restart program

I have monit configuration like this: check process unicorn with pidfile /tmp/pids/unicorn.0.pid start program = "/etc/init.d/unicorn start" stop program = "/etc/init.d/unicorn stop" restart program ...
0
votes
1answer
52 views

Restarting shell script with &disown using Monit

I have a shell script that runs a C++ backend mail system (PluginHandler). I need to monitor this process in Monit and restart it if it fails. The script: export ...
0
votes
1answer
161 views

Cannot read status the monit daemon, even with allowed group

I cannot seem to get monit status or other CLI commands to work. I've built monit v5.8 to run on a Raspberry Pi. I'm able to add services to be monitored, and the web interface can be accessed just ...
1
vote
1answer
223 views

Monit cannot connect to Solr/Jetty instance

I have my Solr/Jetty up and running well on Ubuntu 12.04. I am trying to hookup my monit conf to monitor it, but it is having trouble connecting to the service. I have Solr running on port 8983 and ...
0
votes
0answers
49 views

How to configure monit on directadmin to add monitoring services?

I know how to install and run monit On centos 6 64bit but I need help to configure monitoring services on directadmin. Apache check process apache with pidfile /run/apache2.pid start program = ...
2
votes
1answer
70 views

How to make Monit “check process” conditional?

I have a monit script that does something like this: check process sidekiq_1 with pidfile /tmp/pids/sidekiq_1.pid start program = "/bin/bash -l -c 'bundle exec sidekiq start" as uid jim and gid jim ...
5
votes
3answers
287 views

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 ...
2
votes
1answer
456 views

Bash script match grep output and send message

I am developing a script for monit status checking so I can send OK status messages to NagiOS NSCA server (passive checks). The problem I am having is that my bash script still sends messages if the ...
0
votes
1answer
118 views

Monit and multiple actions: chaining commands in Monit restart command?

After some researches, it occurs that even if I can find some talks about multiple actions when restarting a service, it also seems it it not really possible to achieve : if failed port 80 and ...
4
votes
1answer
573 views

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 ...
3
votes
1answer
200 views

Upstart: Why two processes when running as a different user?

I want to keep a nodejs app running, so I followed this: http://howtonode.org/deploying-node-upstart-monit and installed Monit and Upstart which have been working perfectly for a couple of months. I ...
1
vote
2answers
140 views

using monit to kill the right process withown knowing it's PID

I am trying to use monit to find surefire processes running too long and kill them. The machine is running parallel builds so it is possible to have several surefire processes runnig at the same time ...
1
vote
1answer
299 views

Monit configuration reload - supposed to restart monitored services?

Running Monit 5.4 on an Ubuntu server. When I use monit reload, it seems that it restarts monitored services (Tomcat 7 in this situation). Is it the expected behavior? Documentation says : reload ...
0
votes
2answers
199 views

Monit monitor http status with 404 page

I am trying to monitor HTTP status with 404 or 403 page. As you all know Monit takes those pages as failed connection, but how could I change that. I just want to monitor that it shows the 404 or 403 ...
0
votes
2answers
166 views

Monit issues with mysql Ubuntu server 12.04

I've installed Monit on Ubuntu server 12.04 but Im having issues getting mysql monitoring to work at all. Here is what I have done so far. #/etc/default/monit startup=1 #/etc/mysql/my.cnf pid-file ...
0
votes
0answers
66 views

Monit send alert to nagios NSCA

I want to monitor a web with monit check host function and if the site is down then alert it to nagios nsca so it sends the info to nagios and nagios marks it as status OK or host down for example. ...
1
vote
0answers
57 views

Is there any way to have monit not try to restart a process?

I have monit watching a process and killing it if it's running for too long. I do not want this process to be automatically restarted, however. I don't have a start program specified, but each cycle, ...
1
vote
0answers
231 views

using monit to control node.js pm2 response time

I want to use monit for ability to reload pm2 node.js site if response is longer than 2 seconds. This is my monit config /etc/monit/monitrc: check process pm2 with pidfile ...
0
votes
1answer
158 views

How to suppress monit alert if restart successful?

We only want to be alerted if the service fails to restart. Is this possible? That is if, on the first check the service is down then restart it and don't bother to send us an alert; but if the ...
0
votes
1answer
430 views

Logrotate for node.js app deployed using monit and upstart

I deployed a web application in node.js by following the guide: Deploying Node.js With Upstart and Monit . The app produces some log via console.log(). In the upstart script, it's redirected to a log ...
1
vote
1answer
44 views

turn off monit text alerts at night

I have monit running 24/7/365 and sending alerts to an e-mail address and text messages to a phone equally. However I would now like to stop the phone text msgs at night so they don't wake me up. I ...
0
votes
1answer
103 views

Monit's check process do not respond on process kill

I put next file in /etc/monit/conf.d/sidekiq: check process sidekiq with pidfile /data/my_app/current/tmp/pids/sidekiq.pid And expect that monit will log a message when service is not running. I ...
0
votes
1answer
120 views

Configure Monit to delete /var/lib/mysql/mysql.sock after abrupt Centos6.5 machine shutdown

I have Monit monitoring Mysql. When the machine shuts down abruptly eg a power failure, mysqld cannot be restarted unless /var/lib/mysql/mysql.sock is deleted, due to the error Another MySQL daemon ...
-2
votes
1answer
110 views

How can i send daily alerts for linux server monitoring using Monit tool(free edition)? [closed]

Hi i am using monit free edition tool to monitor server status, but in that the alerts works only when some triggering action done. But i want to send a daily alert of all the details of server as ...
-1
votes
1answer
298 views

Monit system cpu usage

Monit version: 5.0.3 Server: Ubuntu 10.04.4 LTS I want to monitor the system cpu usage with Monit and I am trying as follows: check system host_name if cpu usage (user) > 70% then alert if ...
1
vote
2answers
148 views

Monit: how do you stop monit from running the exec statement every time the test fails?

How do you stop monit from running the exec statement every time the test fails? The statement in my monitrc is: check filesystem tmpfs with path /var ...
1
vote
1answer
128 views

m/monit and ec2 autoscaling

I've been using monit for some time and have really liked it thus far. I recently decided to give m/monit a try and the UI looks great and is super informative. My only hang up is monitoring servers ...
0
votes
1answer
105 views

How to redirect the output of an exec command to the monit log?

Is it possible to redirect the output of an exec command to the monit log? check host example.org with address example.org if failed port 80 protocol http for 2 cycles then exec ...
1
vote
0answers
259 views

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 ...
2
votes
1answer
265 views

monit mysql server blocked because of too many bad connections

Is there any tweak for monit or another way to monitor whether one server can access mysql on another server? I tried it with monit but as you probably know, after 10 attempts, mysql blocks the ...
1
vote
1answer
61 views

monitoring error rate with monit

Is there a way to tell monit to alert me if there are more than X errors (e.g. lines matching "ERROR") in a log file in a certain time? My use case would be: errors sometimes appear in my log file ...
0
votes
1answer
143 views

Can't get monit to run “exec” actions

I've got a working monit installation on CentOS 6.5. Events are getting detected and alert mail is getting sent, but I'm trying to get other things to happen when an event fires, via the exec ...
0
votes
0answers
16 views

Control system monit with users

I want to have monit start on system boot, potentially to monitor several rails delayed_job apps, each as a different user. I have it working as root, each monitoring definition specifying the user ...
0
votes
1answer
279 views

How can I find a specific PHP process with pgrep (monit related)

I've got a number of php processes that I'm running in the background, with monit as the manager for them. My current config for monit looks like: check process myprocess1 matching ...
0
votes
0answers
85 views

monit, unable to start node.js script

I need to run my stats collecting daemon & send alerts, when it is down. I tried thousands of variants.. and last was: check process collect-stats with pidfile ...
1
vote
1answer
97 views

M/Monit how to see current disk space?

In the admin interface of M/Monit under Reports -> Analytics I can chose to show Space %. How can I make the Monit clients submit this info? Is there a way to display Disk Space percentage on the ...
0
votes
1answer
350 views

Monit is not restarting process

I have monit to monit a process but it doesn't realize it is down. My monit configuration is this: check process xxx with pidfile /var/run/xxx.pid group yyy start program = "/etc/init.d/xxx start" ...
0
votes
1answer
280 views

monit with ssl (https)

I recently installed monit (on debian) and everything is working fine. Now I would like to enable ssl support. I did what I found in the documentation: set httpd port 2812 ssl enable pemfile ...
0
votes
1answer
90 views

using monit to monitor processes

i am trying to figure out how to use monit to get a notification when one of my processes starts to run once again. let me be clear- at first the process is running, stops to run and then runs again. ...
2
votes
1answer
135 views

Monit “is alive” check of PostgreSQL tends to fail during a run of pg_dump, is there a better way?

I use pg_dump for my primary backup, once every three hours. I also use monit. When monit checks if PostgreSQL is alive during the pg_dump run, it sometimes times out, and restarts postgres. This ...
0
votes
1answer
823 views

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 ...
1
vote
1answer
74 views

Monit fails Jenkins HTTP test when Jenkins is on subdirectory

I am using Monit to monitor all of my services. The Jenkins process fails its HTTP test when Jenkins has the --prefix=/ci that I need to run it behind Apache. Is there any way to make Monit search ...