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

learn more… | top users | synonyms

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 ...
16
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
1answer
295 views

Suppress Monit message 'Monit instance changed' on stop/start

I have monit installed on some user laptops/desktop so it can make sure a couple processes are always running/get restarted as needed. But since the devices are regularly shutdown/restarted I ...
1
vote
2answers
455 views

PID file for C program for monit [closed]

How can I create a pid file for a C program to be used in monit, and how do I monitor that C program using monit?
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 { ...
3
votes
3answers
306 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
1
vote
1answer
69 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
192 views

allow a user to run specific monit action

I have installed monit for many applications with the root user. One of the applications is started with a non-root user account. Unfortunately, when I update my app, I also need to restart it. My ...
1
vote
2answers
731 views

Repeat monit alerts

How can I have monit continue to alert me on an interval until the condition has been fixed? Here's an example config: check filesystem datafs with path /dev/sda1 if space usage > 80% for 5 times ...
1
vote
3answers
981 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 ...
0
votes
1answer
81 views

using monit to monitor processes

i am trying to figure out how to use monit to get a notification when one of my processes starts to run once again. let me be clear- at first the process is running, stops to run and then runs again. ...
0
votes
2answers
1k views

how to monitor select processes on centos 5.x host?

I would like to monitor a select group of processes, vmware vm's, running on my centos 6 host. "top" gives me most of what I want in that I can use -p to specify only those processes and -c to get ...
0
votes
1answer
285 views

Sending mails with monit over Google Apps mailserver

I am trying to send notification mails using monit v5.1. I am using Google Apps as a mailserver, so I wanted to use their infrastructure for outgoing mails. I have entered the following information ...
0
votes
2answers
448 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 ...
0
votes
2answers
292 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 ...