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

Monit cannot restart apache

I have got monit installed on a lot of our VMs. It all works fine except for this one VM. Monit is set to monitor apache and check if it is down. For some reason, monit is saying that apache is down (it is not) and that it needs to be restarted.…
mamorunl
  • 11
  • 5
0
votes
1 answer

Monit on EC2 - Monit works but it doesn't monitor any service

I have a ubuntu 14.04 instance on amazon, I've installed monit with some simple configuration files but it seems like it doesn't monitor them. I have installed monit a couple of times in other servers (with ubuntu 14.04) and I have used exactly the…
JohnDel
  • 67
  • 1
  • 2
  • 11
0
votes
1 answer

Monit: How to check a program executed by a specific user?

I have been using monit/mmonit to monitor my system. One if its features is the check program syntax, which runs a program and validates its return value: # Asserts that there are more than 40 users in the DEV DB. check program…
Adam Matan
  • 12,504
  • 19
  • 54
  • 73
0
votes
1 answer

Restarting shell script with &disown using Monit

I have a shell script that runs a C++ backend mail system (PluginHandler). I need to monitor this process in Monit and restart it if it fails. The script: export LD_LIBRARY_PATH=/usr/local/lib/:/CONFIDENTAL/CONFIDENTAL/Common/ cd…
0
votes
3 answers

Setting up monit to work with Varnish and nginx

I have a problem with monit where occasionally Varnish will crash and refuse to start. So Varnish is dead and my webserver is inaccessible. Here's the message from the monit log: info : 'varnish' stop: /etc/init.d/varnish info : 'varnish'…
Lin
  • 2,869
  • 6
  • 26
  • 25
0
votes
2 answers

Monit issues with mysql Ubuntu server 12.04

I've installed Monit on Ubuntu server 12.04 but Im having issues getting mysql monitoring to work at all. Here is what I have done so far. #/etc/default/monit startup=1 #/etc/mysql/my.cnf pid-file =…
Eko3alpha
  • 147
  • 1
  • 8
0
votes
1 answer

Staging and Production versions of same Monit job

I have monit configured to monitor a job for the production version of my application: # in /etc/monitrc: include /etc/monit/delayed_job.my_app.production.monitrc # in /etc/monit/delayed_job.my_app.production.monitrc check process delayed_job with…
James A. Rosen
  • 503
  • 3
  • 9
  • 19
0
votes
1 answer

Monit's check process do not respond on process kill

I put next file in /etc/monit/conf.d/sidekiq: check process sidekiq with pidfile /data/my_app/current/tmp/pids/sidekiq.pid And expect that monit will log a message when service is not running. I have sidekiq process running: # ps aux | grep…
mikdiet
  • 101
  • 3
0
votes
1 answer

Configure Monit to delete /var/lib/mysql/mysql.sock after abrupt Centos6.5 machine shutdown

I have Monit monitoring Mysql. When the machine shuts down abruptly eg a power failure, mysqld cannot be restarted unless /var/lib/mysql/mysql.sock is deleted, due to the error Another MySQL daemon already running with the same unix socket. What…
0
votes
1 answer

Monit system cpu usage

Monit version: 5.0.3 Server: Ubuntu 10.04.4 LTS I want to monitor the system cpu usage with Monit and I am trying as follows: check system host_name if cpu usage (user) > 70% then alert if cpu usage (system) > 30% then alert if cpu usage…
piazz23
  • 13
  • 1
  • 2
0
votes
1 answer

How can I find a specific PHP process with pgrep (monit related)

I've got a number of php processes that I'm running in the background, with monit as the manager for them. My current config for monit looks like: check process myprocess1 matching "process1.php" start program = "/usr/bin/php…
Jim Miller
  • 713
  • 2
  • 11
  • 23
0
votes
1 answer

using monit to monitor processes

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
  • 1
  • 2
0
votes
0 answers

monit service permission starting a linux service

I'm running monit to monitor a linux service i wrote which basically makes sure that a mounted partition exist. the service start action is: mount -a the service stop action is: umount /...../.... When i'm running the service manually everything…
Danny Valariola
  • 263
  • 3
  • 12
0
votes
1 answer

monit fails to run the command to start goliath server

can someone shed some clues as to why, when i run this command manually on terminal: /bin/bash -c 'cd /home/david/live && bundle exec ruby /home/david/live/api/goliath.rb -sv -e prod' its going to fire my server just fine - but when its on monitrc…
David
  • 167
  • 1
  • 1
  • 8
0
votes
2 answers

monit displays false number from my uptime script

I've wrote a script for fetch real uptime and display in monit. But I think it displays just exit error status. My uptime script is: #!/bin/sh uptime=`uptime | awk -F " " '{print $3}'` echo $uptime exit $uptime When I run it in terminal result is…
Sencer H.
  • 532
  • 1
  • 8
  • 17