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

learn more… | top users | synonyms

2
votes
0answers
283 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 ...
8
votes
1answer
5k views

Monit versus Nagios

Does nagios offer any additional functionality when compared to monit? This answer states that monit is a clumsy tool for situational awareness, which is the reason I'm asking the question.
1
vote
2answers
241 views

Monit and Thin and Unfound Gems

I've been using Monit to monitor my Thin server and everything was working until I upgraded my Rails version from 2.3.4 to 2.3.14. Now when I try and start Thin using monit it gives me an unfound gem ...
3
votes
1answer
356 views

Taking two actions in monit

My monit script works to detect an outage with a process and inform me when the rule is: IF DOES NOT EXIST THEN ALERT My monit script works to detect an outage and automatically fix it when the ...
5
votes
1answer
512 views

What's the point of using runit in combination with monit?

I see a lot of people using monit in combination with runit. Isn't that redundant? What is the point of using runit as well? Is it because it's more reliable when dealing with services (as it doesn't ...
0
votes
1answer
851 views

Monit configuration for Apache, MySQL, and Postfix

I plan on enabling Monit on my production server with the below configuration. I'm completely new to Monit and wanted to hear from others on tips or if there were other directives I should consider to ...
1
vote
1answer
240 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
5k views

How to find the .pid file for a given process

I'm setting up monit and want to monitor a given python application. Monit does this by looking at the .pid files for processes, but I don't know where this would be. I also tried creating my own ...
2
votes
1answer
135 views

Monit failed to restart apache

Apache failed and Monit did not restart it as expected. The error in monit's log is: Error opening Monit id file '/root/.monit.id' for writing-Cannot allocate memory The problem is that Apache went ...
2
votes
1answer
143 views

Monit restarting action

I want to execute a script when monit is restarted. For my case, this mostly applies to the restart of the whole server. How can I achieve this? Is there a way beside monit to do this? Background: ...
4
votes
2answers
251 views

Use monit to monitor apache2 subprocesses

I am currently using Monit to monitor Apache and restart it if its memory usage is too high. However, I'd also like to be able to monitor the individual apache2 subprocesses that are spawned, and ...
-1
votes
1answer
816 views

How to install Monit on Centos 6.2 [closed]

I have a server running on Centos 6.2 , I want to install monit in it , please help me to install monit step by step. Thanks in advance.
2
votes
1answer
376 views

How do I restart MySQL in monit when page contains specific text?

How do I check if a web page contains the text "Error connecting to database" and if the text exists in the page restart the database? Here's what I have so far but it isn't working: check host ...
0
votes
4answers
338 views

Monit - script not being executed as expected

I'm working on a Windows 7 machine, having a VM for Ubuntu (image disk: 12.04-desktop-i386.iso). On the VM I installed Monit 5.3.2, and configured some processes and applications. So I created a ...
1
vote
0answers
236 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 ...
0
votes
1answer
404 views

Monit - issue configuring “check program”

I'm trying to configure Monit to run my script but it's not working. I'm running Monit 5.3.2 from a Ubuntu 11.2 environment (it's a virtual machine, my machine actually is Windows 7), and for some ...
2
votes
1answer
1k views

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 ...
4
votes
3answers
1k views

Make monit wait longer before thinking something is dead

I'm trying to start a program (Resque) but it takes a bit of time before a pidfile is written. Thus, I think that Monit thinks the program hasn't started and starts one or two more programs before ...
1
vote
1answer
467 views

Rewrite URLs with Apache (to be used in combination with mod_proxy)

I'm using Apache and mod_proxy to provide access to the Monit GUI over HTTP. So far my configuration is as follows: ProxyRequests Off <Proxy *> Order deny,allow ...
-1
votes
2answers
666 views

Where is the right place to download monit for centos 6.2?

I have a centos 6.2 machine tried to yum install monit it says nothing to do. Then I have a link here http://pkgs.repoforge.org/monit/. Is this a reliable site or any other better suggestion? Thank ...
1
vote
0answers
262 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 ...
-3
votes
1answer
373 views

Daemonizing a C program and location of copying the file [closed]

I have to run a C program using monit. so I had to demonize it. what i did was i took a daemon template made some changes and arrived at this file as below, which is a script file: # Source function ...
1
vote
2answers
444 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?
0
votes
1answer
59 views

monit sumary not working when domain specified in use address

When I specify an actual domain in my monitrc file like so: set httpd port 2812 and use address domain.com # only accept connection from localhost allow localhost # allow localhost to ...
3
votes
0answers
185 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 ...
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 ...
1
vote
1answer
881 views

Monit not restarting service

I have a node.js script I want to daemonize on a Funtoo system (I tagged as Gentoo, since I don't think there's anything really specific to Funtoo in here vs Gentoo), and I do this with the following ...
0
votes
1answer
216 views

