Questions tagged [monit]

Monit is a daemon monitoring utility

Monit is a process monitoring utility. It runs daemons and other programs and checks their health to detect processes that die, stop responding to network connections, etc.

For process monitoring in general, see .

35 questions
15
votes
3 answers

What command in monitrc can I use to start/stop systemd services?

I like using monit for the web interface where I can see running monitored processes. I recently upgraded a server to Ubuntu 16.04 and it is using systemd. I have everything else running but I cannot find the right monit commands to control…
Joff
  • 383
  • 1
  • 3
  • 13
12
votes
1 answer

Install monit in Debian 10 (buster)

I try to install monit in Debian Buster, but it sais Package monit is not available, but is referred to by another package. How do I find out this referenced package? Or do I need to install an alternative monitoring too in buster?
rubo77
  • 27,777
  • 43
  • 130
  • 199
6
votes
1 answer

Monit daemon interval setting...global or service-level?

I'm configuring monit on Ubuntu 11.04. In monitrc, the following setting controls the interval at which the monit daemon monitors services... set daemon 120 Is this a global setting? If I want to check different services, such as permissions on a…
Raffi
  • 63
  • 1
  • 3
5
votes
1 answer

How to use Monit Environment variables?

According to Monit link : No environment variables are used by Monit. However, when Monit executes a start/stop/restart program or an exec action, it will set several environment variables which can be utilised by the executable to get information…
fugitive
  • 1,543
  • 19
  • 33
3
votes
1 answer

User settings for monit? Should it run as root, or it's own user?

I'm trying to install monit on an Ubuntu 12.04 server. I have it set up, and configured (i think), but i'm not sure what user it's supposed to run as. My user on the server is called deploy, and my monitrc file looks like this: $ ls -l…
Max Williams
  • 1,067
  • 2
  • 16
  • 32
2
votes
1 answer

How do I configure to 'monit' monitor a process after it restarts?

I have monit configured to terminate a pair of processes when they consume too much CPU, but once either is terminated, monit summary reports "Not monitored" for the process, even after the OS relaunches it. How do I configure to 'monit' monitor a…
orome
  • 416
  • 1
  • 5
  • 15
2
votes
1 answer

Monit alert/exec when host is back to normal

I use Monit to quick check uptime of Elasticsearch service. Here is my configuration: check host [Elasticsearch]-test with address 1.2.3.4 if failed port 9200 protocol http then exec…
Hieu Huynh
  • 239
  • 1
  • 8
2
votes
1 answer

Trying to understanding startup procedure of monit

I am just starting to learn monit. On its man page I found this: The behavior of Monit is controlled by command-line options and a run control file, ~/.monitrc, the syntax of which we describe in a later section. Command-line options override…
Junchao Gu
  • 121
  • 2
2
votes
2 answers

Monit won't execute commands

Running Monit 5.2.5 on Fedora 15 All standard alerts are working, however just cannot get exec to run anything. I have tried more than ten different configurations based on examples from the Monit Wiki. None of the exec commands do anything. Below…
interoperate
  • 41
  • 1
  • 4
2
votes
2 answers

Why doesn't monit like this syntax

I am trying to setup monit for my debian server. I have a main monitrc file in /etc/monit which at the end has include /etc/monit/conf.d/*. In conf.d I have two files for my apache and mysql servers: # ls -al /etc/monit/conf.d total 16 drwxr-xr-x 2…
Shelvacu
  • 670
  • 3
  • 8
  • 17
1
vote
2 answers

Displaying messages to tty using whiptail through monit

I would like to display a whiptail message on the login screen that is triggered by monit, but I am without luck. I understand it might be something to do with interactive/non-interactive shell. Here is the script that gets triggered by…
Yuri
  • 111
  • 4
1
vote
0 answers

Check systemd unit with monit

I need to check a program that has a systemd unit under user namespace and this is my monit conf (systemd conf works without any problem): check program foo with path "/usr/bin/systemctl --user -q is-active foo" as uid pioz and gid pioz start…
Pioz
  • 103
  • 7
1
vote
0 answers

Issues when installing Monit

I have recently been trying to install Open Media Vault along with exFAT support (exfat-fuse and exFAT-utils), however, when Monit tries to install it returns with the following error: sudo apt install exfat-fuse Reading package lists...…
1
vote
0 answers

want to live monitor all log files in one vieuw

I like to view all log files live like tail -n0 somelog.log But then for literally all log files on the system (CentOS 7) Or an other way to do this is also nice. I want to output this to a web page eventually.
1
vote
1 answer

monit removed from CentOS8 and EPEL. Any replacement?

I upgraded to CentOS8 and noticed that monit removed from CentOS8 and EPEL. We have been using it to monitor processes. I know I can build it but wondering why it was removed. Was it replaced with a better package?
Rahul
  • 263
  • 3
  • 8
1
2 3