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

learn more… | top users | synonyms

19
votes
5answers
13k 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 ...
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 ...
1
vote
1answer
238 views

Awaken monit daemon every few hours for all monitored processes

I am seeing a problem with monit config in configuring the monit daemon to awaken every few hours and start monitoring the processes which were set to "Not Monitored" state. PROBLEM: When the monit ...
1
vote
2answers
792 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
697 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?
21
votes
3answers
10k views

How i configure monit to start a process with a specific user?

Monit runs with root, but i don't want to start my processes as root.. like mysql, mongrel, apache..
6
votes
4answers
4k 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
427 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
2
votes
1answer
454 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 ...
0
votes
2answers
2k 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 ...
1
vote
1answer
86 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
2answers
1k 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
1answer
496 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 ...
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 ...
0
votes
1answer
601 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
113 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
580 views

Monit Webmin service is not activating

I have written a script in monit interface for Webmin service. I can execute the process where in I am unable to restart the service. check process webmin with pidfile /var/webmin/miniserv.pid ...
0
votes
2answers
461 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 ...