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

Is there a way to test an individual Monit control file?

I've created a Monit control file, but it doesn't seem to be working. It would be nice to have a way to test Monitor control files other than by just letting them run and seeing if they work. Anyone have any way to do this?
0
votes
1 answer

need some help figuring out clamav & monit monitoring error...unixsocket

I need a bit of help figuring something out. First off, I'm not very well versed with FreeBSD servers, etc. but with some direction hopefully I can get this fixed. I'm using FreeBSD and installed Monit so I could monitor some of the processes that…
Ronedog
  • 135
  • 3
  • 6
0
votes
1 answer

Problem to monitor ssh service with M / Monit

In the office we have a server M / Monit to monitor all servers. In the last few days, on some servers can not monitor the ssh service. All servers have the same configuration to monitor the service and others. I tried restarting the service, and…
Gon
  • 91
  • 1
  • 2
  • 8
0
votes
2 answers

Monit Webmin service is not activating

I have written a script in monit interface for Webmin service. I can execute the process where in I am unable to restart the service. check process webmin with pidfile /var/webmin/miniserv.pid start = "/etc/init.d /webmin start" stop =…
Nagaraj
  • 1
  • 3
0
votes
2 answers

Monitoring thin with monit

I have been struggling to get monit to monitor my thin cluster for some time now. I am using 3 thin instances. These are my monit and thin config files: /etc/thin/vocab.yml: pid: tmp/pids/thin.pid log: log/thin.log port: 3000 max_conns:…
TenJack
  • 193
  • 2
  • 7
0
votes
1 answer

I'm having a ton of trouble installing a process manager for my Rails app

After a long time wasted trying to get Bluepill to work for process management, I'm trying to get monit set up. I'm not a Sys Admin but know my way around *nix systems. I'm a bit stumped here. When I run the command to restart all monit processes…
Tony
  • 1,281
  • 4
  • 17
  • 23
0
votes
1 answer

How to create monit monitor to alert when a line of text is NOT seen in a log file over a period of time

I can see how to alert when a regex appears in a log file. I can see how to alert when a regex does not appear on EVERY line of a log file. But I can't see how to alert when a regex has not appeared in a log file over a period of time. I could…
Ben
  • 121
  • 3
0
votes
2 answers

Catching unresponsive / high load mysql, perhaps with monit?

I'm having intermittent occurrences of mysql causing high load on the machine, making the web app unavailable. I'm using monit to monitor it, but it doesn't catch the issue, apparently because it can still connect to mysql. Here's my monit script…
Parand
  • 738
  • 1
  • 8
  • 15
0
votes
2 answers

Monitoring mongrel with monit

I wrote a monit.d file for mongrels which works in this version: check process redmine with pidfile /home/redmine/service/redmine.pid group webservice start program = "/usr/bin/mongrel_rails start -p 41328 -e production -d --pid…
user12096
  • 927
  • 6
  • 23
  • 39
0
votes
2 answers

nginx won't respond to monit

Although EngineX is running, monit can't seem to figure it out. Here's my monit log: [PDT Apr 13 02:19:19] error : HTTP error: Server returned status 400 [PDT Apr 13 02:19:19] error : 'nginx' failed protocol test [HTTP] at INET[localhost:80]…
Miko
  • 1,759
  • 4
  • 22
  • 28
0
votes
1 answer

What is the correct way to check monit status/summary success/failure

I have monit utility on production for monitoring several daemons (our micro-services). I'm trying to figure the best way to unmonitor/monitor my daemons while updating them. So, basically I need something like this, pseudo-code: has_monit =…
0
votes
1 answer

Setting up Slack Alerts for Monit monitoring MySQL

Trying to set up Slack alerts for Monit and MySQL/MariaDB but stuck in writing a MySQL check script. I have the monit successfully working if MySQL is stopped and receive email alerts - but want the slack alert. Slack alert…
neilgee
  • 109
  • 2
0
votes
1 answer

Monit with Ansible - invalid mail format '#015'

I've been trying to install monit with an ansible playbook. I'm changing the monitrc file and when the playbook restarts monit, I get : Jun 8 08:00:30 myserver monit[1857462]: Starting daemon monitor: monit Jun 8 08:00:30 myserver monit[1857465]:…
Ror
  • 321
  • 3
  • 16
0
votes
1 answer

How to send Monit alerts with MSMTP?

I've got a Debian 11 system running as a local file server. I want to keep it as simple as possible but have some basic monitoring from Monit. I've installed and configured msmtp and msmtp-mta and I've confirmed that I can send test messages from…
Vilas
  • 71
  • 1
  • 4
0
votes
2 answers

Trigger a monit reload after unattended upgrades

I have run into an issue when combining monit with Ubuntu/Debian unattended upgrades. Monit monitors services and binaries, and flags changes, restarts processes, etc as needed. However, when a package providing a service is updated (say, nginx), a…
Synchro
  • 3,148
  • 6
  • 27
  • 38