Questions tagged [monit]

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

Monit is a free open source utility for managing and monitoring processes, programs, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.

382 questions
3
votes
1 answer

monit not able to monitor mysql with sock

Just in case if you are using Monit version 5.1.1 and try to monitor mysql with sock it will always fail with "Connection failed" my monit configuration file is: check process mysql with pidfile /var/lib/mysql/mysql.pid group database start…
AFT
  • 131
  • 1
  • 4
3
votes
3 answers

monit hostname is always localhost

I've got monit running on a server to alert by email with the following config set mailserver 127.0.0.1 using hostname "vps1.sender.com" set mail-format { from: monit@sender.com } set alert webmaster@receiver.com but the mails are still coming…
Christian
  • 746
  • 3
  • 13
  • 30
3
votes
4 answers

Can't find httpd.pid to use for Monit apache2 monitoring

I'm new to Linux and I setup Ubuntu 12.04 on Digital Ocean. I installed Monit and got it to monitor MySQL successfully with email alert. I want to monitor Apache2 as well but cannot find any httpd.pid file needed to put in monitrc file. I can start…
Bergen
  • 41
  • 1
  • 1
  • 2
3
votes
1 answer

How to user monit to count the number of instances of a process

Is it possible to use monit to count the number of instances of a process (in my case Celery) and take an action accordingly. For example if there are 4 instances of celery daemon, then take action
aqs
  • 163
  • 1
  • 6
3
votes
2 answers

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 update process uses the non-root user (I use…
Raphael
  • 69
  • 2
  • 11
3
votes
2 answers

getaddrinfo: command not found

Possible Duplicate: How do I fix “getaddrinfo: localhost Name or service not found” for telnet server? I've installed a new Ubuntu 12.04 on an AWS EC2 instance and everything worked fine till now. I followed the instructions in this great…
jebbie
  • 161
  • 1
  • 7
3
votes
1 answer

How to use monit to make sure only one instance of process is running

I have ruby daemons running. Once in a while we'll accidentally start up a second instance of it, which causes race conditions. Can I use Monit to detect if multiple instances of 'my_ruby_daemon' is running? And if so kill the extra instance?
3
votes
1 answer

Can't get Monit to work

I am trying to configure Monit on my local machine to get a taste at how it works, but I have some issues. What I am trying to do is to get any evidence that Monit is up and running correctly and is actually monitoring something. So my…
Andrea
  • 133
  • 1
  • 6
3
votes
1 answer

Specify a mailserver hostname and tlsv1 in monit

[Edit: I answered the first half of my issue, so I'll edit this to address the second half.] /etc/monit/monitrc looks like this: set mailserver smtp.server.net port 587 username "USERNAME" password "PASSWORD" using tlsv1 with…
chmac
  • 977
  • 1
  • 7
  • 16
3
votes
1 answer

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 pattern]" lists all the process. The problem is it…
Supratik
  • 2,104
  • 10
  • 49
  • 66
3
votes
1 answer

Monitor a long running process

I need to start a long running, memory/disk/cpu intensive process on Linux, and monitor it so I can : check it terminates with a good status code, collect stats (mem cpu disk every x minutes ) alert / restart if the process is flapping Is there…
macarthy
  • 193
  • 2
  • 6
3
votes
1 answer

Monit having trouble determining if the Bitcoin daemon is running

I'm setting up Monit to monitor the Bitcoin daemon to make sure it runs 24/7 and restarts it if something goes wrong. The Bitcoin binary is at /usr/local/bin/bitcoind, and the data directory is at /home/bitcoin/.bitcoin. I have told Monit to monitor…
John Doe
  • 171
  • 8
3
votes
1 answer

With Monit, how do I restart a process when a directory timestamp check fails?

In my /etc/monit/monitrc I have the following lines: check process foo_server with pidfile /var/run/bwam_server.pid start program = "/Users/foo/foo_server.sh start" stop program = "/Users/foo/foo_server.sh stop" check directory…
Alterscape
  • 131
  • 4
3
votes
4 answers

Recommendations for Monitoring services

I would like to install a monitoring services (Monit or others) on my web server and am looking for recommendation. I have no idea which is good, and what parameters which I should evaluate on, and which is a good for for my needs. Some which I saw…
shabda
  • 300
  • 1
  • 4
  • 10
3
votes
3 answers

How to prevent monit daemon stopped?

I use monit to make sure everything running fine, but monit daemon was also stopped. I dont know how this be, and how to prevent monit daemon from stopped?
Kewasen