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

learn more… | top users | synonyms

0
votes
1answer
130 views

why i am not able to access Gui panel at 2812 port

I followed this http://fosscasts.com/screencasts/6-System-Monitoring-With-Monit set daemon 20 set logfile /var/log/monit.log set mailserver smtp.gmail.com port 587 username "myemail" ...
5
votes
3answers
2k views

monitoring nfs with monit

I'd like to monitor NFS mounts and the NFS server process using Monit. On the server, I'd need a PID file, but I can't seem to find a way of getting that created with existing configuration files. ...
1
vote
5answers
127 views

Custom server monitoring: Monitoring number of specific files in specific directory

I have many server running on live. Each server has many application. Each application has directory like /etc/somedir1, /etc/somedir2 where in each of that directory has many .html files. The ...
0
votes
1answer
164 views

Running monit on Suse SLED 10

Can anyone tell me how to get monit to start at boot on Suse SLED 10 ? Suse seems to do services different than everyone else. I found a link to a monit init file, but I don't think it will work ...
-1
votes
4answers
772 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 ...
3
votes
1answer
649 views

Monit having trouble determining if the Bitcoin daemon is running

I'm setting up Monit to monitor the Bitcoin daemon to make sure it runs 24/7 and restarts it if something goes wrong. The Bitcoin binary is at /usr/local/bin/bitcoind, and the data directory is at ...
0
votes
1answer
94 views

Monit process aliasing

I have Monit checking a process whose name is just "python", but would like a more informative name (e.g. "webapp") in status, emails, etc. Is there any way to declare an alias, or would I have to ...
4
votes
2answers
1k views

Monit connection test frequency

I want to have Monit check a web application's health, running a cheap/trivial check frequently and an expensive/nontrivial check less frequently (e.g. 1/5 minutes). How can I tell it to check a given ...
0
votes
1answer
148 views

Monit catch run-away process

There are examples for how to make Monit detect a service going amok and use too much RAM. But what if the service forks a program and the child takes too much RAM? Or put another way, how can I make ...
1
vote
1answer
76 views

Change postfix logging behavior to omit connections from localhost due to monit

I have a fairly standard postfix installation which is monitored using monit. Monit checks the connection every so often and when it does, the connection from localhost is somewhat polluting my log ...
0
votes
1answer
2k views

mysql monitoring with monit

can someone please steer me in the right direction. I'm completely new to Monit, set it up, everything working fine, but I'm having a problem with mysql. This is the set up in my conf file: check ...
18
votes
5answers
11k views

monit: check process without pidfile

I'm looking for a way to kill all processes with a given name that have been running for more than X amount of time. I spawn many instances of this particular executable, and sometimes it goes into a ...
1
vote
3answers
375 views

Puppet defined resource - selective parameterization?

I'm currently banging my head trying to find the "best way" to achieve this type of granularity for puppet: I have a server running memcached in testing environment and another one running for the ...
3
votes
1answer
2k views

Monit is restarting apache2, should I fix the monit config, or the server config?

Monit is restarting apache2 frequently, based on the totalmem > 200m test in my apache2 stanza. I'm not sure that I actually have a problem, or if I should increase the totalmem test in my monit ...
0
votes
1answer
1k views

Monitoring hanging processes

I need to monitor hanging processes on the output of ps -ef | grem GMC... What's the best way to do this without running this command manually and being stuck in front of a command line all day? I'd ...
6
votes
4answers
3k views

How to disable Monit instance start/stop alerts?

Monit sends an alert every time the monit daemon is stopped or started. This is obnoxious and not useful information. According to the docs, I set: set alert user@mycompany.com but not on { ...
0
votes
1answer
141 views

Apache and monit keep crashing

I'm using a VPS on Ubuntu 10.10 to serve my private website and Apache 2.2.16 keeps crashing without a trace. The server is on a very light load with about 300 visits/day. To solve this I have set up ...
3
votes
5answers
5k 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
397 views

With Monit, how do I restart a process when a directory timestamp check fails?

In my /etc/monit/monitrc I have the following lines: check process foo_server with pidfile /var/run/bwam_server.pid start program = "/Users/foo/foo_server.sh start" stop program = ...
0
votes
2answers
50 views

Is there a way to test an individual Monit control file?

I've created a Monit control file, but it doesn't seem to be working. It would be nice to have a way to test Monitor control files other than by just letting them run and seeing if they work. Anyone ...
2
votes
0answers
355 views

Kill runaway Phusion Passenger child processes with monit?

Is there any way to monitor and kill Phusion child processes that are using too much memory or cpu with monit? There are many examples for Apache, but since Phusion runs in its own process, runaway ...
3
votes
3answers
1k views

Monit can't detect MySQL, but I can

Monit is configured to watch MySQL on localhost at port 3306. check process mysqld with pidfile /var/lib/mysql/li175-241.pid start program = "/etc/init.d/mysql start" stop program = ...
0
votes
1answer
245 views

need some help figuring out clamav & monit monitoring error…unixsocket

I need a bit of help figuring something out. First off, I'm not very well versed with FreeBSD servers, etc. but with some direction hopefully I can get this fixed. I'm using FreeBSD and installed ...
2
votes
1answer
1k views

Configure a app in a subpath in nginx

I have a nginx + passenger + single rails app setup in a Fedora server. My nginx.conf regarding my app looks something like this: server { listen 80; server_name myapp.mycompany.com; root ...
0
votes
1answer
672 views

Problem to monitor ssh service with M / Monit

In the office we have a server M / Monit to monitor all servers. In the last few days, on some servers can not monitor the ssh service. All servers have the same configuration to monitor the service ...
2
votes
3answers
857 views

What exactly does M/monit mean?

what exactly does M/monit mean?
0
votes
2answers
551 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
701 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
980 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
287 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
610 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
217 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
394 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
562 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
427 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
695 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 ...
2
votes
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
383 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
564 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
352 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
3k 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
297 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
983 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
214 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
639 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 ...