Questions tagged [monit]
monit is a free, open source process supervision tool for Unix and Linux.
18
questions
1
vote
0
answers
448
views
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 ...
0
votes
1
answer
458
views
Trying to run a game server as a service
I'm trying to use monit to check my game server and restart it if it fails. The monit part is fairly simple to check port 28960 but I'm struggling to run the start script (cod4.sh) if monit detects a ...
6
votes
2
answers
9k
views
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 ...
0
votes
1
answer
111
views
Monit to turn off machine when program is done
I am trying to set up monit to turn off my virtual machine when my program is done. (The program runs as a daemon, takes long time which I do not know in advance, and my machine is expensive so I ...
0
votes
0
answers
847
views
Monit for Squid
I am trying to use monit to monitor my squid server. I installed squid server on raspbian stretch using apt-get. The squid service was installed under /etc/init.d/squid and I checked if the PID file ...
1
vote
1
answer
2k
views
"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 ...
1
vote
1
answer
108
views
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 ...
2
votes
1
answer
185
views
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 ...
2
votes
1
answer
2k
views
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 ...
1
vote
0
answers
196
views
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/...
9
votes
2
answers
8k
views
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 ...
0
votes
1
answer
107
views
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.
...
1
vote
1
answer
247
views
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 ...
1
vote
2
answers
1k
views
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 ...
3
votes
1
answer
200
views
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 ...
2
votes
1
answer
89
views
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 ...
2
votes
2
answers
3k
views
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: [email protected] }
set ...
6
votes
2
answers
7k
views
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 ...