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

learn more… | top users | synonyms

2
votes
1answer
30 views

Process 'clamd' “not monitored”

the output of monit summary says clamav is not monitored. The configuration says: check process clamd with pidfile /var/run/clamav/clamd.pid start program = "/etc/init.d/clamav-daemon start" ...
2
votes
1answer
312 views

Monit won't run

I have two identical EC2 instances (the second is a replica of the first), running Gentoo. The first instance has monit running which monitors a single process and some system resources and functions ...
1
vote
1answer
61 views

monitoring error rate with monit

Is there a way to tell monit to alert me if there are more than X errors (e.g. lines matching "ERROR") in a log file in a certain time? My use case would be: errors sometimes appear in my log file ...
1
vote
1answer
216 views

Monit and amavis

I have noticed that occasionally amavis is not running. I thought monit was watching the process, however it doesn't seem to warn me or fix it. My monitrc entry looks like this and I can confirm ...
1
vote
1answer
35 views

monit “check program” with email?

I have this in a monit script (lines 11-13): check program foo with path "/usr/local/bin/foo.sh" with timeout 300 seconds if status != 0 then alert dan@example.com monit reload says: ...
1
vote
1answer
74 views

Is there an easy way to do monit start <name>, only if its not running?

I know you can do monit start <name> to start an individual process (eg if I had taken it down temporarily using monit stop <name>), but is there any easy way to tell it to only start the ...
1
vote
1answer
575 views

Using runit and monit to run / monitor services

I am configuring some services to run on Ubuntu server. I was going through the link below where they use runit to run the services and monit to monitor the services - ...
1
vote
1answer
287 views

How to run a shell script before restarting a service in Monit in case of a crash

I am using Monit 5.3.2 in my Linux box. I am monitoring some services using Monit. I want to run a script before the running the restart command. I have used the below conditions for the same. if ...
1
vote
1answer
560 views

How to display all process matching a pattern in the monit web interface?

I am using monit to monitor all my processes which is matched using. check process [name] matching [process name pattern] Monit is able to match using the pattern and "monit procmatch [process name ...
1
vote
1answer
527 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 ...
0
votes
1answer
28 views

Monit config restart program

I have monit configuration like this: check process unicorn with pidfile /tmp/pids/unicorn.0.pid start program = "/etc/init.d/unicorn start" stop program = "/etc/init.d/unicorn stop" restart program ...
0
votes
1answer
50 views

Restarting shell script with &disown using Monit

I have a shell script that runs a C++ backend mail system (PluginHandler). I need to monitor this process in Monit and restart it if it fails. The script: export ...
0
votes
1answer
151 views

How to suppress monit alert if restart successful?

We only want to be alerted if the service fails to restart. Is this possible? That is if, on the first check the service is down then restart it and don't bother to send us an alert; but if the ...
0
votes
1answer
428 views

Logrotate for node.js app deployed using monit and upstart

I deployed a web application in node.js by following the guide: Deploying Node.js With Upstart and Monit . The app produces some log via console.log(). In the upstart script, it's redirected to a log ...
0
votes
1answer
266 views

How can I find a specific PHP process with pgrep (monit related)

I've got a number of php processes that I'm running in the background, with monit as the manager for them. My current config for monit looks like: check process myprocess1 matching ...
0
votes
1answer
628 views

Issues in monitoring apache tomcat server using Monit

I have installed Monit using the following command in Ubuntu Linux 12.04.1 server sudo apt-get install monit My main goal in using Monit is to restart my - MySQL and Apache tomcat services ...
0
votes
1answer
61 views

monit fails to run the command to start goliath server

can someone shed some clues as to why, when i run this command manually on terminal: /bin/bash -c 'cd /home/david/live && bundle exec ruby /home/david/live/api/goliath.rb -sv -e prod' its ...
0
votes
1answer
80 views

Can't get monit to start program

I'm trying to get monit to monitor a program and start it if it goes down. Here's my basic config: check process maitre_d_8000 with pidfile /home/tango/env/maitre_d/8000/pid.pid start program = ...
0
votes
1answer
291 views

Why Monit does not work with my MySQL configuration file?

I'm using a custom configuration file for mysql in /etc/mysql/conf.d/myfile.cnf The contents of the file [client] port = 3306 socket = /var/run/mysqld/mysqld.sock [mysqld_safe] socket ...
0
votes
1answer
156 views

Monit runs exec action too often

I've written a script which sends me an sms notification. I call with exec action in monit test. It works, but I'm getting overwhelmed by messages. Is there a way to suppress sending subsequent ...
0
votes
1answer
63 views

monit sumary not working when domain specified in use address

When I specify an actual domain in my monitrc file like so: set httpd port 2812 and use address domain.com # only accept connection from localhost allow localhost # allow localhost to ...
0
votes
1answer
145 views

Monit: 2 checks, one action

Is something like this possible with monit: check process foo with bar check process foo2 with bar2 start program = "baz start" stop program = "baz stop" Basically I'm looking for an "OR" ...
0
votes
1answer
127 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" ...
0
votes
1answer
148 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 ...
0
votes
1answer
84 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 ...
0
votes
1answer
224 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 ...
0
votes
1answer
574 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 ...
3
votes
0answers
191 views

