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
2 answers

How to monit disk I/O with monit?

Currently I'm using M/Monit to monitor a lot of instances at once. But Iwould also like to know if anyone tried to monitor Disk I/O with monit? I don't have any good knowledge about disks, so if someone could point me to the right direction or share…
Vor
  • 33,215
  • 43
  • 135
  • 193
3
votes
0 answers

upstart script for logstash, writing the pid file that deals with the fork

I am using the example upstart script for logstash but am having trouble writing a pid file for monit to use at /var/run/logstash.pid When i use "echo $$ > /var/run/logstash.pid" it writes the wrong pid value to file, I think its often the value…
henry.oswald
  • 5,304
  • 13
  • 51
  • 73
3
votes
2 answers

Monit errors when running "check program" for custom script

I am getting syntax errors when I try to check the exit status of a bash script using monit's "check program". If I run the bash script manually, it doesn't error. But if I do monit reload with my monit check program in the config, monit gives me…
lemon lime pomelo
  • 316
  • 1
  • 2
  • 14
3
votes
5 answers

Monit fails to start process

I've written a scrip that works fine to start and stop a server. #!/bin/bash PID_FILE='/var/run/rserve.pid' start() { touch $PID_FILE eval "/usr/bin/R CMD Rserve" PID=$(ps aux | grep Rserve | grep -v grep | awk '{print $2}') …
João Daniel
  • 8,696
  • 11
  • 41
  • 65
3
votes
1 answer

Monitoring resque with monit with RVM

I previously had Monit monitoring resque with the following Monit script check process resque_worker_production_QUEUE with pidfile /var/tmp/resque_production.pid start program = "/usr/bin/env HOME=/home/eg RACK_ENV=production…
99miles
  • 10,942
  • 18
  • 78
  • 123
3
votes
1 answer

Monit will not stop script with kill command

I am using monit to monitor several process. These process include passenger instances and a daemon I wrote to generate pidfiles for the passenger instance. Monit will start these process no problem. It will not stop them. The following is the Monit…
Charlie Greene
  • 465
  • 4
  • 11
2
votes
5 answers

MySQL restarting every 30 minutes on Ubuntu 11.04

I'm having an issue where MySQL 5.1.54 is restarting every 30 minutes on Ubuntu 11.04. When this occurs, the following appears in the MySQL log: 111030 12:01:52 [Note] /usr/sbin/mysqld: Normal shutdown 111030 12:01:52 [Note] Event Scheduler:…
user1020643
  • 21
  • 2
  • 3
2
votes
2 answers

running delayed_job under monit with ubuntu

I'm struggling to get delayed_job working under rails 3.0.9 (ruby 1.9.2). The only way I have succeeded to run is to tape manualy the command rake jobs:work. But I want that to be automatically started when the rails application is starting. I have…
enenkey
  • 1,261
  • 3
  • 16
  • 27
2
votes
1 answer

Running monit as a restricted user and making it watch a process that needs root privileges

I have a specific script written in Ruby that needs root privileges. Most of the other processes don't need that and so were easy to setup in Monit. Not this one. The server needs to listen at 386, and this port is only available for root. I won't…
FullOfCaffeine
  • 539
  • 1
  • 6
  • 22
2
votes
1 answer

How do I use Monit to keep an R script running?

I have an R script that I want to have running continuously on Ubuntu 10.10. I'm trying to setup Monit to ensure that it doesn't go down. As the script starts, it creates a pid file with the lines: pid <- max(system("pgrep -x R", intern =…
MiG62
  • 198
  • 4
  • 10
2
votes
2 answers

rvm monit delayed_job

I am trying to run delayed_job using monit, but its failing to run as rvm's paths (local rvm installation per user basis) are not available to the command. My application is a rails2 app with bundler. Monit is not able to find bundler. Does anyone…
Pratik Khadloya
  • 12,509
  • 11
  • 81
  • 106
2
votes
1 answer

How to erb'up a monitrc configuration file

Below is my delayed_job monitrc file, i wanted to use it as an erb template so that i can dynamically set the RAILS_ENV variable. Does anyone know how to do it? set daemon 120 check process delayed_job with pidfile…
Pratik Khadloya
  • 12,509
  • 11
  • 81
  • 106
2
votes
0 answers

Problems installing OpenMediaVault 5 on Raspberry Pi 1

BTW, I am trying to install OpenMediaVault on a Raspberry Pi 1, however, whenever I try and install OpenMediaVault on a Raspberry Pi 1, I get problems with the monit package, the FastCGI Process Manager and the openmediavault package too. Here is…
2
votes
1 answer

Monit on apache server : why monit log " 'apache' error -- unknown resource ID: [5]" on /var/log/monit

We are monitoring several servers with Monit. We are using the version 5.25.1. Some are dedicated apache servers. The monitoring is ok. But the log of monit (/var/log/monit) is like this : [CET Mar 18 03:12:03] info : Starting Monit 5.25.1…
2
votes
1 answer

Is there a way to stop monit from sending monitor and unmonitor email messages

I've recently started using Monit to monitor some production machines. And it does this well. But the annoying issue I have is that part of the routine is to restart the servers once a day on a rotating basis and each of those restarts generates a…
Allan Wax
  • 141
  • 7