monit is a free, open source process supervision tool for Unix and Linux.

learn more… | top users | synonyms

2
votes
1answer
377 views

monit mysql server blocked because of too many bad connections

Is there any tweak for monit or another way to monitor whether one server can access mysql on another server? I tried it with monit but as you probably know, after 10 attempts, mysql blocks the ...
1
vote
1answer
73 views

monitoring error rate with monit

Is there a way to tell monit to alert me if there are more than X errors (e.g. lines matching "ERROR") in a log file in a certain time? My use case would be: errors sometimes appear in my log file ...
0
votes
1answer
180 views

Can't get monit to run “exec” actions

I've got a working monit installation on CentOS 6.5. Events are getting detected and alert mail is getting sent, but I'm trying to get other things to happen when an event fires, via the exec ...
0
votes
0answers
20 views

Control system monit with users

I want to have monit start on system boot, potentially to monitor several rails delayed_job apps, each as a different user. I have it working as root, each monitoring definition specifying the user ...
0
votes
1answer
398 views

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 ...
0
votes
0answers
104 views

monit, unable to start node.js script

I need to run my stats collecting daemon & send alerts, when it is down. I tried thousands of variants.. and last was: check process collect-stats with pidfile ...
2
votes
1answer
125 views

M/Monit how to see current disk space?

In the admin interface of M/Monit under Reports -> Analytics I can chose to show Space %. How can I make the Monit clients submit this info? Is there a way to display Disk Space percentage on the ...
0
votes
1answer
543 views

Monit is not restarting process

I have monit to monit a process but it doesn't realize it is down. My monit configuration is this: check process xxx with pidfile /var/run/xxx.pid group yyy start program = "/etc/init.d/xxx start" ...
0
votes
1answer
348 views

monit with ssl (https)

I recently installed monit (on debian) and everything is working fine. Now I would like to enable ssl support. I did what I found in the documentation: set httpd port 2812 ssl enable pemfile ...
0
votes
1answer
97 views

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. ...
2
votes
1answer
159 views

Monit “is alive” check of PostgreSQL tends to fail during a run of pg_dump, is there a better way?

I use pg_dump for my primary backup, once every three hours. I also use monit. When monit checks if PostgreSQL is alive during the pg_dump run, it sometimes times out, and restarts postgres. This ...
1
vote
1answer
1k views

monit: can't connect to the http interface

I'm setting up monit on a new site, which i'll refer to as mywebsite.com during this question. I've set up the config to access monit's web interface page, but i can't connect to it. I've got a ...
1
vote
1answer
86 views

Monit fails Jenkins HTTP test when Jenkins is on subdirectory

I am using Monit to monitor all of my services. The Jenkins process fails its HTTP test when Jenkins has the --prefix=/ci that I need to run it behind Apache. Is there any way to make Monit search ...
0
votes
0answers
39 views

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 /...../.... ...
2
votes
1answer
3k views

Free alternatives to M/Monit interface for the Monit systems management system [closed]

I really like Monit systems management system but I have no IT budget to purchase M/Monit interface which is used to manage multiple hosts for our small university lab. I have checked out Ruby based ...
0
votes
1answer
812 views

Issues in monitoring apache tomcat server using Monit

I have installed Monit using the following command in Ubuntu Linux 12.04.1 server sudo apt-get install monit My main goal in using Monit is to restart my - MySQL and Apache tomcat services ...
2
votes
1answer
41 views

Process 'clamd' “not monitored”

the output of monit summary says clamav is not monitored. The configuration says: check process clamd with pidfile /var/run/clamav/clamd.pid start program = "/etc/init.d/clamav-daemon start" ...
1
vote
1answer
280 views

Monit and amavis

I have noticed that occasionally amavis is not running. I thought monit was watching the process, however it doesn't seem to warn me or fix it. My monitrc entry looks like this and I can confirm ...
2
votes
0answers
372 views

Monit unable to start sidekiq on Opsworks server

I have used AWS Opsworks to create some servers. I have Sidekiq running as part of my Rails application. When I deploy Sidekiq restarts nicely. I am configuring Monit to watch the pid and start and ...
1
vote
1answer
293 views

Monit and Varnish

I am using the following config for monit set daemon 30 check process varnish with pidfile /var/run/varnishd.pid if failed host www.hatchedbyyolk.com port 80 protocol http and request ...
2
votes
1answer
63 views

monit not able to monitor mysql with sock

Just in case if you are using Monit version 5.1.1 and try to monitor mysql with sock it will always fail with "Connection failed" my monit configuration file is: check process mysql with pidfile ...
2
votes
1answer
266 views

how to start monit daemon with all processes unmonitored

it seems that by default starting monit the first time when there is no state file(my state file gets blown away on reboot) will start all processes in monitored mode. I want to start the daemon in ...
1
vote
1answer
204 views

Puppet dashboard monitor via puppet

Did anyone else find it strange that puppet labs recommends tools like monit to monitor the dashboard worker processes? http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html ...
0
votes
1answer
94 views

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 ...
1
vote
2answers
56 views

Monitor # of established sockets with Monit?

I cannot figure out how to get Monit to monitor the number of open/established TCP/IP connections on a server so an alert can be sent when "too many" are open. Do you know how this can be setup?
2
votes
2answers
640 views

monit hostname is always localhost

I've got monit running on a server to alert by email with the following config set mailserver 127.0.0.1 using hostname "vps1.sender.com" set mail-format { from: monit@sender.com } set alert ...
2
votes
1answer
2k views

how to set up monit to monitor disk-space

