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

Monit process failed to start

I'm trying to use Monit to watch a Thin Rails application server process. Here is my Monit config: check process thin-3000 with pidfile /var/www/apps/myapp/shared/pids/thin.3000.pid start program = "/bin/su - deploy -c 'thin start -C…
Elliot Larson
  • 10,669
  • 5
  • 38
  • 57
0
votes
1 answer

monitoring a process when it starts to run in linux

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. i want to be notified when the process starts…
vivi
  • 1
0
votes
1 answer

Mongodb health checks via HTTP with auth enabled

I am looking to add a check in monit to test if the server can ping the remote mongodb instance which has auth enabled. Is it possible to do a standard http check like this with mongo?
henry.oswald
  • 5,304
  • 13
  • 51
  • 73
0
votes
1 answer

Monit to monitor 2 searchd instances on one server

I have 2 rails apps hosted on the same server and each one of them have its own configuration for thinking_sphinx /searchd with different ports configured. I managed to get this set up working and I have 2 instances of searchd running. My problem is…
Steve Loo
  • 276
  • 1
  • 5
  • 12
0
votes
1 answer

Rerun a process in Monit if process stops

I have a script like this this: #!/usr/bin/php
slashmili
  • 1,190
  • 13
  • 16
0
votes
1 answer

How can I create a monit process for a Ruby program?

I have these rake tasks that will occasionally fail. I want to use monit to monitor them and to restart them if necessary. I have read the other ruby/monit threads on StackOverflow. My case is different in that these programs require my Rails…
RubyRedGrapefruit
  • 12,066
  • 16
  • 92
  • 193
0
votes
1 answer

Run at startup and monitor redis and node.js processes

I want to deploy node.js app which depends on redis. Both processes will run on the same VPS. There are plenty of examples on how to daemonize and monitor node and I've also found some uncommented configuration for redis. How do I put it together?…
Juribiyan
  • 700
  • 8
  • 25
0
votes
2 answers

Monit cannot open connection errors resulting in alerts from M/Monit that server is down

I'm using monit and M/Monit to monitor my application infrastructure. But every once in a while, M/Monit will show a "No report" error from a server and mark it down. A few seconds later, the issue clears at the next check in for the server to…
Rich Sutton
  • 10,004
  • 1
  • 17
  • 21
0
votes
1 answer

Prevent Monit from starting a process on a machine restart

We have around 100 daemon processes started by monit. All these processes are CPU intensive during the initial phase of their processing i.e. the bootstrapping is CPU intensive. In case of a machine restart all the 100 processes start at the same…
0
votes
1 answer

Monit sytax error in monitrc

I have the following mail-server setup in my monitrc file (version 5.6): set mailserver smtp.gmail.com port 587 username "myemail@gmail.com" password "mypassword" using tlsv1 with timeout 30 seconds using hostname "mydomain.com" (I…
RockyMountainHigh
  • 2,871
  • 5
  • 34
  • 68
0
votes
1 answer

monit status does not reflect its own reality

I am using monit to monitor a couple of custom rails daemons. They boot slowly on a raspberry pi (no surprise there). But the monit summary command endlessly alternates between waiting and execution failed even though the log says the daemons are…
RussK
  • 199
  • 1
  • 17
0
votes
1 answer

puppet could not find dependency Package[monit] while applying Gitorious manifest

I am trying to install Gitorious on RHEL 6.3 but I have a similar issue as Chris: ~/gitorious-ce-installer> sudo puppet apply --debug --modulepath=modules manifests/site.pp [...] Could not find dependency Package[monit] for File[/etc/monit.conf] at…
oHo
  • 51,447
  • 27
  • 165
  • 200
0
votes
1 answer

Monit opening an URL when check fails

I love the site. It's a good place to look for answers. Thanks for that. I am wrestling with a feature of munin on a test server. It runs lighttpd, mysql, ssh, proftpd, postfix and dovecot. If one of them fails, I would like to receive a text…
Thom
  • 67
  • 9
0
votes
2 answers

redhat linux upstart (initctl) issue on reboot

Morning, I have monit I am testing on redhat 6.4 system. I setup a /etc/init/monit.conf: description "Monit service manager" limit core unlimited unlimited start on runlevel [2345] stop on runlevel [!2345] expect daemon respawn exec…
archcutbank
  • 419
  • 1
  • 6
  • 17
0
votes
0 answers

sudo password fail trying to setup monit for rails application

I'm following along with Ryan Bates' Railscast on Monit http://railscasts.com/episodes/375-monit?view=asciicast, the monitoring system for Rails applications. In it, he creates a capistrano recipe for monit (see below) which runs with the command…
Leahcim
  • 40,649
  • 59
  • 195
  • 334