1
vote
1answer
92 views

Monit cannot connect to Solr/Jetty instance

I have my Solr/Jetty up and running well on Ubuntu 12.04. I am trying to hookup my monit conf to monitor it, but it is having trouble connecting to the service. I have Solr running on port 8983 and ...
3
votes
1answer
175 views

Upstart: Why two processes when running as a different user?

I want to keep a nodejs app running, so I followed this: http://howtonode.org/deploying-node-upstart-monit and installed Monit and Upstart which have been working perfectly for a couple of months. I ...
1
vote
1answer
104 views

Monit configuration reload - supposed to restart monitored services?

Running Monit 5.4 on an Ubuntu server. When I use monit reload, it seems that it restarts monitored services (Tomcat 7 in this situation). Is it the expected behavior? Documentation says : reload ...
0
votes
1answer
82 views

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 ...
2
votes
1answer
179 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 ...
0
votes
2answers
99 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 ...
1
vote
1answer
199 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
votes
2answers
411 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 ...
2
votes
1answer
411 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 ...
1
vote
1answer
572 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 ...
2
votes
1answer
378 views

How do I restart MySQL in monit when page contains specific text?

How do I check if a web page contains the text "Error connecting to database" and if the text exists in the page restart the database? Here's what I have so far but it isn't working: check host ...
1
vote
0answers
236 views

Monit 5.3.2 not working on Ubuntu 12.04 x86_64

I have monit working on several servers but when I install it on Ubuntu 12.04 64-bit server I get the following error reported in the log file and monitoring doesn't work. [EDT Jun 24 21:26:20] error ...
1
vote
1answer
474 views

Rewrite URLs with Apache (to be used in combination with mod_proxy)

I'm using Apache and mod_proxy to provide access to the Monit GUI over HTTP. So far my configuration is as follows: ProxyRequests Off <Proxy *> Order deny,allow ...
1
vote
1answer
142 views

301 response when monit checks for file on nginx

I have a monit script that checks that nginx is up and running. One thing it does is checks for a file 'ping.txt'. I can view it in the browser, but what would cause the script to get a 301 redirect ...
1
vote
1answer
527 views

Monit appears to be working on command line but get 404 'There is no service by that name' in web interface

Monit seems to be working, but when I go to the web interface at port :2812 I get: Not Found There is no service by that name monit 5.2.5 -- But again, things appear ok on the CLI ...
1
vote
1answer
57 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, ...
1
vote
3answers
223 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, ...
0
votes
1answer
2k 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 ...
0
votes
1answer
127 views

Apache and monit keep crashing

I'm using a VPS on Ubuntu 10.10 to serve my private website and Apache 2.2.16 keeps crashing without a trace. The server is on a very light load with about 300 visits/day. To solve this I have set up ...
1
vote
2answers
654 views

Monit not starting after OS upgrade to Ubuntu 10.04 LTS

Iv recently upgraded the version of Ubuntu from 9.04 to 10.04LTS (through 9.10) and now Monit won't start. Doing a sudo /etc/init.d/monit syntax says the syntax is ok. If I run the command sudo ...
1
vote
1answer
211 views

Ubuntu service monitoring like “monit” - do you use it?

What are your thoughts on using any kind of service monitoring to auto restart services that failed? Is monit a good solution?
0
votes
1answer
326 views

How can I trigger a Monit event when a service comes back up?

Given a config like this: check host web1 address web1 if failed host web1 port 80 protocol http then exec "/usr/local/bin/failover.sh -h web2" Can I detect if web1 has returned from failed ...