Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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, the only things I see are the processes relevant to monit sending out emails — I don't see the monit binary itself.

more info

I installed it with apt-get monit

I started it with service monit start

# ps -ef | grep monit
root     29985 23882  0 02:07 pts/0    00:00:00 grep --color=auto monit`
share|improve this question
    
How did you install it? What command did you use to start it? What is the output of ps -ef | grep monit? –  quanta Nov 8 '11 at 1:54
    
added that info in the question above –  John Bachir Nov 8 '11 at 2:08

1 Answer 1

up vote 0 down vote accepted

It sounds like you didn't start it in the background. Uncomment the following line in /etc/monit/monitrc:

## Start Monit in the background (run as a daemon):
#
set daemon  120           # check services at 2-minute intervals

to run it as a daemon. Restart Monit and verify with ps, you will see something like this:

$ ps -ef | grep [m]onit
root      8530     1  0 09:10 ?        00:00:00 /usr/bin/monit
share|improve this answer
    
Ahhh hahaha, that was it. So I guess it was just doing one check and then quiting. –  John Bachir Nov 8 '11 at 2:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.