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
3
votes
3 answers

Node.js (sudo) and monit

I have created an upstart script in order to daemonize juggernaut (a node.js app) The upstart script is the following description "juggernaut server" author "panojsee" start on startup stop on shutdown script # We found $HOME is needed.…
PanosJee
  • 3,866
  • 6
  • 36
  • 49
3
votes
1 answer

monit: The control file '/etc/monit/monitrc' must be owned by you

I've the following details to access in monitrc: set httpd port 2812 and use address localhost # only accept connection from localhost allow 0.0.0.0/0.0.0.0 # allow admin:monit # require user 'admin' with password 'monit' allow…
Jaswinder
  • 1,455
  • 14
  • 27
3
votes
0 answers

Meaning of Monit status codes

I need a way to find out what every monit xml status code means. I have some xml output which is in this format: https://gist.github.com/plasticbrain/54ceaf101168d20f9a90 Or in case the link doesn't work, this:
SOair
  • 173
  • 1
  • 3
  • 14
3
votes
0 answers

Monit requires manual restart in order to receive max open files value for running a process, bug?

I've been trying to figure this out for quite some time and I don't seem to be able to find any information on this issue. diving into the issue: I am running an application on Ubuntu 14.04 using Monit V5.6 The deployment of the application and…
Adam
  • 31
  • 2
3
votes
2 answers

monit syntax error on SSL

I am trying to use gmail as my mail server for alert messages in monit. I have these lines in monitrc: set mailserver smtp.gmail.com port 587 username "myusername" password "mypassword" using SSL I always get the following error. …
A.K.
  • 3,593
  • 1
  • 17
  • 19
3
votes
2 answers

Monit - stop receiving emails about monit reload

Is there any way to stop receiving e-mails about reloading "monit" service? This is current config in /etc/monit.d/config (and mydomain.com is my machine): * check system mydomain.com check process script_name with pidfile…
Igor
  • 309
  • 1
  • 7
  • 17
3
votes
1 answer

Monit only using HTTP for HTTPS website

I'm trying to monitor a VHost on the local Apache instance via Monit. The same domain accepts both http and https traffic, so I wanted to monitor both. Also, the IP that the domain resolves to goes to a server that load balances the traffic between…
Justin
  • 1,959
  • 5
  • 22
  • 40
3
votes
1 answer

Monit for "cron-like" tasks

Have some batch-type jobs that I would like to move from cron to Monit but am struggling to get them to work properly. These scripts typically run once a day, but on occasion have to be re-ran later in the day. Goal is to take advantage of the…
mr19
  • 187
  • 1
  • 15
3
votes
1 answer

Monit memcached config without pidfile

I have classic situation. Need to configure monit for memcached on CentOS7. The problem is, that all configs i can find in google contains this row: check process memcached with pidfile /var/run/memcached/memcached.pid However, There is no…
Evgeniy Timchenko
  • 129
  • 1
  • 5
  • 14
3
votes
1 answer

How do I create a monit loop for multiple processes to monitor?

This example shows how to monitor a single resque queue check process resque_worker_QUEUE with pidfile /data/APP_NAME/current/tmp/pids/resque_worker_QUEUE.pid start program = "/usr/bin/env HOME=/home/user RACK_ENV=production…
Streamline
  • 2,040
  • 4
  • 37
  • 56
3
votes
1 answer

Can Monit be used to free up memory?

I've been using monit to monitor and restart Apache and MySQL for several months now and all has been working fine until today when something on the server caused the memory utilization to exceed 90%, MySQL stopped and monit then tried to…
DoubleSpeed
  • 43
  • 1
  • 5
3
votes
1 answer

monit insists on timing out a program that's running fine

I'm having a problem monitoring a program using monit. I'm running this on a raspberry pi, having built monit 5.11 from source; I tried using the version from the repositories, but it was 5.4 and didn't support some of syntax below that I want. I'm…
chris_st
  • 501
  • 7
  • 19
3
votes
1 answer

No pid file for CouchDB on Ubuntu 14.04

We would like to monitor our CouchDB installation using the default pid file method with MONIT, however although couchdb is working fine there is no pid file generated under /var/run/couchdb, there is only a couch.uri file. Permissions on…
RichBos
  • 31
  • 3
3
votes
2 answers

Monit starting/restarting processes in serial

I'm using monit to start up a bunch of workers for running qless, a queueing system that we use for background jobs. My setup has 20 files like this in /etc/monit/conf.d: check process qless-1 with pidfile /srv/app/shared/tmp/pids/qless-1.pid …
3
votes
2 answers

Use Monit monitor a python program

I'm using Monit to monitor a system. I have a python file I wish to also monitor, I understand that I need to create a wrapper script as python does not generate pid files. I followed the instructions on this site, however I have been unable to get…
Jim
  • 1,337
  • 5
  • 20
  • 29