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
4
votes
1 answer

I need to monitor a log file with monit if the file does not change monit will alert

I need help. I was looking in to Monit documentation and I need help. I could not find my answer there. I need to monitor a log file of a service, if that log file stops to increase in size or even better something in the log file stops coming in…
cr0c
  • 1,116
  • 3
  • 15
  • 32
4
votes
2 answers

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 servers. Or perhaps there is no other option…
giosakti
  • 149
  • 1
  • 3
4
votes
1 answer

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 rule is: IF DOES NOT EXIST THEN START But, what I…
Oddthinking
  • 262
  • 2
  • 15
4
votes
2 answers

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 kill any subprocess whose memory usage is too high…
Matt White
  • 707
  • 1
  • 5
  • 17
4
votes
0 answers

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 working. This script below uses a upstart script that I…
Buzz
  • 41
  • 1
4
votes
2 answers

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 within 15 cycles then alert Here I'l get an alert…
John Bachir
  • 2,344
  • 7
  • 29
  • 37
4
votes
3 answers

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 -->:/var/log$ sudo monit -t Control file syntax OK -->:/var/log$…
99miles
  • 361
  • 3
  • 6
  • 16
4
votes
2 answers

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 instead of https://example.com/monit/sshd I'm…
Thermionix
  • 907
  • 2
  • 15
  • 28
4
votes
0 answers

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 the content doesn't match, instead of reporting a…
David Wolever
  • 2,237
  • 3
  • 23
  • 27
4
votes
1 answer

Monit is restarting apache2, should I fix the monit config, or the server config?

Monit is restarting apache2 frequently, based on the totalmem > 200m test in my apache2 stanza. I'm not sure that I actually have a problem, or if I should increase the totalmem test in my monit config. This configuration was fine until we added a…
marfarma
  • 281
  • 1
  • 3
  • 11
4
votes
3 answers

What exactly does M/monit mean?

what exactly does M/monit mean?
gnu
  • 41
  • 1
  • 7
4
votes
3 answers

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
aussiegeek
  • 234
  • 3
  • 11
4
votes
2 answers

How to check the result of a script with monit?

Is there a way to check the result of a script with monit? For example a script returns 0 means ok, but 1 means failed. The idea is to call the script from monit on the local machine directly and interpret the result and send emails. For example a…
user12096
  • 917
  • 5
  • 23
  • 39
3
votes
2 answers

Pause monitorig of Monit on server update

I have a problem with monitoring services by Monit. Monitoring works well. Too well. When I execute system update... possibly update of MySQL or Apache etc. needs to be service down. Updating process does that, and then Monit service restart... and…
user5332
  • 141
  • 4
3
votes
1 answer

Monit, checking URL with basic Auth but username has @ in it

Monit gives me a syntax error when the username contains an @, which would be quite common. For example, user@gmail.com below: check host somesite with address monitoring.somesite.com if failed url…
jacksonp
  • 141
  • 1
  • 3
  • 9