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

learn more… | top users | synonyms

0
votes
1answer
11 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
23 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
17 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 ...
0
votes
2answers
99 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 ...
2
votes
1answer
129 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 ...
1
vote
1answer
88 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 ...
1
vote
1answer
210 views

Monit unable to start/stop nginx server

I have problems with monitoring nginx. Monit can monitor nginx and display resources usage (RAM usage, etc.), but is unable to start/stop nginx. I get only a simple message: "Execution failed". Syslog ...
0
votes
0answers
18 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
5answers
3k views

after installing monit when i do monit status myproc i get “error connecting to the monit daemon”

after installing monit when i do monit status myproc i get "error connecting to the monit daemon" I read somewhere that The status command won't work in the case that monit is running indaemon ...
2
votes
1answer
43 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 ...
1
vote
3answers
689 views

How do I setup a monit script to check if a directory exists and create it if it doesn't

In the monit documentation I can see there is a check directory command but I can't see any examples of how to use it to see if the directory exists and if it doesn't to create the directory using the ...
2
votes
1answer
152 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
31 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 ...
3
votes
1answer
175 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 ...
4
votes
3answers
1k views

Make monit wait longer before thinking something is dead

I'm trying to start a program (Resque) but it takes a bit of time before a pidfile is written. Thus, I think that Monit thinks the program hasn't started and starts one or two more programs before ...
2
votes
1answer
260 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 ...
2
votes
3answers
715 views

What exactly does M/monit mean?

what exactly does M/monit mean?
1
vote
2answers
49 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 ...
3
votes
3answers
784 views

How to prevent monit daemon stopped?

I use monit to make sure everything running fine, but monit daemon was also stopped. I dont know how this be, and how to prevent monit daemon from stopped?
0
votes
2answers
77 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
2answers
535 views

monit fails to start apache

I'm running Apache, and trying to monitor it wiht Monit. The monitoring seems to work fine, but when Apache is down, Monit does not succeed to start it. Monit does detect that it's down, but the ...
1
vote
1answer
98 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
0answers
53 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
51 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
123 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 ...
2
votes
1answer
1k views

monit send email does not work

I am trying to use monit, and set up email server using gmail. The configuration file is like this: set mailserver smtp.gmail.com port 587 username "someuser@gmail.com" password "password" using ...
0
votes
1answer
74 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
4answers
2k views

monit configuration for php-fpm

I'm struggling to find a monit config for php-fpm that works. This is what I've tried: ### Monitoring php-fpm: the parent process. check process php-fpm with pidfile /var/run/php-fpm/php-fpm.pid ...
0
votes
1answer
295 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
41 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
82 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
86 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
96 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
177 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
1answer
2k views

Free alternatives to M/Monit interface for the Monit systems management system [closed]

I really like Monit systems management system but I have no IT budget to purchase M/Monit interface which is used to manage multiple hosts for our small university lab. I have checked out Ruby based ...
1
vote
2answers
92 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
100 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
54 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 ...
2
votes
1answer
183 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
0answers
180 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 ...
1
vote
1answer
53 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
161 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
1answer
95 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 ...
1
vote
1answer
77 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
0answers
15 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 ...
1
vote
1answer
54 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 ...
0
votes
0answers
61 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
votes
4answers
689 views

cacti + nagios + monit =? [duplicate]

Currently I've got this trio configured, but I would like to have one solution, because configuring those 3 separately is a head ache time to time. First add service to monit, then to nagios and after ...
0
votes
1answer
174 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
201 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 ...