Questions tagged [monit]

Monit is a free open source utility for managing and monitoring, processes, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.

Filter by
Sorted by
Tagged with
0 votes
2 answers
56 views

Monit doesn’t detect that program is running

I have a very simple Python program called test.py that I’m using to test Monit. Monit seems unable to detect that the program is running. Here’s the current context: Monit version 5.31.0 running on ...
Alfred Elkerbout's user avatar
0 votes
1 answer
38 views

When calling exec in Monit, nothing happens, although everything is fine in the logs

I have Monit 5.31.0 on Ubuntu 22.04.3 LTS and I'm struggling to understand why the exec is not working. I have a monitoring file for a website, for example: check host all with address google.com ...
DCS stream's user avatar
0 votes
1 answer
24 views

monit send alert for different cycles fails to different e-mail addresses

how can I set alert for different cycles fails to different users (something like that) for the same service in monit? I have tried the config like his below. check host "Cluster0 Admin Panel&...
Mesut GÜLNAZ's user avatar
0 votes
1 answer
19 views

Monit host identify

Is there a way to have monit identify a host inside the mail-format other than hostname? Having hostname only seems very limiting. In the environment I am working it, it is an education and training ...
Rob_L's user avatar
  • 1
0 votes
1 answer
55 views

M/Monit php curl connection

Iam trying to write a PHP script to use the M/Monit API https://mmonit.com/documentation/http-api/static/Examples/cURL.html I am having a problem converting the command line script to run using PHP ...
Liam's user avatar
  • 536
0 votes
1 answer
97 views

how to find or check details of ssl options or other options in monit

Sorry all, where do you think i can find / read the details of options available / allow in monit, i tried to check expired of crt file ssl certificate by using below method check host site with ...
user3327338's user avatar
0 votes
1 answer
40 views

Monit fails to import python library

I am trying to monitor a python program so it restarts when it crashes. However, monit fails to restart the program because it does not recognize a library which is clearly installed since I am able ...
Alonso Rios's user avatar
0 votes
1 answer
77 views

Does Ansible Jinja2 Templating support list arguments in for loop?

I'm trying to dynamically create a template from a list and I'm wondering if Ansible supports something like {% for server in [sg-bend1, sg-bend2] %} check program {{ server }}_test with path /home/...
E_K's user avatar
  • 2,129
1 vote
1 answer
42 views

Setting monit base URL?

