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

learn more… | top users | synonyms

1
vote
1answer
495 views

What does monit consider to be memory usage?

Once can have monit monitor memory usage… check system foo if memory usage > 95% then alert Does it use free RAM, or free -/+ buffers/cache? (or something else?) # free -m total ...
1
vote
1answer
54 views

Why can't I see the monit binary in the process list after starting it?

I have monit running and working (I set up a dummy warning that is getting sent), but I don't see any binary called "monit" in the process list. Furthermore if I sort the processes by newest process, ...
7
votes
1answer
3k views

Sending a test/example alert from monit?

I've configured monit tests and alerts — but I want to make sure that everything in my alert stack (outgoing email servers, sms email gateways…) is functioning properly. Is there a handy way to fire ...
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 ...
2
votes
1answer
232 views

Monitor a long running process

I need to start a long running, memory/disk/cpu intensive process on Linux, and monitor it so I can : check it terminates with a good status code, collect stats (mem cpu disk every x minutes ) alert ...
2
votes
3answers
960 views

Monit - how to check loadavg only when no backup is running?

I've got Monit configuration with: check system example.com if loadavg (1min) > 4 then alert if loadavg (5min) > 2 then alert I want to get rid of messages every time backup is ...
1
vote
1answer
228 views

Simplifying monitrc (make it DRY)

Most of the monitrc examples I see are verbose, lots of repeated 5-10 line boilerplate checks. Is there any way to parametize this stuff? I want something like: ensure_rails 8080 ensure_php 8081 ...
5
votes
3answers
2k views

Can monit be configured to never unmonitor/timeout a service?

Monit seems to give up restarting a service if it fails a few times, and unmonitors it. I can't find anything in the documentation about the specifics of when or why. In my environment, I want it to ...
1
vote
3answers
223 views

Making sense of Ubuntu Server Status Info

I'm trying to create a simple shell script to monitor my server. I plan to set up a CRON job to run it every five or 10 minutes. Here's how it will work: Run a number of linux commands e.g. iostat, ...
11
votes
1answer
2k views

Disable Monit alerts when PID changed

When you monitor a process with Monit by its pid, like : check process blop with pidfile /.../blop.pid start program = "..." stop program = "..." you get an alert when the pidfile is ...
3
votes
0answers
145 views

monit reporting “connection failure” when actually a “content failure”?

I have a monit rule which looks like this: check host example.com with address example.com if failed url http://example.com/status content == "ok" then alert group example.com But when ...
0
votes
1answer
124 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
1k 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
124 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
138 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
669 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
540 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
81 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 ...
3
votes
2answers
718 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
141 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
73 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 ...
15
votes
5answers
7k 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
358 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
1k 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
0answers
248 views

Hot reloading monit configs?

Is there a way to hot-reload monit config files? or even restart monit with a single line? Our deploy scripts currently kill & restart monit - but that triggers some alerts. Any way around this?
0
votes
1answer
651 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
2k 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
127 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 ...
2
votes
4answers
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
288 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
49 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
310 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 ...
2
votes
2answers
937 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
217 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 ...
1
vote
1answer
697 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
504 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
671 views

What exactly does M/monit mean?

what exactly does M/monit mean?
0
votes
0answers
367 views

I have configured Webmin service in monit

I have configured webmin service in monit this way: check process webmin with pidfile /var/webmin/miniserv.pid start program = "/etc/init.d/webmin start" stop program = "/etc/init.d/webmin stop" ...
0
votes
2answers
436 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
630 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
1answer
609 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
1k 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
205 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
480 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
210 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
292 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
521 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
308 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 ...