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

learn more… | top users | synonyms

1
vote
0answers
218 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
296 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
781 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
2answers
753 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
385 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
631 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
229 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
346 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
337 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
53 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
172 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
958 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
711 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
195 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
166 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
230 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
62 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
864 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
163 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
712 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
112 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
338 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
135 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
2k 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
586 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
397 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
109 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
194 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
442 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
921 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
235 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
545 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
89 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
230 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
75 views

Monit stops running on centos

How can you make sure that monit is always running? At the moment it's silently falling over and leaving the server unmonitored. Server is running on CentOS.
1
vote
3answers
349 views

Have trouble with monit (monit dead but subsys locked)

I installed monit on my centos 6/64bit and somethings wrong. Look at the shell : [root@ND-1003 monit.d]# service monit start Starting monit: monit: generated unique Monit id ...
1
vote
1answer
407 views

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 ...
1
vote
1answer
465 views

What does monit consider to be memory usage?

Once can have monit monitor memory usage… check system foo if memory usage > 95% then alert Does it use free RAM, or free -/+ buffers/cache? (or something else?) # free -m total ...
1
vote
1answer
53 views

Why can't I see the monit binary in the process list after starting it?

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, ...
5
votes
1answer
2k views

Sending a test/example alert from monit?

I've configured monit tests and alerts — but I want to make sure that everything in my alert stack (outgoing email servers, sms email gateways…) is functioning properly. Is there a handy way to fire ...
0
votes
4answers
2k views

monit configuration for php-fpm

I'm struggling to find a monit config for php-fpm that works. This is what I've tried: ### Monitoring php-fpm: the parent process. check process php-fpm with pidfile /var/run/php-fpm/php-fpm.pid ...
2
votes
1answer
225 views

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 ...
2
votes
3answers
891 views

Monit - how to check loadavg only when no backup is running?

I've got Monit configuration with: check system example.com if loadavg (1min) > 4 then alert if loadavg (5min) > 2 then alert I want to get rid of messages every time backup is ...
1
vote
1answer
221 views

Simplifying monitrc (make it DRY)

Most of the monitrc examples I see are verbose, lots of repeated 5-10 line boilerplate checks. Is there any way to parametize this stuff? I want something like: ensure_rails 8080 ensure_php 8081 ...
5
votes
3answers
2k views

Can monit be configured to never unmonitor/timeout a service?

Monit seems to give up restarting a service if it fails a few times, and unmonitors it. I can't find anything in the documentation about the specifics of when or why. In my environment, I want it to ...
1
vote
3answers
223 views

Making sense of Ubuntu Server Status Info

I'm trying to create a simple shell script to monitor my server. I plan to set up a CRON job to run it every five or 10 minutes. Here's how it will work: Run a number of linux commands e.g. iostat, ...
11
votes
1answer
1k views

Disable Monit alerts when PID changed

When you monitor a process with Monit by its pid, like : check process blop with pidfile /.../blop.pid start program = "..." stop program = "..." you get an alert when the pidfile is ...
3
votes
0answers
140 views

monit reporting “connection failure” when actually a “content failure”?

I have a monit rule which looks like this: check host example.com with address example.com if failed url http://example.com/status content == "ok" then alert group example.com But when ...