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

learn more… | top users | synonyms

2
votes
1answer
41 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
346 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
73 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
280 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
38 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
79 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
354 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
612 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 ...
0
votes
1answer
26 views

Configure Monit to monitor PHP5-FPM on Ubuntu/Nginx setup

System: LEMP running on Ubuntu 14.04 I'm trying to configure the tool Monit to restart Nginx or PHP-FPM if ever there is a problem. It is correctly monitoring Nginx however under status for PHP-FPM ...
0
votes
1answer
34 views

Monit failed to start shell script

So I am having a problem with monit starting a process this is my code: check process program_1 matching "program_1" start program = "/home/user1/files/start.sh" stop program = ...
0
votes
1answer
40 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
119 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
266 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
466 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
398 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
812 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
94 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
100 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
323 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
166 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 ...
3
votes
0answers
192 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
153 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
15 views

why basic auth loops when using nginx and monit

I was trying to configure nginx so that http://example.com/monit will access http://127.0.0.1:2812, which is the url monit is listening. Two authentication was set, via nginx(nginx.conf file) and ...
2
votes
0answers
372 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
355 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
334 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
6 views

How to get monit to only alert once when a check fails, not when it comes back successful?

Apologies if this is the same question as How to suppress monit alert if restart successful?, but it appears like it might be different, so I'm asking again.. We want to have a monit alert check when ...
1
vote
0answers
26 views

monit: how send email like alert

I'd like customize alert message add the option if cpu > 75% for 2 cycles then exec "command|mail -s subject test@example.com" to monitrc config file how can I add that command? check ...
1
vote
0answers
130 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
60 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
275 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
331 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
78 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
516 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
254 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
285 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
9 views

Using Monit to reload (without changing PID)

I'm able to start and stop a process configured with monit (through Upstart) with no issue. However, restarts/reloads of this process should be gentle, with no downtime/PID changes. The process ...
0
votes
0answers
14 views

Monit event on process recovery

Anybody knows how to do an event a single time when a process is recovered? check process apache with pidfile /var/run/apache2.pid group www-data start program = "/etc/init.d/apache start" stop ...
0
votes
0answers
47 views

Make Monit check OpenVPN client connection status

We're running a multi-site business, each site connected to a central OpenVPN server to provide access to internal systems. I'm currently using Monit to check if OpenVPN client is running and if the ...
0
votes
0answers
15 views

Monitor link status with monit

Does anybody know a good way to monitor an ethernet link status (packet losss, connection loss) with monit? The default config file only provides 1 example for network monitoring (through pings and ...
0
votes
0answers
26 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
54 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
83 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
70 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
20 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
104 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
39 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
28 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
509 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
94 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 ...