Questions tagged [monit]

Monit is a free open source utility for managing and monitoring, processes, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.

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.

434 questions
82
votes
7 answers

Debugging monit

I find debugging monit to be a major pain. Monit's shell environment basically has nothing in it (no paths or other environment variables). Also, there are no log file that I can find. The problem is, if the start or stop command in the monit script…
Brian Takita
  • 1,615
  • 1
  • 15
  • 20
74
votes
13 answers

How to monitor delayed_job with monit

Are there any examples on the web of how to monitor delayed_job with Monit? Everything I can find uses God, but I refuse to use God since long running processes in Ruby generally suck. (The most current post in the God mailing list? God Memory…
Luke Francl
  • 31,028
  • 18
  • 69
  • 91
59
votes
6 answers

God vs. Monit for process monitoring

Which one to use for process monitoring and why?
Milan Novota
  • 15,506
  • 7
  • 54
  • 62
54
votes
2 answers

Is there benefit to using Monit instead of a basic Upstart setup?

I'm configuring my server to run node.js as a daemon. I've setup Upstart to handle startup and shutdown of node, which works wonderfully. The next step is to make sure that node.js is restarted if it dies. A few of the guides have suggested using…
James Gregory
  • 14,173
  • 2
  • 42
  • 60
46
votes
2 answers

Monit daemon - error connecting to the monit daemon

I installed monit and tried to check the status using below command. monit status But end up with below error. monit: error connecting to the monit daemon How can I fix this?
Techie
  • 44,706
  • 42
  • 157
  • 243
46
votes
11 answers

Redis Daemon not creating a PID file

The Redis startup script is supposed to create a pid file at startup, but I've confirmed all the settings I can find, and no pid file is ever created. I installed redis by: $ yum install redis $ chkconfig redis on $ service redis start In my…
jsmartt
  • 1,404
  • 1
  • 15
  • 22
44
votes
3 answers

Daemon vs Upstart for python script

I have written a module in Python and want it to run continuously once started and need to stop it when I need to update other modules. I will likely be using monit to restart it, if module has crashed or is otherwise not running. I was going…
maaz
  • 4,371
  • 2
  • 30
  • 48
35
votes
2 answers

What is the advantage of using supervisord over monit?

We have a custom setup which has several daemons (web applications + background tasks) running. I am looking at using a service which helps us to monitor those daemons and restart them if their resource consumption exceeds over a level. I will…
murtaza52
  • 46,887
  • 28
  • 84
  • 120
19
votes
1 answer

get monit to alert first and restart later

I would like to handle a kind of chain action in monit. check for a process and alert immediately. restart process after a num of cycles. My tries (so far): check process myprocess with pidfile /run/my.pid start program = "/path/to/binary start"…
questioner
  • 231
  • 1
  • 2
  • 6
16
votes
4 answers

Monit - stop service and stay stopped?

I have a daemon which runs via the usual init.d/service scripts. I have monit running which ensures these daemons are restarted if they crash. I have a request that 'service foo stop' should stop the deamon, and because it was explicitly stopped,…
David Kennedy
  • 321
  • 1
  • 3
  • 9
15
votes
3 answers

"monit restart " how do I know when it's done restarting?

Our sysadmin recently switched to using monit, and so now when I want to restart a service, I'm supposed to use "monit restart " instead of "/etc/init.d/ restart". However, the monit command, when successful, produces no…
Tim
  • 4,999
  • 3
  • 24
  • 29
13
votes
7 answers

Monitor ruby processes with Monit

I have a bunch of Ruby scripts which are long running, I'd like to ensure that every 30 seconds or so these are up. I normally start the commands by simply ruby script-name.rb How can I configure monit to look after these scripts? Update: I tried…
Tom
  • 33,626
  • 31
  • 85
  • 109
10
votes
6 answers

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 group phpcgi # phpcgi group start program =…
Adam Jimenez
  • 3,085
  • 3
  • 35
  • 32
9
votes
7 answers

Monit service name error

So I have the following in my monitrc file: check process apache with pidfile /usr/local/apache/logs/httpd.pid group apache start program = "/etc/init.d/httpd start" stop program = "/etc/init.d/httpd stop" if failed host XXX port 80 protocol…
user816604
9
votes
4 answers

How can I keep a Passenger Standalone up even after a restart?

I have a few apps running rails 3 on ruby 1.9.2 and deployed on a Ubuntu 10.04 LTS machine using nginx + passenger. Now, I need to add a new app that runs on ruby 1.8.7 (REE) and Rails 2. I accomplished to do that with RVM, Passenger Standalone and…
Pablo B.
  • 1,823
  • 1
  • 17
  • 27
1
2 3
28 29