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.

382 questions
0
votes
1 answer

Monit is reporting low memory use

Monit is reporting very low memory use that is not consistent with actual use. If I look at Monit, under System I see "5.7% [918.0 MB]" though the real scenario is very different; total used free shared buffers …
Christian
  • 779
  • 1
  • 13
  • 31
0
votes
1 answer

monit can not resolve hostname: getaddrinfo does not find host

I use monit v5.16 running on Debian Wheezy to check if a server is up or down using the ping instruction. Here is my configuration: check host my.server.domain with address my.server.domain mode passive every 5 cycles if failed…
lauhub
  • 109
  • 1
  • 6
0
votes
1 answer

Nginx M/Monit password protect

I am trying to protect access to M/Monit web interface: Box: ubuntu 14.04 nginx 1.8.1 mmonit-3.5.1 I created a mmonit config file under /etc/nginx/sites-available: server { listen 8080; root /var/www/html; location / { …
Jadeye
  • 123
  • 7
0
votes
0 answers

How to monitor multiple instances of the same process with Monit

I have one process of which I need to run multiple instances. I would like to monitor this with Monit. Currently this is how I'm doing it. check program maintain_workers with path maintain_workers.sh user "command p1" 5 every "* * * * *" if…
Oxidator
  • 126
  • 4
0
votes
4 answers

Heavy stress test on Apache

We have a production server running Apache that sometimes crashes because of too much load, I'm trying to replicate the situation on a test server in order to test Monit. So my goal here is to overload Apache to make the service crash, or at least…
Irrational
  • 25
  • 2
  • 6
0
votes
0 answers

How to use number of CPUs as a multiplier in monit config?

What is the best way to use number of CPUs as a multiplier in monit confs? I need this for a system that has varrying number of CPUs, depending on predicted load. Right now the only idea I have is using sed or some other program to alter the config…
Firze
  • 335
  • 6
  • 16
0
votes
1 answer

Send monit alert to log file instead of email

I am using monit for several processes. But I do not want to sent an email when there is an issue, whereas I need it to log it to a file. Can this be done? OS: Ubuntu 14.04 Monit: 5.6 Current process config: check process nginx with pidfile…
jshthornton
  • 111
  • 6
0
votes
2 answers

monit: how do I restart many Tomcats without overloading the server?

My server has several separate Apache Tomcat instances that each take a lot of time and CPU to start. It is not possible to start all of them at the same time. This would generate too much I/O, each service would take much longer to start and the…
nn4l
  • 1,336
  • 5
  • 22
  • 40
0
votes
1 answer

Monit can't restart nginx

I've got monit up and running on an Ubuntu 12.04 server, to monitor nginx, but I can't get it to successfully start nginx up again. My setup is thus: the monit config file is: -rwx------ 1 root root 10329 2015-07-31 09:39 /etc/monit/monitrc and the…
Max Williams
  • 237
  • 1
  • 3
  • 14
0
votes
1 answer

using monit to stop or start a service

I would like to use monit to monitor my DNS server. if BIND failed it should stop OSPFD. i tried this but I get an error; > check process named with pidfile /var/run/named/named.pid start > program "/etc/init.d/named start" stop program …
0
votes
1 answer

Monit unable to restart php5-fpm

Monit is correctly detecting that php5-fpm is unavailable as seen in the logs. However, it does not seem to be able to restart the service. log: [EDT Jun 11 18:04:20] error : 'php5-fpm' failed, cannot open a connection to…
Kevin
  • 133
  • 1
  • 5
0
votes
1 answer

Monit "method not defined"

I'm currently trying to use monit to purge my /var/log partition from specific files whenever the partition runs out of free disk space. I created a file named toto and tried this test after reading the doc: check filesystem log path /var/log …
0
votes
1 answer

Monit - send alert if mailserver down

Is there a way to make monit alert other than by mail: Sometimes the mailservers are down. How would I get a message about it? My idea was to make monit pass an http request to a defined service, is this possible? (for example a gelf message to my…
ProfHase85
  • 451
  • 3
  • 6
  • 13
0
votes
1 answer

Checking if a TCP port is closed with monit

I would like to check that a defined port on a host is closed, for example the 8080 port on host www.example.com. I tried something like: check host www.example.com with address www.example.com if not failed 8080 protocol http then alert but I…
unlink
  • 690
  • 7
  • 12
0
votes
4 answers

Monit failed to start shell script

So I am having a problem with monit starting a process this is my code: check process program_1 matching "program_1" start program = "/home/user1/files/start.sh" stop program = "/home/user1/files/stop.sh" Monit is running as root, anyway when I…
Zero
  • 113
  • 2
  • 4