I use monit on my server to monitor apache and mysql running. Now I want to add an alert if the disk gets too full. I added this for testing in /etc/monit/monitrc: check device rootfs with path ...
0
votes
2answers
133 views

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 ...
0
votes
1answer
154 views

Low traffic Nginx on AWS Ubuntu 11.10 EC2, returns 499 when tested by monit, why?

I have a very low traffic Nginx box that serves as a reverse proxy to an external service. I have Monit on the box to restart nginx if it crashes. Needless to say, nginx stops at least once a day on ...
1
vote
1answer
280 views

Monit — Daemonize non-daemon process?

I have a ruby process that don't run as a daemon (it runs in the foreground), but can generate a pid file. My question is does Monit always expects to monitor background/daemonized processes? I used ...
1
vote
0answers
78 views

Restarting a program with monit

Hopefully someone can help me out with this: I am running a game server that crashes with a segfault every 3 hours, I am trying to get a restart script working but I'm a complete noob when it comes to ...
-1
votes
2answers
704 views

Can't find httpd.pid to use for Monit apache2 monitoring

I'm new to linux and I setup Ubuntu 12.04 on Digital Ocean. I installed Monit and got it to monitor Mysql successfully with email alert. I want to monitor Apache2 as well but cannot find any ...
0
votes
0answers
28 views

Monit stop script never called

My monitrc looks like this : check process java with pidfile /opt/release/RUNNING_PID start program = "/bin/su -c /opt/release/start.sh root" stop program = "/bin/su -c /opt/release/stop.sh ...
0
votes
1answer
238 views

Monit detecting error, but not restarting asterisk

I am running Ubuntu 13.04 with the corresponding versions of monit (5.5-6) and asterisk (1.8.13.1). I have monit set up to watch my asterisk log file for disconnection to my SIP provider and restart ...
2
votes
1answer
215 views

Why does Monit perform actions on unspecified cycles?

I am using Monit 5.5 with the CHECK PROGRAM directive to execute an external script that does some work to verify if my app is functioning properly. I want to do this check every few cycles so as to ...
1
vote
1answer
247 views

How to user monit to count the number of instances of a process

Is it possible to use monit to count the number of instances of a process (in my case Celery) and take an action accordingly. For example if there are 4 instances of celery daemon, then take action
2
votes
1answer
422 views

Is it necessary to monitor the PID of proccesses?

In some tutorials I've seen the following snippet for monitoring processes with PID: check process nodejs with pidfile "/var/run/yourprogram.pid" start program = "/sbin/start myapp" stop ...
0
votes
1answer
34 views

Monit action to restart all services

I have configured monit to check for my services, and I'm checking if one of the services still sane. If this service is not working as it should I would want monit to restart ALL the services I'm ...
2
votes
1answer
2k views

monit send email does not work

I am trying to use monit, and set up email server using gmail. The configuration file is like this: set mailserver smtp.gmail.com port 587 username "someuser@gmail.com" password "password" using ...
2
votes
1answer
341 views

Monit unable to start/stop nginx server

I have problems with monitoring nginx. Monit can monitor nginx and display resources usage (RAM usage, etc.), but is unable to start/stop nginx. I get only a simple message: "Execution failed". Syslog ...
3
votes
2answers
407 views

Monit 5.5 binding to localhost only, but should be on all

Using Centos 6.4, using a yum installed Monit 5.5. I have 2 servers with monit installed - same version, same config - but one binds on all addresses and the other only binds on the localhost. ...
0
votes
0answers
509 views

how to config monit for send mail alert apache restart

I'm configuring /etc/monitrc and I need a config that Monit sneds an alert email when httpd service start I'm trying with this configuration: check process httpd with pidfile /var/run/apache2.pid ...
1
vote
2answers
460 views

Suppress Monit message 'Monit instance changed' on stop/start

I have monit installed on some user laptops/desktop so it can make sure a couple processes are always running/get restarted as needed. But since the devices are regularly shutdown/restarted I ...
0
votes
1answer
100 views

Can't get monit to start program

I'm trying to get monit to monitor a program and start it if it goes down. Here's my basic config: check process maitre_d_8000 with pidfile /home/tango/env/maitre_d/8000/pid.pid start program = ...
1
vote
1answer
108 views

Exec when service is ok with monit

I need to run a shell script if a service is ok with monit, to link to my other monitoring system (nagios). Basically what I need to achieve is to make monit send an alert when a service was ...
1
vote
1answer
38 views

monit “check program” with email?

I have this in a monit script (lines 11-13): check program foo with path "/usr/local/bin/foo.sh" with timeout 300 seconds if status != 0 then alert dan@example.com monit reload says: ...
0
votes
3answers
311 views

Passively monitor IO wait spike on process level

We use munin and monit to keep track of general stats about our vps, in last a couple of weeks, we have been running into issues where random IO wait spike is killing our server performance. Since ...
0
votes
1answer
323 views

Why Monit does not work with my MySQL configuration file?

I'm using a custom configuration file for mysql in /etc/mysql/conf.d/myfile.cnf The contents of the file [client] port = 3306 socket = /var/run/mysqld/mysqld.sock [mysqld_safe] socket ...
0
votes
1answer
92 views

How to set user who runs command in monit respecting his .bash_profile?

I want to supervise my Rails application running on unicorn with monit. Running following two from shell when logged in as root would fail: "/srv/app/current/config/unicorn.sh start" su -c ...
4
votes
1answer
1k views

How do I get monit to do multiple actions when a monitored process has failed?

I have a custom service that I want to monitor with monit. When the process fails I want to copy the log to a shared file system and restart the service. Something like the following but I am not ...