Monit will not start my node js app

I have a problem with Monit that I use for monitoring of my Node.js app. I just moved from a single core machine to a multi core one. On both of them I run Ubuntu 11.10. On the old one this was ...
3
votes
0answers
150 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 ...
2
votes
0answers
304 views

Monit unable to start sidekiq on Opsworks server

I have used AWS Opsworks to create some servers. I have Sidekiq running as part of my Rails application. When I deploy Sidekiq restarts nicely. I am configuring Monit to watch the pid and start and ...
2
votes
0answers
332 views

Monit http-based API

I'm just wondering whether monit has an API, which we could poll-regularly (perhaps something that is http-based) ? It would be very useful to create an integrated monitoring solution across multiple ...
2
votes
0answers
329 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 ...
1
vote
0answers
43 views

monit does not run script after “if does not exist” check

I'm having trouble with monit. I have setup monitoring with monit. However, I'm having trouble with a check for the process running. If the process is not running, i want to run an specific script ...
1
vote
0answers
57 views

Is there any way to have monit not try to restart a process?

I have monit watching a process and killing it if it's running for too long. I do not want this process to be automatically restarted, however. I don't have a start program specified, but each cycle, ...
1
vote
0answers
226 views

using monit to control node.js pm2 response time

I want to use monit for ability to reload pm2 node.js site if response is longer than 2 seconds. This is my monit config /etc/monit/monitrc: check process pm2 with pidfile ...
1
vote
0answers
252 views

Configuring Monit to Send Mail through Office365

I'm trying to configure monit to send emails through Office365. Here's the relevant configuration: set mailserver smtp.office365.com port 587 username "username" password "password" using ...
1
vote
0answers
74 views

Restarting a program with monit

Hopefully someone can help me out with this: I am running a game server that crashes with a segfault every 3 hours, I am trying to get a restart script working but I'm a complete noob when it comes to ...
1
vote
0answers
428 views

Monit check log file content

I am having a issue with Monits content check. I know I can check the log file like this check file test.log with path logs/test.log if not match "something" for 5 cycles then alert But the log ...
1
vote
0answers
242 views

Monit 5.3.2 not working on Ubuntu 12.04 x86_64

I have monit working on several servers but when I install it on Ubuntu 12.04 64-bit server I get the following error reported in the log file and monitoring doesn't work. [EDT Jun 24 21:26:20] error ...
1
vote
0answers
276 views

Monit unable to send email alerts

I have set monit to send email if my java listener failed on port 8000. I have tried to close the listner and run monit validate below is the errors I got. monit validate 'cs8000' process is not ...
0
votes
0answers
13 views

High cpu usage of Play server when started by monit

When I run "play start" from command line, the CPU load is very light. But when monit starts the program (as the same user), then the CPU usage tends to 100 - 130% all the time! Here is the content ...
0
votes
0answers
32 views

Monit: How to check a program executed by a specific user?

I have been using monit/mmonit to monitor my system. One if its features is the check program syntax, which runs a program and validates its return value: # Asserts that there are more than 40 users ...
0
votes
0answers
47 views

How to configure monit on directadmin to add monitoring services?

I know how to install and run monit On centos 6 64bit but I need help to configure monitoring services on directadmin. Apache check process apache with pidfile /run/apache2.pid start program = ...
0
votes
0answers
65 views

Monit send alert to nagios NSCA

I want to monitor a web with monit check host function and if the site is down then alert it to nagios nsca so it sends the info to nagios and nagios marks it as status OK or host down for example. ...
0
votes
0answers
16 views

Control system monit with users

I want to have monit start on system boot, potentially to monitor several rails delayed_job apps, each as a different user. I have it working as root, each monitoring definition specifying the user ...
0
votes
0answers
83 views

monit, unable to start node.js script

I need to run my stats collecting daemon & send alerts, when it is down. I tried thousands of variants.. and last was: check process collect-stats with pidfile ...
0
votes
0answers
35 views

monit service permission starting a linux service

I'm running monit to monitor a linux service i wrote which basically makes sure that a mounted partition exist. the service start action is: mount -a the service stop action is: umount /...../.... ...
0
votes
0answers
26 views

Monit stop script never called

My monitrc looks like this : check process java with pidfile /opt/release/RUNNING_PID start program = "/bin/su -c /opt/release/start.sh root" stop program = "/bin/su -c /opt/release/stop.sh ...
0
votes
0answers
397 views

how to config monit for send mail alert apache restart

I'm configuring /etc/monitrc and I need a config that Monit sneds an alert email when httpd service start I'm trying with this configuration: check process httpd with pidfile /var/run/apache2.pid ...
0
votes
0answers
93 views

Monit: How to temporarily unmonitor a process as a non-root user?

I need to temporarily unmonitor a custom daemon when I deploy a new version. I tried monit unmonitor <name>, but it says I don't own monitrc since my deploy script does not run as root or have ...