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.

18 questions
8
votes
2 answers

How to get Monit to re-monitor a service it has unmonitored?

While devising an answer to this question I ran into a snag while testing this MySQL Monit ruleset on an Ubuntu 12.04.5 setup: check process mysqld with pidfile /var/run/mysqld/mysqld.pid group mysql start program = "/etc/init.d/mysql start" …
Giacomo1968
  • 58,727
6
votes
2 answers

What does Monit do when it says 'initializing'?

I'm using Monit for system monitoring. If i enable monitoring on a service it shows 'initializing' in the Status row. This can take a while. I wonder what Monit is doing in that time, since the used start script should return in under 2 secs max.
mikezter
  • 203
6
votes
2 answers

How can I use Monit to monitor a service that does not have a /var/run/ pid file or how can I create a pid file?

I am using Debian 9.8 I have a service that runs my dotnet program. I would like to monitor it with monit but in all of the examples, you need to reference a .pid file in /var/run but my dotnet program doesn't have a .pid file in /var/run. So I…
3
votes
1 answer

Monit vs Source Control: permission problems

I'm trying to be good. That's my big mistake. I'm being good by having process monitoring: I have monit watching some key processes, and restarting them if they fail. I'm being good by not running as root: Monit runs a web-server, and I don't want…
2
votes
1 answer

Getting directory of file

I have found an error in monit init script that I want to fix on my own for now. The faulty code is PID_DIR=$(/bin/basename "$MONIT_PID_FILE") /bin/mkdir -p -m0700 "$PID_DIR" The developer wants to create the directory /var/run/monit from…
2
votes
2 answers

Debian / Monit: mail is only sent to local system, not to outside address

I have a Debian server and have monit installed and running. I use the following settings for alert mails: set mailserver localhost # primary mailserver set mail-format { from: monit@abc.test } set alert admin@abc.test I've started monit…
SPRBRN
  • 8,149
2
votes
1 answer

Monit summary is slow/hangs for 1m15s

On the server I’m working with (Ubuntu 14.04 LTS), Monit (v5.6) is hanging for 1 minute 15 seconds before the output of monit summary appears. Other operations, like unmonitor take even longer. I’m at a loss for why, as this is an Amazon EC2…
Excalibur
  • 131
  • 4
2
votes
1 answer

Trying to configure monit to use https protocol but it sticks with http

I'm trying to monitor a VHost on the local Apache instance via Monit. The same domain accepts both http and https traffic, so I wanted to monitor both. Also, the IP that the domain resolves to goes to a server that load balances the traffic between…
Justin
  • 163
1
vote
1 answer

monit to restart more than one process at once?

It seems that monit will only start a single process at a time and then wait to verify that it has started, before moving on to start the next one... even if there are lots of things to get up and running. This can take a long time when lots of…
jsharpe
  • 183
1
vote
2 answers

Manually Installed monit on debian squeeze

I am running Debian squeeze and I want to install monit, the problem is that the version in the repository is old and doesn't have some options that I need. I downloaded the source and compiled it using these commands : $ tar zxvf…
opc0de
  • 145
1
vote
0 answers

Problems installing OpenMediaVault on Raspberry Pi

BTW, I am trying to install OpenMediaVault on a Raspberry Pi 1, however, whenever I try and install OpenMediaVault on a Raspberry Pi 1, I get problems with the monit package, the FastCGI Process Manager and the openmediavault package too. Here is…
1
vote
1 answer

"Program does not exist" when trying to use "ip" with Monit

I'm trying to restart openvpn in my namespace using monit. The command that I use from the command line works fine: ip netns exec vpn openvpn --daemon --config /etc/openvpn/vpn.conf But when I try and use it in monit it…
1
vote
1 answer

Use Monit to monitorize a web site using a nagios plugin

I've a web page that sometimes give a blank page with a 200 status and I want to automatically restart the service when this happen. To do it I want to use Monit and a nagios plugin that allow to search text in the page instead only check the…
1
vote
0 answers

How to set maximum limit to monit alert trigger?

I have monit setup on servers. I am sending out SNS on monit alerts as below. check filesystem "root" with path /dev/xvda1 if space usage > 80% for 10 cycles then exec "/bin/bash -c '/usr/local/bin/publishsns.sh DISK GT80 server1'" as uid root…
bitkot
  • 142
0
votes
1 answer

monit fails to support dbus session

I am trying to use monit to monitor and automatically issues like crashes, memory leaks and cpu hotspinning. For one application - one that uses DBus (serving and calling funcs) just will not start. It uses GDBus which errors with dbus-launch not…
drahnr
  • 380
1
2