Questions tagged [monit]

Monit is a free open source utility for managing and monitoring, processes, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.

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.

434 questions
9
votes
2 answers

Monit process 'mysql' Not Monitored

Any ideas why monit will not monitor mysql in this setup??? I've gone through everything I can find here to solve the problem to no avail. These are my versions: Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: …
shaone
  • 91
  • 1
  • 4
8
votes
2 answers

Monit check program returns "no output"

I want to try to monitor postfix queue with monit. I have taken a example from people of Stackoverflow. My version of monit is the latest This is Monit version 5.10 In /etc/monit.d I have postfixlocal with check program postfixcola with path…
Rubendob
  • 1,614
  • 3
  • 22
  • 34
7
votes
3 answers

Monit + RVM + Thin on OSX / Linux

After trying for hours (and also trying God and Bluepill) I decided to ask my question here because I am completely clueless how to solve this issue. I have a Rails app. I want to use Thin as my app server. I want to use Monit to monitor my Thin…
Michael van Rooijen
  • 6,683
  • 5
  • 37
  • 33
7
votes
1 answer

How to check a URL with valid HTTPS certificate in monit?

I have the following configuration - check host qbox_logstash_1 with address blah.mysite.com group qbox if failed host blah.mysite.com port 443 type TCPSSL protocol https http headers [ Authorization: Basic…
Shrinath
  • 7,888
  • 13
  • 48
  • 85
7
votes
1 answer

How to kill old instance of phantomjs by monit

I have a program that using phantomjs. There should be only a instance for the program and there is no program using Phantomjs. But sometimes Phantomjs are launched several instances sametime. Probably my program have a bug. For quick fix I want to…
ironsand
  • 14,329
  • 17
  • 83
  • 176
7
votes
4 answers

How can I access monit http remotely

I have been trying for hours to configure monit so I can access it remotely from a web browser from http://:2812 but it always times out. I have Nexus running on the same instance at http::8081 so I know basic connectivity works: My monitrc…
Eric Kolotyluk
  • 1,958
  • 2
  • 21
  • 30
7
votes
1 answer

mmonit golang restarting slow and status does not exist

I created monit app that must restart golang site on crash $ cd /etc/monit/conf.d $ vim checkSite It starting program with nohup and saving its pid to file: check process site with pidfile /root/go/path/to/goSite/run.pid start program =…
Maxim Yefremov
  • 13,671
  • 27
  • 117
  • 166
7
votes
3 answers

Monit restart program script

I am fairly new to monit and I was wondering if this script is enough to restart a crashed program lets say program1 is the name of the program. check process program1 matching "program1" start program = "/home/user/files/start.sh" stop program =…
Zero
  • 355
  • 1
  • 4
  • 12
6
votes
1 answer

How to combine process and file check in monit?

Summary How can I combine multiple checks in Monit? I want to check against process activity and file content/timestamp. Long and boring explanation I'm working on a Monit daemon for keeping my Bukkit Minecraft server up. It does several checks. At…
buschtoens
  • 8,091
  • 9
  • 42
  • 60
6
votes
1 answer

Using Monit to monitor custom daemons

I have a daemon written in PHP. I use the following command to call the daemon php dojobs.php when I call that command, the daemon runs infinitely because the file dojobs.php has the following code while(true) { code here } I have the following…
user816604
6
votes
1 answer

monitoring multiple delayed job workers with monit

I have read a lot about monitoring delayed_job with monit. The implementation is pretty easy and straight forward. But When one worker is not enough how do I setup monit to ensure that, let's say, 10 workers are constantly running?
Lester Celestial
  • 1,454
  • 1
  • 16
  • 26
6
votes
1 answer

How to throttle log alerting in monit

Hey there, We have a setup in monit whereby we monitor a whole lot of log files for the string "Exception". When monit sees this string, we get an email alert. There are times when we get spammed very heavily when our application hits the same…
Ben
  • 6,567
  • 10
  • 42
  • 64
6
votes
1 answer

Monit multiple processes with same name

I'm new to Monit and trying to understand if it offers a way to handle multiple processes of the same name where the PIDs are unknown. My ideal Monit behaviour would be: Watch every process with the name 'x' and restart any of them for which…
Bruce
  • 387
  • 3
  • 14
6
votes
0 answers

Broken pipe exception on spring boot application monitored by monit

I have a spring-boot application which is monitored by monit. Monit just check the /health endpoint spring is exposing. Basically, monit registered the following checks : check host hopsearch_connection with address 127.0.0.1 if failed url…
Hugo Lassiège
  • 986
  • 1
  • 11
  • 26
6
votes
4 answers

Node.js OpsWorks Layer console logs

I have an Opsworks stack with a Node.js Layer and Node.js Application. I'm wondering if anyone knows where on an ubuntu 14.04LTS instance the console logs from my application are being printed to. I know the opsworks uses monit to run my application…
mu888
  • 65
  • 3
1
2
3
28 29