Questions tagged [monit]

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

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.

389 questions
2
votes
1 answer

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 Status page besides %Cpu and %Mem? I have found…
kev
  • 261
  • 1
  • 5
  • 13
2
votes
1 answer

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" stop program = "/etc/init.d/xxx stop" if failed…
2
votes
1 answer

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 /etc/ssl/certs/ssl-cert-snakeoil.pem Now not only can…
Georg Pfolz
  • 125
  • 2
  • 7
2
votes
1 answer

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 results in failed backup. What to do? Move to…
Terry G Lorber
  • 667
  • 2
  • 9
  • 14
2
votes
3 answers

Monit wont start/stop any processes

I've got monit running on a linux vserver, installed in a custom location /home/user/bin/monit as that is the only suitable location according to the webhost providers. When I installed monit I used ./configure --prefix=/home/user Monit itself…
Vaughan Magnusson
2
votes
0 answers

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 stop Sidekiq if there are any issues. However when…
webdevtom
  • 21
  • 1
2
votes
1 answer

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 unmonitored mode, then start up each processes…
richmb
  • 133
  • 1
  • 5
2
votes
1 answer

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 avoid being a burden on the app. My config is…
Dave S.
  • 83
  • 8
2
votes
1 answer

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 program = "/sbin/stop myapp" if failed port 8000…
Erik
  • 203
  • 2
  • 5
  • 14
2
votes
3 answers

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 doesn't tell any more information. My monitrc…
Matoha
  • 21
  • 4
2
votes
3 answers

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: /etc/monit/conf.d/example:13: Error: syntax error…
dfrankow
  • 183
  • 1
  • 1
  • 8
2
votes
2 answers

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 = /var/run/mysqld/mysqld.sock nice =…
Max121
  • 343
  • 1
  • 3
  • 6
2
votes
1 answer

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 file has so many variables and its growing really fast…
cr0c
  • 958
  • 4
  • 16
  • 35
2
votes
1 answer

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 we want to extend is that if it is not running to…
biz14
  • 381
  • 1
  • 3
  • 10
2
votes
2 answers

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 /etc/monit/monitrc: set httpd port 2812 and use address…
Binary Maze
  • 233
  • 5
  • 11