Tagged Questions

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. http://mmonit.com/monit/documentation/

learn more… | top users | synonyms

2
votes
2answers
28 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 ...
0
votes
1answer
31 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
43 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
25 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
88 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 ...
-3
votes
0answers
37 views

how do i run a simple C Program using Monit in ubuntu? [closed]

Possible Duplicate: PID file for C program for monit I have a C program helloworld.c , it has to be run from the terminal using Monit. 1. Do I need a pid file? If so how do i create it? 2. ...
1
vote
2answers
82 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
15 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 ...
2
votes
0answers
35 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 ...
1
vote
1answer
51 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 ...
2
votes
1answer
49 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
56 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 ...
1
vote
2answers
92 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? ...
0
votes
0answers
21 views

Monit daemon interval setting…global or service-level?

I'm configuring monit on Ubuntu 11.04. In monitrc, the following setting controls the interval at which the monit daemon monitors services... set daemon 120 Is this a global setting? If I want to ...
2
votes
1answer
134 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
38 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
113 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
44 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
62 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
29 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
128 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
53 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 ...
1
vote
2answers
105 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 ...
0
votes
2answers
66 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 ...
0
votes
0answers
61 views

Monit URL test incorrectly failing

I've set up monit to check port 80 to check our http server is running with a 60 second cycle time. check process ... ... if failed URL http://localhost:80/ for 2 cycles then restart ...
0
votes
1answer
60 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
42 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
1answer
79 views

Monitor DoS attack with snmp

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
155 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 ...
0
votes
2answers
204 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
73 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 ...
1
vote
1answer
124 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
40 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
74 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
48 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
104 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
112 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 ...
0
votes
0answers
17 views

Monit: error log rate action

How can configure monit to email or alert me when the rate or error log spewing by apache goes beyond a threshold? I need to get proactive alerts in case something goes wrong.
0
votes
1answer
69 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
25 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, ...
0
votes
1answer
174 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
3answers
405 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 ...
0
votes
0answers
246 views

Monit + Passenger (nginx) - Won't kill process

I have an odd bug with a rails app I've created, causing it (randomly, maybe once every couple days) to have all (or some instances) go to 100% CPU usage and stay there forever. This causes nginx to ...
2
votes
1answer
117 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
243 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
119 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 ...
4
votes
3answers
233 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
116 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, ...
5
votes
1answer
137 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 ...
2
votes
0answers
64 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 ...

1 2 3