monit is a free, open source process supervision tool for Unix and Linux.
0
votes
1answer
19 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 ...
0
votes
1answer
54 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 ...
1
vote
0answers
22 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
86 views
+50
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
19 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
1answer
42 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
21 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
29 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 ...
0
votes
1answer
16 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
0answers
26 views
Monit keeps crashing on multiple servers
I have Monit running on various Ubuntu AWS machines. Every few days the processes crash. Anyone seen this or have an ideas? Thank you -
When it happens I get this error in the monit logs:
[UTC Mar ...
0
votes
3answers
81 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
68 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
27 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 ...
2
votes
1answer
89 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 ...
0
votes
0answers
35 views
Monit: How to temporarily unmonitor a process as a non-root user?
I need to temporarily unmonitor a custom daemon when I deploy a new version. I tried monit unmonitor <name>, but it says I don't own monitrc since my deploy script does not run as root or have ...
0
votes
0answers
57 views
Monit check log file content
I am having a issue with Monits content check. I know I can check the log file like this
check file test.log with path logs/test.log
if not match "something" for 5 cycles then alert
But the log ...
0
votes
0answers
29 views
Start resque with monit default config
I am trying to start resque with Monit and monitor it. I modified the default config so it will look for my user ruby etc, but monit wont even write to its log that its starting it.
check process ...
-1
votes
1answer
46 views
Can you do a monit stop <name>, with a timeout to force kill a process? [duplicate]
I have a long running daemon I need to take down for maintenance every now and then, is there an easy way to run monit stop <name>, but if the process doesn't stop after a period of time then to ...
1
vote
1answer
33 views
Is there an easy way to do monit start <name>, only if its not running?
I know you can do monit start <name> to start an individual process (eg if I had taken it down temporarily using monit stop <name>), but is there any easy way to tell it to only start the ...
2
votes
1answer
59 views
I need to monitor a log file with monit if the file does not change monit will alert
I need help. I was looking in to Monit documentation and I need help. I could not find my answer there. I need to monitor a log file of a service, if that log file stops to increase in size or even ...
2
votes
1answer
53 views
Combining uninstall, stop, install, start script via monit
We have socket listener which listens on port 9000 so below is how we wrote the alert for monit. The listener runs via yajsw daemon tool. So currently when it fails on port 9000 we get an email. What ...
0
votes
1answer
68 views
Load balance M/Monit collector
I am new to Monit monitoring system. Can we load balance mmonit collector (two instances) to avoid single point failure.
I mean if monit collector (instance) is down, whole monitoring system will be ...
0
votes
1answer
112 views
monit fails to start apache
I'm running Apache, and trying to monitor it wiht Monit.
The monitoring seems to work fine, but when Apache is down, Monit does not succeed to start it.
Monit does detect that it's down, but the ...
1
vote
1answer
72 views
allow a user to run specific monit action
I have installed monit for many applications with the root user.
One of the applications is started with a non-root user account.
Unfortunately, when I
update my app, I also need to restart it. My ...
0
votes
1answer
69 views
Monit from epel not able to start via upstart method
I have centos 6.3 machine and did a yum install monit (version
monit 5.1.1-4.el6 from epel) and then I setup the up the http://mmonit.com/wiki/Monit/Upstart and tried to start monit initctl start ...
0
votes
1answer
30 views
Comparison in Monit Permissions Testing
I'm trying to use Monit to check the permissions of a particular directory, but I only care that it's readable to all users. I don't care about any other permissions (write, execute) for the owner, ...
0
votes
1answer
109 views
Unable to access monit daemon via HTTP from host port using Vagrant
I want to use monit to monitor services on my Ubuntu VM(precise 32) but I cannot access the monit daemon via HTTP from the host (local) machine.
I have enabled the following settings in ...
1
vote
2answers
103 views
getaddrinfo: command not found [duplicate]
Possible Duplicate:
How do I fix “getaddrinfo: localhost Name or service not found” for telnet server?
I've installed a new Ubuntu 12.04 on an AWS EC2 instance and everything worked fine ...
2
votes
1answer
66 views
How to use monit to make sure only one instance of process is running
I have ruby daemons running. Once in a while we'll accidentally start up a second instance of it, which causes race conditions.
Can I use Monit to detect if multiple instances of 'my_ruby_daemon' is ...
2
votes
1answer
78 views
Is it possible for Monit to perform a Sysfence style load average calculation using conditionals?
I am beginning to migrate from Sysfence to Monit on a RHEL Linux box and I wonder if it possible to create the following sysfence equivalent in Monit.
Sysfence configuration (partial)
For example, ...
2
votes
1answer
52 views
Suppress all alerts for a specific Monit service check?
Under my Monit 5.4 installation, I'm interested in suppressing all alerts for a particular service check.
Given the following stanza:
check process nslcd
with pidfile ...
0
votes
0answers
56 views
Monit mail alert failed
I have configure our Monit to monitor some of the application in our linux box (httpd,mysqld,etc...).We can receive alerts when using gmail SMTP to send email through it but it failed when we are ...
2
votes
1answer
89 views
Monit server went down
One of our developers needs some sort of notification in order to know whether the application is running smoothly or not.And We already decided that we will implement monit in order to get this ...
0
votes
0answers
40 views
Monit Not Starting
Installed Monit per http://wiki.mediatemple.net/w/%28dv%29_4.0_-_Making_It_Better_::_Installing_Monit
monit -t shows syntax is OK.
My config file is: http://pastie.org/5031846
Running: ...
0
votes
1answer
22 views
Monit Password Restrictions?
Are there password requirements for a monit password?
I'm unable to start monit. Doing monit -t shows that the syntax error is a ! In my password. I changed it to % and then it said that character ...
0
votes
1answer
84 views
Monit runs exec action too often
I've written a script which sends me an sms notification. I call with exec action in monit test. It works, but I'm getting overwhelmed by messages. Is there a way to suppress sending subsequent ...
2
votes
1answer
104 views
Monit won't run
I have two identical EC2 instances (the second is a replica of the first), running Gentoo.
The first instance has monit running which monitors a single process and some system resources and functions ...
0
votes
2answers
154 views
Does exist a linux service for watching/checking (and restarting, i.e. for a segfault) running daemons? [closed]
I'm searching for a linux service that watches/checks every n seconds a list of running processes/daemons for detecting (and noticing+restarting the process) any issues (like a segmentation fault in ...
1
vote
1answer
188 views
Using runit and monit to run / monitor services
I am configuring some services to run on Ubuntu server.
I was going through the link below where they use runit to run the services and monit to monitor the services -
...
1
vote
0answers
99 views
Monit http-based API
I'm just wondering whether monit has an API, which we could poll-regularly (perhaps something that is http-based) ?
It would be very useful to create an integrated monitoring solution across multiple ...
3
votes
1answer
1k views
Monit versus Nagios
Does nagios offer any additional functionality when compared to monit?
This answer states that monit is a clumsy tool for situational awareness, which is the reason I'm asking the question.
1
vote
2answers
143 views
Monit and Thin and Unfound Gems
I've been using Monit to monitor my Thin server and everything was working until I upgraded my Rails version from 2.3.4 to 2.3.14. Now when I try and start Thin using monit it gives me an unfound gem ...
1
vote
1answer
113 views
Taking two actions in monit
My monit script works to detect an outage with a process and inform me when the rule is:
IF DOES NOT EXIST THEN ALERT
My monit script works to detect an outage and automatically fix it when the ...
5
votes
1answer
183 views
What's the point of using runit in combination with monit?
I see a lot of people using monit in combination with runit. Isn't that redundant? What is the point of using runit as well? Is it because it's more reliable when dealing with services (as it doesn't ...
0
votes
1answer
397 views
Monit configuration for Apache, MySQL, and Postfix
I plan on enabling Monit on my production server with the below configuration. I'm completely new to Monit and wanted to hear from others on tips or if there were other directives I should consider to ...
0
votes
1answer
110 views
How to run a shell script before restarting a service in Monit in case of a crash
I am using Monit 5.3.2 in my Linux box. I am monitoring some services using Monit.
I want to run a script before the running the restart command.
I have used the below conditions for the same.
if ...
1
vote
1answer
962 views
How to find the .pid file for a given process
I'm setting up monit and want to monitor a given python application. Monit does this by looking at the .pid files for processes, but I don't know where this would be.
I also tried creating my own ...
2
votes
1answer
83 views
Monit failed to restart apache
Apache failed and Monit did not restart it as expected. The error in monit's log is:
Error opening Monit id file '/root/.monit.id' for writing-Cannot allocate memory
The problem is that Apache went ...
2
votes
1answer
111 views
Monit restarting action
I want to execute a script when monit is restarted. For my case, this mostly applies to the restart of the whole server.
How can I achieve this? Is there a way beside monit to do this?
Background: ...
3
votes
2answers
184 views
Use monit to monitor apache2 subprocesses
I am currently using Monit to monitor Apache and restart it if its memory usage is too high. However, I'd also like to be able to monitor the individual apache2 subprocesses that are spawned, and ...
