Questions tagged [monit]

Monit is a free open source utility for managing and monitoring, processes, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.

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.

434 questions
0
votes
1 answer

Monit can not start thrift

Here's my code below: check host thrift with address 127.0.0.1 if failed port 9090 type tcp then exec "/bin/bash -c '/bin/lib/hbase/bin/hbase-daemon.sh start thrift'" The first two lines can be executed as I expected, but the last line is executed…
Tanapat Sainak
  • 734
  • 1
  • 10
  • 22
0
votes
0 answers

Monit log monitoring (long log lines!)

Monit is monitoring a log file with very long lines and when a content match is occuring, only part of the log line is displayed (both on the email alert and on /var/log/monit.log). I looked into the documentation and couldn't find anything helpful,…
davidbz
  • 1
  • 3
0
votes
2 answers

Regular expression to match error and associated few lines

I am looking for a single line regular expression to match the word "Error" from the log file and i need to get the few lines above and below the lines that has the word "Error" for debugging purpose. For example: I need to match for the word…
0
votes
2 answers

Monit start without sudo on starting unicorn

I am using monit at production server. I have installed rbenv and bundler in a user which is in sudo group. Monit is unable to start unicorn server because it uses sudo by default and bundle command is not present in sudo. `$…
sri_sankl
  • 223
  • 4
  • 13
0
votes
1 answer

Supervising C++ multithread process using Monit

I have a question about Monit. i've wrote a multithread C++ process. The main and some of the thread that it invoke, ar critical for my application and needs to live for indefinite time. include ....... std::thread Thread_1(…
user3450036
  • 85
  • 1
  • 2
  • 10
0
votes
1 answer

Monit Syntax Error

I am using Monit v5.5 and trying to set a check for apache. Everything below is as per the documentation. However, when i say monit -t, i get /etc/monit.conf:155: Error: syntax error 'http' which points to the HTTP HEADERS line. Commenting it out…
abhi.gupta200297
  • 881
  • 6
  • 12
0
votes
1 answer

monit: unrecognized service

I've installed monit on my Centos 5.11 server (has Webmin/Virtualmin) using YUM and all appeared to be OK. I found it wasn't starting at boot and since trying to get this to happen when I try and start the monit service I now get: # service monit…
DoubleSpeed
  • 43
  • 1
  • 5
0
votes
1 answer

Confusion over where standard out goes with monit process

I've been trying to set up logging for my node.js app, using monit to monitor and restart the app. One question I have is, where does the standard output go? For instance, if my monit config looks like this: check host node_web_app_beehive with…
worker1138
  • 2,071
  • 5
  • 29
  • 36
0
votes
2 answers

Monit all files in directory

Is there a possibility to run checks on all files in a directory with monit, Without mention every file in this directory by itself? For example: /etc/configurations-to-monitor/ config1 config2 config3 By now I use this in…
xshadow
  • 81
  • 3
0
votes
2 answers

How to configure new relic on monit

I'm having difficulties having monit to start newrelic-sysmond This is the current config check process newrelic with pidfile /var/run/nrsysmond.pid start program = "/etc/init.d/newrelic-sysmond start" stop program =…
Martin
  • 11,216
  • 23
  • 83
  • 140
0
votes
1 answer

Setting up deployments with Capistrano, Sidekiq and Monit

My application uses Sidekiq to handle long (several minutes) running background tasks. Deployments are done with Capistrano 2 and all processes are monitored with Monit. I have used capistrano-sidekiq to manage the sidekiq process during deployments…
Mika
  • 1,419
  • 18
  • 37
0
votes
1 answer

Monit fails restart php5-fpm

I'm on Ubuntu 14.04 LTS with the latest php5-fpm and try to restart it via monit if port 9000 fails. My config: check process php5-fpm with pidfile /var/run/php5-fpm.pid group www-data start program = "service php5-fpm start" stop program =…
0
votes
1 answer

Determining the group for a monit process

I'm using chef & monit to spin up a group of workers like so: check process delayed_job with pidfile /srv/www/blog/shared/pids/delayed_job.pid start program = "/bin/su - deploy -c 'cd /srv/www/blog/current && RAILS_ENV=production bundle exec…
earnold
  • 1,440
  • 1
  • 15
  • 26
0
votes
1 answer

Node.js Ubuntu and Monit

I'm working on getting a Node server up with upstart and monit instead of using a cron job to run a script to check on things. I've built an admin dashboard for the server that uses the Node os module for things like os.loadavg() and os.totalmem(),…
nathansizemore
  • 3,028
  • 7
  • 39
  • 63
0
votes
1 answer

Making Config for Monit to check program started from bash

I'm hoping someone out there is used to monit and can help me. Im running a home data server, with Ubuntu 13.10. I have CGminer setup to start when the PC boots, from a bash script of my own creation. It contains a few tweaks and setting that need…
7hr08ik
  • 109
  • 2
  • 9