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
3
votes
2 answers

check mount point status using monit service

I would like to monitor the server "mount point status" using "monit". Check filesystem is available to check whether that filesystem available or not on the systeam. But couldn't check filesystem mount point.Please correct me if its wrong. Since I…
KMG
  • 281
  • 1
  • 3
  • 10
3
votes
1 answer

Monit wont autostart on boot

So as the title states, I have a problem where monit won't start on boot. I have a CentOS 7 box that it does start on, and another CentOS 7 box that it doesn't start on, so I know it's not a OS issue and must be a configuration issue somewhere. Both…
Nathan Robb
  • 51
  • 1
  • 6
3
votes
1 answer

Monit "check program" and restart based on exit code

When I use check process, monit will start the program I define under start program then monit will restart it if it stops. But when I use check program monit will not automatically start it. If the program is running and for some reason it stops…
Onema
  • 175
  • 1
  • 8
3
votes
1 answer

Monit Alert with Multiple URLs

I've got a monit setup to http check several subdomains of an http server. Currently, they are multiple check host statements that look like this: CHECK HOST a.example.com with address 1.2.3.4 if failed url https://blah then alert CHECK HOST…
menacingly
  • 153
  • 3
3
votes
1 answer

How to configure Monit to alert me when anything appears in syslog

I want Monit to alert me if ANYTHING shows up in syslog - as anything in there would be abnormal. I've tried the following and I'm not receiving any alert emails when I manually add something to syslog echo testing >> /var/log/syslog. I've verified…
runningonplants
  • 287
  • 2
  • 10
3
votes
0 answers

mysql service status doesn't show started when it is started by monit

I installed monit on my Ubuntu 14.04 server and configured it to monitor mysql with the below config in monitrc. check process mysqld with pidfile /var/run/mysqld/mysqld.pid start program = "/etc/init.d/mysql start" stop program =…
salmandem
  • 31
  • 2
3
votes
2 answers

How to watch a service with multiple processes with Monit?

I'm trying to watch the mailing list manager sympa with monit. A running sympa instance consists of multiple processes for the different tasks of list management (e.g. a separate process for archiving emails), but all processes are started/stopped…
morxa
  • 193
  • 1
  • 7
3
votes
1 answer

Monit ignores memory usage threshold config

I installed Monit 5.6 from Ubuntu repositories to alert me about unusually high memory and CPU usages on my VPS. It turned out that 75% memory usage is rather usual for my setup, so I changed the line where the limit is set in file…
Hnatt
  • 281
  • 3
  • 9
3
votes
1 answer

How do I check file count inside a directory with Monit?

I have a directory on my server and I want to monitor the number of files inside this directory with Monit... How can this be done?
3
votes
2 answers

Cannot read status the monit daemon, even with allowed group

I cannot seem to get monit status or other CLI commands to work. I've built monit v5.8 to run on a Raspberry Pi. I'm able to add services to be monitored, and the web interface can be accessed just fine, as I've set it up for public read-only…
jefflunt
  • 300
  • 3
  • 15
3
votes
2 answers

Monit and multiple actions: chaining commands in Monit restart command?

After some researches, it occurs that even if I can find some talks about multiple actions when restarting a service, it also seems it it not really possible to achieve : if failed port 80 and protocol http then exec /home/sweet/script.pl …
smonff
  • 346
  • 2
  • 5
  • 15
3
votes
1 answer

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 just added a feature to my app that allows disk…
paintedbicycle
  • 199
  • 1
  • 3
  • 15
3
votes
2 answers

using monit to kill the right process withown knowing it's PID

I am trying to use monit to find surefire processes running too long and kill them. The machine is running parallel builds so it is possible to have several surefire processes runnig at the same time but there is no PID file for those processes. My…
andrej
  • 463
  • 4
  • 12
3
votes
1 answer

monit mysql server blocked because of too many bad connections

Is there any tweak for monit or another way to monitor whether one server can access mysql on another server? I tried it with monit but as you probably know, after 10 attempts, mysql blocks the server. check host db1.server with address db1.server …
Christian
  • 746
  • 3
  • 13
  • 30
3
votes
2 answers

Process 'clamd' "not monitored"

the output of monit summary says clamav is not monitored. The configuration says: check process clamd with pidfile /var/run/clamav/clamd.pid start program = "/etc/init.d/clamav-daemon start" stop program = "/etc/init.d/clamav-daemon stop" if…
Adripants
  • 347
  • 2
  • 5
  • 16