chef and monit files

I have several processes running on servers with different roles that are monitored by monit. For example, say I have an Apache server and a DB server with MySQL. I have several monitrc files that ...
2
votes
1answer
174 views

How to integrate monit into web app deployment process

I have: Tomcat with webapp deployed via mvn tomcat:redeploy. Monit, pinging the host and restarting server if ping failed. The thing is there in a moment during the redeployment when ping will ...
1
vote
1answer
289 views

using monit to restart custom daemon

I wrote a php daemon using system daemon pear class. How do I use monit to restart it when it fails? I have the following code in my monit config file: check process merge with pidfile ...
2
votes
2answers
1k views

Centos Linux monit configuration

I'm trying to do the following: monit stop mysqld monit: Cannot connect to the monit daemon. Did you start it with http support? it only works when I stop the monit service. any suggestions? ...
2
votes
1answer
2k views

Monit won't start: “Cannot translate '<hostname>' to FQDN name — nodename nor servname provided”

I installed monit-5.3.2 on OS X 10.7 but haven't been able to get it running. When I run sudo monit -t I get: monit: Cannot translate 'hakan' to FQDN name -- nodename nor servname provided, or not ...
1
vote
4answers
63 views

Stop mysqld service when monit service stops

I'm monitoring mysqld with monit but I would like that if I stop monit then the mysqld service also stops.
0
votes
2answers
1k views

configure monit on linux to monitor a process and then reboot

I would like monit to monitor my service and once it's stopped then I want the computer to reboot. The process don't have a certain port that I can monitor. This is what I did: check process chat ...
1
vote
2answers
197 views

configure Monit application on Linux Centos error message

I'm trying to configure Monit to monitor my pidfile. I had no problem except for one. this is what I configured: check process chat with pidfile /var/run/chat.pid start program = "/etc/init.d/chat ...
1
vote
1answer
950 views

Monit checking URL follow redirects

I am looking to use monit to keep an eye on my site. I want it to treat it the site like an external user so am testing the url but it doesn't seem to follow redirects. The content check is being ...
0
votes
1answer
130 views

Monit: 2 checks, one action

Is something like this possible with monit: check process foo with bar check process foo2 with bar2 start program = "baz start" stop program = "baz stop" Basically I'm looking for an "OR" ...
0
votes
1answer
368 views

Server management tool for small network [closed]

What would be the right management tool for my network? I take a look on Cacti, Nagios, OpenNMS, Munin & Monit ... but I'm not sure which will be the best direction. I prefer something that will ...
1
vote
1answer
142 views

301 response when monit checks for file on nginx

I have a monit script that checks that nginx is up and running. One thing it does is checks for a file 'ping.txt'. I can view it in the browser, but what would cause the script to get a 301 redirect ...
2
votes
2answers
3k views

Monit lists Apache as Not Monitored

I've just installed and configured monit according to the monit documentation. All services apart from Apache are listed as Running, but Apache says Not Monitored. The relevant lines in monit's ...
1
vote
2answers
723 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
518 views

Monit appears to be working on command line but get 404 'There is no service by that name' in web interface

Monit seems to be working, but when I go to the web interface at port :2812 I get: Not Found There is no service by that name monit 5.2.5 -- But again, things appear ok on the CLI ...
0
votes
1answer
116 views

Kill or revive a process based on system memory usage

Consider a system with limited memory, like a smallish VPS. Suppose there are a handful of processes that need to stay alive, and one process "P" that would be nice to have around, but is not ...
2
votes
2answers
204 views

Monitor DoS attack with snmp [closed]

Is there any way to monitor DoS attacks with SNMP or any other software which based on Linux and could monitor router / switches and alert when a DoS attack is observed?
1
vote
1answer
486 views

StartSSL certificate with monit

I'm trying to use a StartSSL (free) SSL certificate with monit. I followed the wizard on startssl.com to generate first a private key, then a certificate. I then downloaded the ...
3
votes
2answers
1k views

nginx proxypass monit links

I'm trying to setup Nginx to forward requests to several backend services using proxy_pass. Loading https://example.com/monit works, however the links within the page are to https://example.com/sshd ...
0
votes
1answer
314 views

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 ...
2
votes
1answer
687 views

Monit: Customize alert message to include command output

I would like to customize the Monit's alert message, so that whenever I get an alert, the email also includes the output of a command like top, so that I will already know more details about what ...
0
votes
0answers
91 views

Monit won't start ar_sendmail

I've got monit set up and running. It monitors and will restart Apache and Mysql fine, but won't do the same for ar_sendmail. If I start ar_sendmail, monit won't pick up that it's running even ...
0
votes
1answer
283 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 ...