Tagged Questions

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

learn more… | top users | synonyms

0
votes
2answers
482 views

Monit Webmin service is not activating

I have written a script in monit interface for Webmin service. I can execute the process wherien I am unable to restart the service. check process webmin with pidfile /var/webmin/miniserv.pid ...
2
votes
1answer
1k views

Using Monit to monitor Resque

I'm trying to use resque as a job runner for Rails. I've tried this config, and many other ways of demonizing the rescue task (because running rake resque:work leaves the terminal tied to that ...
1
vote
2answers
664 views

Monit not starting after OS upgrade to Ubuntu 10.04 LTS

Iv recently upgraded the version of Ubuntu from 9.04 to 10.04LTS (through 9.10) and now Monit won't start. Doing a sudo /etc/init.d/monit syntax says the syntax is ok. If I run the command sudo ...
1
vote
3answers
799 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 ...
0
votes
2answers
2k views

Monitoring thin with monit

I have been struggling to get monit to monitor my thin cluster for some time now. I am using 3 thin instances. These are my monit and thin config files: /etc/thin/vocab.yml: pid: tmp/pids/thin.pid ...
0
votes
1answer
240 views

I'm having a ton of trouble installing a process manager for my Rails app

After a long time wasted trying to get Bluepill to work for process management, I'm trying to get monit set up. I'm not a Sys Admin but know my way around *nix systems. I'm a bit stumped here. When ...
0
votes
1answer
527 views

How to create monit monitor to alert when a line of text is NOT seen in a log file over a period of time

I can see how to alert when a regex appears in a log file. I can see how to alert when a regex does not appear on EVERY line of a log file. But I can't see how to alert when a regex has not appeared ...
1
vote
1answer
211 views

Ubuntu service monitoring like “monit” - do you use it?

What are your thoughts on using any kind of service monitoring to auto restart services that failed? Is monit a good solution?
3
votes
3answers
331 views

Using monit for a process that doesn't background/run as a daemon

I"m using montit for other processes I need to run, but I have a process which doesn't run as a daemon, and I can't figure out how to monitor it with monit
3
votes
4answers
536 views

Recommendations for Monitoring services [closed]

I would like to install a monitoring services (Monit or others) on my web server and am looking for recommendation. I have no idea which is good, and what parameters which I should evaluate on, and ...
0
votes
1answer
351 views

How can I trigger a Monit event when a service comes back up?

Given a config like this: check host web1 address web1 if failed host web1 port 80 protocol http then exec "/usr/local/bin/failover.sh -h web2" Can I detect if web1 has returned from failed ...
0
votes
2answers
679 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
4k 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
368 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
538 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
304 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 ...
4
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
293 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
853 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
210 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
616 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
1k 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
277 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
13k 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
544 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 ...
20
votes
3answers
8k 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 ...