I run monit on several servers, usually proying it via nginx as suggested by the monit manual (https://mmonit.com/wiki/Monit/Nginx). That works well on 8 out of 10 servers. But on 2 servers, I ...
BurninLeo's user avatar
  • 4,260
0 votes
1 answer
650 views

Is there a way to know what is causing a memory leak on a docker swarm?

We are running a docker swarm and using Monit to see resources utilisation. The Process memory for dockerd keeps on growing over time. This happens on all nodes that at least perform a docker action e....
E_K's user avatar
  • 2,129
-1 votes
2 answers
138 views

Monit - cannot start Monit service or monit reload - "cannot signal the monit daemon process" [closed]

running monit 5.30 on Rocky 8.7 Linux vpn-uk2 4.18.0-372.9.1.el8.x86_64 monit control file syntax is valid, heres control file set daemon 5 # Poll at 5-second intervals set logfile /var/log/monit.log ...
perfecto25's user avatar
1 vote
0 answers
54 views

monit sending multiple duplicate emails

set alert bob123@test.com The problem is when the filesystem goes down multiple duplicate emails are sent that spam my inbox. Is there a way to only send 1 email when the filesystem goes down?
Behrouz Hedayati's user avatar
0 votes
1 answer
102 views

Monit / init.d for Elixir/Phoenix and Spinx/searchd on Ubuntu

I am trying to get Monit / init.d scripts running on a few different servers, and for a few different processes on Ubuntu servers. Trying to get Sphinx to start on reboot, and to work with Monit ...
Gordon Isnor's user avatar
  • 2,065
0 votes
1 answer
196 views

ansible succeeds but doesn't start flocked, piped, detached docker compose via bash script

Expected behaviour ansible starts docker compose with flock and logging to file using the bash script without delay. Observed behaviours service does not get launched via ansible. Monit starts service ...
Amanda's user avatar
  • 194
0 votes
1 answer
137 views

Can you redirect monit alerts to MQTT

Can you redirect monit alerts to MQTT? The work-around with exec mosquitto_pub -h .. -u .. -P .. -t .. -m .. is cumbersome.
weberjn's user avatar
  • 1,850
0 votes
1 answer
162 views

MONIT/MMONIT Multiple Alerts emails

My MMONIT setup is sending emails days after an alert is 'resolved'. For example, this morning (July 21) I got an email about the alert on the 9th. This happens seemly randomly and more than just once....
Streber's user avatar
0 votes
1 answer
298 views

regex content Monit

Sorry all, i plan to fetch alert for monit content based on apache log files but i think this regex is wrong as i thought this will be work like based in grep i use from shell check file vhost with ...
user3327338's user avatar
0 votes
1 answer
405 views

Is there a way to automatically restart nginx with monit when it doesnt respond with status 200

Is there a way to automatically restart nginx with monit when it doesnt respond with status 200 The server seems to handle most of the requests but tends to lock up for a minute or two when it gets ...
Willem Pretorius's user avatar
0 votes
1 answer
638 views

How to set Monit up to monitor MariaDB replication?

I use Monit 5.27.2 and MariaDB 10.5.15 on my Debian 11 servers. My servers are set up in Multi-Source MariaDB Replication. Sometimes, replication stops and I am not notified. I have not seen anywhere ...
luvzfootball's user avatar
1 vote
1 answer
156 views

mmonit not using remote server IP, using localhost instead

I've got an install of mmonit with various servers reporting into it. The monitoring is working, but trying to restart any servers results in it trying to contact itself (on localhost) and not the ...
sixfive's user avatar
  • 105
0 votes
1 answer
75 views

Is it possible to monitor hadoop, hbase and yarn using monit tool?

I want to monitor some services such that, those services needs to restart when they goes down and I found an amazing tool monit. It works fine for Zookeeper since I got a condition like matching &...
Shashank Gb's user avatar
0 votes
1 answer
81 views

Monit - Check if process exists and kill when consuming X memory

I have 'someprocess' running on some hosts, and want a single monit check for hosts with and without 'someprocess' running, which kills someprocess when memory usage exceeds a threshold. Below check ...
NeverABreak's user avatar
0 votes
1 answer
154 views

Reading environment variables in Monit Configuration

How can I read environment variable inside monit configuration? For example, I have the following. ... alert ~page_me@domain.com only on { timeout } But, I want different email address in different ...
Salman Virk's user avatar
0 votes
1 answer
136 views

Can I set up something to monitor Cron JOb/script [closed]

Can I set up something to monitor Cron Job, a script running and if it fails it should restart the script and alert us? for the failure it may have to check the logs for keywords?
MazaherM's user avatar
0 votes
1 answer
77 views

Monit daemon not available after new deployment on OpsWorks

We are using Monit to monitor mailman service, Worker nodes, and Opsworks agent. It works fine till new we deploy new release. On new release monit stops the Mailman Service and Start it. And when I ...
Appso's user avatar
  • 61
0 votes
1 answer
72 views

Monit not invoking python script <--> OS is CentOS

Monit not invoking python script <--> OS is CentOS. first line in python script is "#!/usr/bin/env python3" when i tried to invoke python script from my terminal its working but ...
user avatar
0 votes
2 answers
528 views

monit - Can I restart a process if system memory is too much?

I have this rule for system: check system $HOST if memory usage > 90% for 3 cycles then alert and this rule for a process: check process my_process matching "..." restart program ...
Martin Massera's user avatar
0 votes
1 answer
42 views

Monit RC and relative paths

In Monit, is it actually possible to use relative paths? When I use non-absolute paths I get syntax errors. So when monit -c etc/monitrc -t gives an ok syntax status wih the following config set httpd ...
wirrbel's user avatar
  • 3,173
-1 votes
1 answer
493 views

monit eth0 to restart network interface in case it is down for whatever reason

Just trying to monitorize a network interface eth0 with the "monit" tool. I want to restart the network interface in case it fails down for whatever reason. According to documentation, this ...
aicastell's user avatar
  • 2,192
0 votes
1 answer
150 views

Monit exec running multiple times despite no "repeat" use

This is Monit 5.26.0. The issue is that EXEC is running twice, both on transition to failure, and the transition back to success. This behavior was expected prior to 5.16 (when "repeat" ...
Clark Updike's user avatar
1 vote
1 answer
116 views

Trouble running a custom monit check, stderr maybe?

Trying to run this check from monit, but it doesn't work. The gravity program sends its output to stderr. Could it be that monit doesn't handle this properly because of the way it exec's the check? ...
Jared Beguelin's user avatar
0 votes
1 answer
159 views

monit fault tolerance cycle for a service

I'm playing with monit to see what it can do. I found that "cycle" appears in a lot of places. And I try to understand whether the time unit of one cycle the same for all services, or it is ...
doraemon's user avatar
  • 2,296
0 votes
1 answer
221 views

Monit - how to restart process on single core cpu use

I have 4 processes on a server, that use one core each. For some reason, these tend to enter some sort of loop and start using 100% of the core. I monitor the server with monit, but the service ...
Abraxas's user avatar
  • 19
0 votes
1 answer
162 views

How to execute a shell script if file matches a regex using monit

I have this code in a monitrc file: check file random.log with path /app/monit-5.27.1/conf/random.log ignore content = ".*favicon.*" if content = /app/monit-5.27.1/conf/test1....
Akshat's user avatar
  • 45
0 votes
1 answer
111 views

monit check file for removed content

I'm trying to check some config, which should contain combination: "^UseBridges". And i know, that file can be changed after somewhat editing via admin UI, but UI doesn't support feature i ...
Psychozoic's user avatar
1 vote
1 answer
81 views

Despite trying posix regex, getting this error in monit

I have this monit syntax, check file access_log_1 with path /app/DNIF_logs/access_log_1 ignore content = ".*favicon.*" if content = "^([:digit:]{1,3}\.){3}[:digit:]{1,3}[...
Akshat's user avatar
  • 45
1 vote
1 answer
55 views

Monit stops responding when more that 512 configurations are added

Should be a fairly simple question but is anyone aware of any limitations regarding monit and having more than 512 configurations and if so any way to bypass? It seems to stop being able to load items ...
scarroll's user avatar
1 vote
0 answers
189 views

Puma and Sidekiq not starting properly through monit after deployment

I have recently added fillable-pdf gem into my Rails application after adding gem and install dependencies related to Gem monit is not able to restart puma and sidekiq. Before adding this stuff ...
sajid nawaz's user avatar
0 votes
1 answer
247 views

Monitor does not display the correct service status

I use monit V5.25.3 with a poll interval of 30 seconds. Monit is used for 50 services including the apache server. The apache server can be activated or inactive. When the apache server is inactive, ...
Drasko Jagodic's user avatar
0 votes
1 answer
47 views

Is my MySQL being monitored by monit using nginx?

I'm unsure if my mysql is actually being monitor by monit. See screenshot. As you can see under processes the mysqld process is not being monitored (it failed a sew times first) but under files there ...
ThurstonLevi's user avatar
0 votes
1 answer
104 views

Monit SSL/TLS version not updating for port 2812?

Currently running monit 5.16 on a CentOS7 host. I am trying to stop the use of TLSv1 and TLSv12. I have tried every iteration of the set httpd port 2812 config on /etc/monitrc but nothing is working. ...
Jim Naylor's user avatar
0 votes
0 answers
154 views

monit - set verbose mode in monitrc file

in the monit wiki it shows you can run monit in verbose mode using -vv when running from the command line. If I run ps -ef to see the monit command, I see: root 42 1 0 19:43 ? 00:00:...
Ofek Agmon's user avatar
  • 5,060
0 votes
1 answer
86 views

Node server stops when monitoried via monit

I am trying to monitor a simple helloworld script running in a node server. The applicaion works fine left alone. But when I used monit to monitor, I can see that the node server stops and is ...
Neo's user avatar
  • 49
0 votes
2 answers
593 views

When will monit actually start or restart a service

Can someone please let me know on what basis monit decides that its time to restart an application? For instance, if I want monit to monitor my web application, what information should I provide to ...
Neo's user avatar
  • 49
0 votes
1 answer
56 views

Unable to restart apache2 service by monit

My situation of my apache2 service now : main process was down, only child processes were running How can I get value of main process when it dead or active ?
samnang's user avatar
0 votes
1 answer
226 views

How to escape double quotes in monit config file?

I'm using monit on ubuntu to monitor my server and my plan is that monit alerts me via e-mail if special events occur. The problem is that i have to define a password that contains a double quote. ...
user avatar
1 vote
1 answer
329 views

How to run a command if ping fails over monit?

Hi everyone i'm trying to do a CloudFlaire IP failovr with monit actually i'm using this but unfortunately this strings doesn't look to works when monit runs there is any mistake from my side ? check ...
David Martins's user avatar
0 votes
1 answer
149 views

Monit behin nginx proxy

I followed the monit documentation to put it behind a nginx proxy: location /monit/ { rewrite ^/monit/(.*) /$1 break; proxy_ignore_client_abort on; proxy_pass http://localhost:2812; ...
why me's user avatar
  • 311
0 votes
1 answer
260 views

When trying to check is checksum of a file changed, I get an error "There is no service named file.yaml"

I'm using Monit tool for monitoring on server. I'm trying to check if checksum of a file changed: set daemon 10 set alert me.mylastname@coorp.com set httpd port 2812 and use address localhost allow ...
Sabina Orazem's user avatar
0 votes
1 answer
146 views

Monit command in shell script

I am issuing monit commands from command line and this works $ sudo monit reload Now I create a shell script monitreload.sh #!/bin/bash monit reload And then the commands $ sudo ./monitreload.sh $ ...
promaxdev's user avatar
  • 455

1
2 3 4 5
9