Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
23 views

Kill or revive a process based on system memory usage

Consider a system with limited memory, like a smallish VPS. Suppose there are a handful of processes that need to stay alive, and one process "P" that would be nice to have around, but is not ...
2
votes
1answer
41 views

Monitor DoS attack with snmp

Is there any way to monitor DoS attacks with SNMP or any other software which based on Linux and could monitor router / switches and alert when a DoS attack is observed?
1
vote
1answer
73 views

StartSSL certificate with monit

I'm trying to use a StartSSL (free) SSL certificate with monit. I followed the wizard on startssl.com to generate first a private key, then a certificate. I then downloaded the ...
0
votes
2answers
46 views

nginx proxypass monit links

I'm trying to setup Nginx to forward requests to several backend services using proxy_pass. Loading https://example.com/monit works, however the links within the page are to https://example.com/sshd ...
0
votes
1answer
44 views

Specify a mailserver hostname and tlsv1 in monit

[Edit: I answered the first half of my issue, so I'll edit this to address the second half.] /etc/monit/monitrc looks like this: set mailserver smtp.server.net port 587 username ...
1
vote
0answers
74 views

Monit: Customize alert message to include command output

I would like to customize the Monit's alert message, so that whenever I get an alert, the email also includes the output of a command like top, so that I will already know more details about what ...
0
votes
0answers
21 views

Monit won't start ar_sendmail

I've got monit set up and running. It monitors and will restart Apache and Mysql fine, but won't do the same for ar_sendmail. If I start ar_sendmail, monit won't pick up that it's running even ...
0
votes
1answer
43 views

Sending mails with monit over Google Apps mailserver

I am trying to send notification mails using monit v5.1. I am using Google Apps as a mailserver, so I wanted to use their infrastructure for outgoing mails. I have entered the following information ...
0
votes
2answers
31 views

Monit stops running on centos

How can you make sure that monit is always running? At the moment it's silently falling over and leaving the server unmonitored. Server is running on CentOS.
1
vote
2answers
43 views

Have trouble with monit (monit dead but subsys locked)

I installed monit on my centos 6/64bit and somethings wrong. Look at the shell : [root@ND-1003 monit.d]# service monit start Starting monit: monit: generated unique Monit id ...
0
votes
0answers
70 views

How to display all process matching a pattern in the monit web interface?

I am using monit to monitor all my processes which is matched using. check process [name] matching [process name pattern] Monit is able to match using the pattern and "monit procmatch [process name ...
0
votes
0answers
13 views

Monit: error log rate action

How can configure monit to email or alert me when the rate or error log spewing by apache goes beyond a threshold? I need to get proactive alerts in case something goes wrong.
0
votes
1answer
41 views

What does monit consider to be memory usage?

Once can have monit monitor memory usage… check system foo if memory usage > 95% then alert Does it use free RAM, or free -/+ buffers/cache? (or something else?) # free -m total ...
1
vote
1answer
18 views

Why can't I see the monit binary in the process list after starting it?

I have monit running and working (I set up a dummy warning that is getting sent), but I don't see any binary called "monit" in the process list. Furthermore if I sort the processes by newest process, ...
0
votes
1answer
61 views

Sending a test/example alert from monit?

I've configured monit tests and alerts — but I want to make sure that everything in my alert stack (outgoing email servers, sms email gateways…) is functioning properly. Is there a handy way to fire ...
0
votes
3answers
205 views

monit configuration for php-fpm

I'm struggling to find a monit config for php-fpm that works. This is what I've tried: ### Monitoring php-fpm: the parent process. check process php-fpm with pidfile /var/run/php-fpm/php-fpm.pid ...
0
votes
0answers
116 views

Monit + Passenger (nginx) - Won't kill process

I have an odd bug with a rails app I've created, causing it (randomly, maybe once every couple days) to have all (or some instances) go to 100% CPU usage and stay there forever. This causes nginx to ...
2
votes
1answer
90 views

Monitor a long running process

I need to start a long running, memory/disk/cpu intensive process on Linux, and monitor it so I can : check it terminates with a good status code, collect stats (mem cpu disk every x minutes ) alert ...
1
vote
3answers
126 views

Monit - how to check loadavg only when no backup is running?

I've got Monit configuration with: check system example.com if loadavg (1min) > 4 then alert if loadavg (5min) > 2 then alert I want to get rid of messages every time backup is ...
0
votes
0answers
67 views

Simplifying monitrc (make it DRY)

Most of the monitrc examples I see are verbose, lots of repeated 5-10 line boilerplate checks. Is there any way to parametize this stuff? I want something like: ensure_rails 8080 ensure_php 8081 ...
2
votes
2answers
134 views

Can monit be configured to never unmonitor/timeout a service?

Monit seems to give up restarting a service if it fails a few times, and unmonitors it. I can't find anything in the documentation about the specifics of when or why. In my environment, I want it to ...
1
vote
3answers
87 views

Making sense of Ubuntu Server Status Info

I'm trying to create a simple shell script to monitor my server. I plan to set up a CRON job to run it every five or 10 minutes. Here's how it will work: Run a number of linux commands e.g. iostat, ...
5
votes
1answer
72 views

Disable Monit alerts when PID changed

When you monitor a process with Monit by its pid, like : check process blop with pidfile /.../blop.pid start program = "..." stop program = "..." you get an alert when the pidfile is ...
0
votes
0answers
45 views

monit reporting “connection failure” when actually a “content failure”?

I have a monit rule which looks like this: check host example.com with address example.com if failed url http://example.com/status content == "ok" then alert group example.com But when ...
0
votes
1answer
34 views

why i am not able to access Gui panel at 2812 port

I followed this http://fosscasts.com/screencasts/6-System-Monitoring-With-Monit set daemon 20 set logfile /var/log/monit.log set mailserver smtp.gmail.com port 587 username "myemail" ...
0
votes
0answers
99 views

why configuring node.js application by monit restart the server every two minutes

I have configure monit by following lines but it is restarting the server after every two minutes what should i do ? check host myapp1 with address myserverurl.net start "/sbin/start myapp" ...
0
votes
0answers
48 views

Problem in configuring monit for node.js application

I am following this article http://wellconsidered.be/nodejs-with-upstart-and-monit when i give this in config file ,i name it mystartupprocessmonit in conf.d folder check host site-c.noort.be with ...
2
votes
1answer
211 views

monitoring nfs with monit

I'd like to monitor NFS mounts and the NFS server process using Monit. On the server, I'd need a PID file, but I can't seem to find a way of getting that created with existing configuration files. ...
0
votes
0answers
127 views

Restarting thin with monit in capistrano deployment

I am able to monitor thin with monit, but when I restart it with monit through capistrano, it crashes. I created a script to start thin with the yml: chdir: /home/jack/apps/myapp/current ...
1
vote
5answers
62 views

Custom server monitoring: Monitoring number of specific files in specific directory

I have many server running on live. Each server has many application. Each application has directory like /etc/somedir1, /etc/somedir2 where in each of that directory has many .html files. The ...
0
votes
1answer
32 views

Running monit on Suse SLED 10

Can anyone tell me how to get monit to start at boot on Suse SLED 10 ? Suse seems to do services different than everyone else. I found a link to a monit init file, but I don't think it will work ...
0
votes
2answers
217 views

cacti + nagios + monit =?

Currently I've got this trio configured, but I would like to have one solution, because configuring those 3 separately is a head ache time to time. First add service to monit, then to nagios and after ...
2
votes
1answer
96 views

Monit having trouble determining if the Bitcoin daemon is running

I'm setting up Monit to monitor the Bitcoin daemon to make sure it runs 24/7 and restarts it if something goes wrong. The Bitcoin binary is at /usr/local/bin/bitcoind, and the data directory is at ...
0
votes
1answer
29 views

Monit process aliasing

I have Monit checking a process whose name is just "python", but would like a more informative name (e.g. "webapp") in status, emails, etc. Is there any way to declare an alias, or would I have to ...
1
vote
2answers
84 views

Monit connection test frequency

I want to have Monit check a web application's health, running a cheap/trivial check frequently and an expensive/nontrivial check less frequently (e.g. 1/5 minutes). How can I tell it to check a given ...
0
votes
1answer
54 views

Monit catch run-away process

There are examples for how to make Monit detect a service going amok and use too much RAM. But what if the service forks a program and the child takes too much RAM? Or put another way, how can I make ...
0
votes
0answers
255 views

monit over apache reverse proxy and remote proxy to ssl destination host

I need to setup monit to communicate over a proxy to a mmonit host with ssl: mmonit => http://mmonit.com/ monit => http://mmonit.com/monit/ the mmonit host only accepts https requests with HTTP ...
1
vote
1answer
39 views

Change postfix logging behavior to omit connections from localhost due to monit

I have a fairly standard postfix installation which is monitored using monit. Monit checks the connection every so often and when it does, the connection from localhost is somewhat polluting my log ...
0
votes
1answer
200 views

mysql monitoring with monit

can someone please steer me in the right direction. I'm completely new to Monit, set it up, everything working fine, but I'm having a problem with mysql. This is the set up in my conf file: check ...
4
votes
3answers
340 views

monit: check process without pidfile

I'm looking for a way to kill all processes with a given name that have been running for more than X amount of time. I spawn many instances of this particular executable, and sometimes it goes into a ...
1
vote
3answers
200 views

Puppet defined resource - selective parameterization?

I'm currently banging my head trying to find the "best way" to achieve this type of granularity for puppet: I have a server running memcached in testing environment and another one running for the ...
1
vote
1answer
241 views

Monit is restarting apache2, should I fix the monit config, or the server config?

Monit is restarting apache2 frequently, based on the totalmem > 200m test in my apache2 stanza. I'm not sure that I actually have a problem, or if I should increase the totalmem test in my monit ...
0
votes
0answers
83 views

Hot reloading monit configs?

Is there a way to hot-reload monit config files? or even restart monit with a single line? Our deploy scripts currently kill & restart monit - but that triggers some alerts. Any way around this?
0
votes
1answer
128 views

Monitoring hanging processes

I need to monitor hanging processes on the output of ps -ef | grem GMC... What's the best way to do this without running this command manually and being stuck in front of a command line all day? I'd ...
3
votes
3answers
194 views

How to disable Monit instance start/stop alerts?

Monit sends an alert every time the monit daemon is stopped or started. This is obnoxious and not useful information. According to the docs, I set: set alert user@mycompany.com but not on { ...
1
vote
2answers
64 views

after installing monit when i do monit status myproc i get “error connecting to the monit daemon”

after installing monit when i do monit status myproc i get "error connecting to the monit daemon" I read somewhere that The status command won't work in the case that monit is running indaemon ...
0
votes
1answer
77 views

With Monit, how do I restart a process when a directory timestamp check fails?

In my /etc/monit/monitrc I have the following lines: check process foo_server with pidfile /var/run/bwam_server.pid start program = "/Users/foo/foo_server.sh start" stop program = ...
0
votes
2answers
28 views

Is there a way to test an individual Monit control file?

I've created a Monit control file, but it doesn't seem to be working. It would be nice to have a way to test Monitor control files other than by just letting them run and seeing if they work. Anyone ...
1
vote
0answers
186 views

Kill runaway Phusion Passenger child processes with monit?

Is there any way to monitor and kill Phusion child processes that are using too much memory or cpu with monit? There are many examples for Apache, but since Phusion runs in its own process, runaway ...
1
vote
2answers
304 views

Monit can't detect MySQL, but I can

Monit is configured to watch MySQL on localhost at port 3306. check process mysqld with pidfile /var/lib/mysql/li175-241.pid start program = "/etc/init.d/mysql start" stop program = ...

1 2