2
votes
1answer
19 views

How to make Monit “check process” conditional?

I have a monit script that does something like this: check process sidekiq_1 with pidfile /tmp/pids/sidekiq_1.pid start program = "/bin/bash -l -c 'bundle exec sidekiq start" as uid jim and gid jim ...
0
votes
2answers
57 views

Monit issues with mysql Ubuntu server 12.04

I've installed Monit on Ubuntu server 12.04 but Im having issues getting mysql monitoring to work at all. Here is what I have done so far. #/etc/default/monit startup=1 #/etc/mysql/my.cnf pid-file ...
-2
votes
1answer
88 views

How can i send daily alerts for linux server monitoring using Monit tool(free edition)? [closed]

Hi i am using monit free edition tool to monitor server status, but in that the alerts works only when some triggering action done. But i want to send a daily alert of all the details of server as ...
-1
votes
1answer
139 views

Monit system cpu usage

Monit version: 5.0.3 Server: Ubuntu 10.04.4 LTS I want to monitor the system cpu usage with Monit and I am trying as follows: check system host_name if cpu usage (user) > 70% then alert if ...
1
vote
1answer
84 views

m/monit and ec2 autoscaling

I've been using monit for some time and have really liked it thus far. I recently decided to give m/monit a try and the UI looks great and is super informative. My only hang up is monitoring servers ...
1
vote
1answer
46 views

monitoring error rate with monit

Is there a way to tell monit to alert me if there are more than X errors (e.g. lines matching "ERROR") in a log file in a certain time? My use case would be: errors sometimes appear in my log file ...
0
votes
1answer
121 views

Monit is not restarting process

I have monit to monit a process but it doesn't realize it is down. My monit configuration is this: check process xxx with pidfile /var/run/xxx.pid group yyy start program = "/etc/init.d/xxx start" ...
0
votes
1answer
77 views

using monit to monitor processes

i am trying to figure out how to use monit to get a notification when one of my processes starts to run once again. let me be clear- at first the process is running, stops to run and then runs again. ...
0
votes
0answers
31 views

monit service permission starting a linux service

I'm running monit to monitor a linux service i wrote which basically makes sure that a mounted partition exist. the service start action is: mount -a the service stop action is: umount /...../.... ...
1
vote
1answer
1k views

Free alternatives to M/Monit interface for the Monit systems management system [closed]

I really like Monit systems management system but I have no IT budget to purchase M/Monit interface which is used to manage multiple hosts for our small university lab. I have checked out Ruby based ...
0
votes
1answer
352 views

Issues in monitoring apache tomcat server using Monit

I have installed Monit using the following command in Ubuntu Linux 12.04.1 server sudo apt-get install monit My main goal in using Monit is to restart my - MySQL and Apache tomcat services ...
2
votes
1answer
1k views

how to set up monit to monitor disk-space

I use monit on my server to monitor apache and mysql running. Now I want to add an alert if the disk gets too full. I added this for testing in /etc/monit/monitrc: check device rootfs with path ...
1
vote
0answers
58 views

Restarting a program with monit

Hopefully someone can help me out with this: I am running a game server that crashes with a segfault every 3 hours, I am trying to get a restart script working but I'm a complete noob when it comes to ...
0
votes
1answer
159 views

Monit detecting error, but not restarting asterisk

I am running Ubuntu 13.04 with the corresponding versions of monit (5.5-6) and asterisk (1.8.13.1). I have monit set up to watch my asterisk log file for disconnection to my SIP provider and restart ...
1
vote
1answer
77 views

Exec when service is ok with monit

I need to run a shell script if a service is ok with monit, to link to my other monitoring system (nagios). Basically what I need to achieve is to make monit send an alert when a service was ...
0
votes
3answers
247 views

Passively monitor IO wait spike on process level

We use munin and monit to keep track of general stats about our vps, in last a couple of weeks, we have been running into issues where random IO wait spike is killing our server performance. Since ...
0
votes
1answer
140 views

Load balance M/Monit collector

I am new to Monit monitoring system. Can we load balance mmonit collector (two instances) to avoid single point failure. I mean if monit collector (instance) is down, whole monitoring system will be ...
2
votes
1answer
194 views

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

Monit server went down

One of our developers needs some sort of notification in order to know whether the application is running smoothly or not.And We already decided that we will implement monit in order to get this ...
2
votes
0answers
267 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.
5
votes
1answer
480 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 ...
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
128 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 ...
4
votes
2answers
245 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 ...
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 ...
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
915 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 ...
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
693 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 ...
2
votes
1answer
649 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 ...
1
vote
1answer
485 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 ...
2
votes
1answer
232 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 ...
1
vote
1answer
229 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
2k 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
146 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
vote
5answers
124 views

Custom server monitoring: Monitoring number of specific files in specific directory

I have many server running on live. Each server has many application. Each application has directory like /etc/somedir1, /etc/somedir2 where in each of that directory has many .html files. The ...
0
votes
1answer
2k views

mysql monitoring with monit

can someone please steer me in the right direction. I'm completely new to Monit, set it up, everything working fine, but I'm having a problem with mysql. This is the set up in my conf file: check ...
15
votes
5answers
7k views

monit: check process without pidfile

I'm looking for a way to kill all processes with a given name that have been running for more than X amount of time. I spawn many instances of this particular executable, and sometimes it goes into a ...
0
votes
1answer
127 views

Apache and monit keep crashing

I'm using a VPS on Ubuntu 10.10 to serve my private website and Apache 2.2.16 keeps crashing without a trace. The server is on a very light load with about 300 visits/day. To solve this I have set up ...
2
votes
2answers
954 views

Monit can't detect MySQL, but I can

Monit is configured to watch MySQL on localhost at port 3306. check process mysqld with pidfile /var/lib/mysql/li175-241.pid start program = "/etc/init.d/mysql start" stop program = ...
0
votes
1answer
219 views

need some help figuring out clamav & monit monitoring error…unixsocket

I need a bit of help figuring something out. First off, I'm not very well versed with FreeBSD servers, etc. but with some direction hopefully I can get this fixed. I'm using FreeBSD and installed ...
0
votes
1answer
513 views

Problem to monitor ssh service with M / Monit

In the office we have a server M / Monit to monitor all servers. In the last few days, on some servers can not monitor the ssh service. All servers have the same configuration to monitor the service ...
2
votes
3answers
691 views

What exactly does M/monit mean?

what exactly does M/monit mean?
1
vote
2answers
637 views

Monit not starting after OS upgrade to Ubuntu 10.04 LTS

Iv recently upgraded the version of Ubuntu from 9.04 to 10.04LTS (through 9.10) and now Monit won't start. Doing a sudo /etc/init.d/monit syntax says the syntax is ok. If I run the command sudo ...
1
vote
3answers
630 views

How do I setup a monit script to check if a directory exists and create it if it doesn't

In the monit documentation I can see there is a check directory command but I can't see any examples of how to use it to see if the directory exists and if it doesn't to create the directory using the ...
0
votes
2answers
1k views

Monitoring thin with monit

I have been struggling to get monit to monitor my thin cluster for some time now. I am using 3 thin instances. These are my monit and thin config files: /etc/thin/vocab.yml: pid: tmp/pids/thin.pid ...
3
votes
3answers
297 views

Using monit for a process that doesn't background/run as a daemon

I"m using montit for other processes I need to run, but I have a process which doesn't run as a daemon, and I can't figure out how to monitor it with monit