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

learn more… | top users | synonyms

0
votes
2answers
662 views

Catching unresponsive / high load mysql, perhaps with monit?

I'm having intermittent occurrences of mysql causing high load on the machine, making the web app unavailable. I'm using monit to monitor it, but it doesn't catch the issue, apparently because it can ...
1
vote
1answer
108 views

Is it safe to run Postfix w/o securing it?

Does postfix need to be secured before it's safe to run it on a production server? I rely on Monit to notify me if certain processes are down or in trouble. For this purpose and this purpose only, I ...
1
vote
5answers
3k views

monit syntax error : “if 5 restarts within 5 cycles then alert”

I am trying to get an alert from monit if it fails to restart a service 5 times, but I get a syntax error /etc/monit/monit.d/engine.conf:5: Error: syntax error 'alert' any idea what's wrong with ...
0
votes
2answers
357 views

Monitoring mongrel with monit

I wrote a monit.d file for mongrels which works in this version: check process redmine with pidfile /home/redmine/service/redmine.pid group webservice start program = "/usr/bin/mongrel_rails start ...
0
votes
2answers
524 views

nginx won't respond to monit

Although EngineX is running, monit can't seem to figure it out. Here's my monit log: [PDT Apr 13 02:19:19] error : HTTP error: Server returned status 400 [PDT Apr 13 02:19:19] error : 'nginx' ...
0
votes
2answers
284 views

How to check the result of a script with monit?

Is there a way to check the result of a script with monit? For example a script returns 0 means ok, but 1 means failed. The idea is to call the script from monit on the local machine directly and ...
3
votes
3answers
2k views

vsftpd does not create pid file required for monit

I want to monitor vsftpd server from monit on CentOS 5.4 but somehow vsftpd does not create pid file in /var/run (nor in any other place). Is this behavior normal for this distro? How should I ...
2
votes
2answers
289 views

daemon running for several hours, and dies

After restart server, this is running: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19653 lighttpd 16 0 67584 39m 16m R 21.3 15.3 0:17.60 php-cgi 8006 mysql 15 0 ...
7
votes
1answer
1k views

How to monitor passenger with monit

I want to set up monit to monitor passenger but everything I've found so far has basically said just monitor your website using monit. If possible I'd like to monitor passenger directly so I have more ...
3
votes
3answers
771 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
1answer
209 views

Start monit with a stopped service

Is it possible to have an entry for a service in monit where the service is not started on system startup and on monit startup and monit displays it's status and only starts or stops it, when I ...
1
vote
2answers
587 views

Monit network availability checking

I'd like to start a service with monit but only when I have the correct ip bound to the host. Can this be done somehow with the normal config? For example I want to start a process xxx with pidfile ...
1
vote
3answers
969 views

mailserver for google apps email

My domain is using google apps email for its email hosting. I was wondering if there was some way to connect to google email from my unix server so that I can send mail through that google apps ...
1
vote
3answers
1k views

Monit doesn't pick up httpd process after reset

I've installed Munin and Monit on one of my servers running CentOS 5. Everything is working well, logging and reporting info, except for when the httpd process is restarted. I have Monit set to ...
14
votes
5answers
3k views

What is the best way to monitor a production server?

We are running two production servers with Apache 2 and MySQL. I am looking for a reliable way of monitoring our load, stability and uptime. I have come across monit, but are there better ...
0
votes
3answers
2k views

Setting up monit to work with Varnish and nginx

I have a problem with monit where occasionally Varnish will crash and refuse to start. So Varnish is dead and my webserver is inaccessible. Here's the message from the monit log: info : 'varnish' ...
0
votes
1answer
274 views

Staging and Production versions of same Monit job

I have monit configured to monitor a job for the production version of my application: # in /etc/monitrc: include /etc/monit/delayed_job.my_app.production.monitrc # in ...
2
votes
3answers
2k views

Monit wont start/stop any processes

I've got monit running on a linux vserver, installed in a custom location /home/user/bin/monit as that is the only suitable location according to the webhost providers. When I installed monit I ...
4
votes
4answers
12k views

Simple way of restarting crashed processes?

I need to monitor several processes running on my webserver. For some reason, varnish currently crashes once every day or two. I'm using monit to supposedly restart varnish automatically, but it ...
0
votes
1answer
539 views

Monit & backgroundrb with custom gem paths

I'm trying to use monit to monitor a backgroundrb process (that gets killed occasionally), but I cant seem to seem the start or stop commands to work (i simply get 'execution failed') - though they do ...
17
votes
3answers
7k views

How i configure monit to start a process with a determinated user?

Monit runs with root, but i don't want to start my processes as root.. like mysql, mongrel, apache..
0
votes
1answer
247 views

Monit connection testing, -1 response not being caught

I have a problem with apache 2.2 on my ubuntu 6.06 LTS server, some old rails sites are producing seg faults and all sorts of madness which seems to be eventually dragging down apache. I am migrating ...