Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [monit]

monit is a free, open source process supervision tool for Unix and Linux.

Filter by
Sorted by
Tagged with
0 votes
1 answer
72 views

restarting tomcat service monit

I have a Tomcat service running that fail sometimes - I did not find the reason yet. In the Catalina log I see the following: Feb 03, 2022 10:54:39 AM org.apache.coyote.AbstractProtocol pause INFO: ...
user avatar
  • 51
0 votes
0 answers
102 views

Monit restart process behavior

Monit's documentation states the following for the restart action : RESTART restarts the service and send an alert. Restart is performed by calling the service's registered restart method or by first ...
user avatar
  • 91
0 votes
0 answers
25 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, ...
user avatar
0 votes
0 answers
23 views

Monit restart service output

I used to restart my services via init.d scripts on my debian servers. I moved to Monit to restart the services but now I don't have the output of the script when restarted. Basically, when the ...
user avatar
  • 91
0 votes
0 answers
129 views

monit: check specific python script running

i'm trying to run a few different python scripts, each in its own screen. if I run something like: SCREEN -dm -S script1screen python3 script1.py how do I check with Monit if this exact script is ...
user avatar
  • 1
0 votes
1 answer
64 views

Monit send empty mail

I configured Monit (version 5.27.1) and after a reload of monit I received an "empty" mail. I searched since many hours and I can't fiind the way... It seems that "environment variables&...
user avatar
0 votes
1 answer
581 views

How do I find the PID file for a process given the PID number?

I'm trying to use Monit to monitor and send email alerts about a process when it stops running, but I need the location of the PID file for that process. I can find the PID number using the htop or ps ...
user avatar
0 votes
0 answers
45 views

Send Monit E-Mails via Exim

I installed monit on an Ubuntu 18.04 server and I would like to configure it to send e-mails to my personal e-mail address. I heard that I can send them via the installed exim. However, it does not ...
user avatar
  • 103
0 votes
2 answers
92 views

Program installed for one user cannot be accessed from other user even full path is provided

I have all the npm pacakages installed for a particular user (i.e) not root (/home/otheruser/*) I am using monit to see whether to check the program is running. In this case its pm2, which is in /home/...
user avatar
1 vote
1 answer
186 views

Monit "can't find filesystem"

I'm finding monit unable to monitor a filesystem effectively. I've added a file /etc/monit.d/disk.cnf with the following: check device disk1 with path /dev/root if space usage > 85% then exec &...
user avatar
1 vote
1 answer
410 views

Monit can't detect MySQL

The Monit webinterfcae is showing: Execution failed | Does not exist netstat is giving me: sudo netstat -lnp | grep mysql tcp 0 0 127.0.0.1:33060 0.0.0.0:* LISTEN ...
user avatar
  • 111
0 votes
0 answers
164 views

How to stop monit daemon without stop services

I'm new on ServerFault. I'm using monit to start/stop/monitoring services on RHEL7. Sometime I need to stop the monit daemon (for upgrade it or othen reasons). But when I stop the monit daemon (...
user avatar
0 votes
1 answer
275 views

Why does monit complain about not being able to read the pid file?

I'm nrew to monit and have a question regarding the pid files: I have added the following to my /etc/monit/monitrc: cat /etc/monit/monitrc set daemon 30 set logfile /var/log/monit.log set idfile /var/...
user avatar
  • 103
0 votes
1 answer
122 views

Using "monit" - how to detect empty reply from http process (apache2)

I would like to monitor empty replies from my apache2 process as I am running into a problem similar to "Apache gives empty reply" . I am using monit to monitor my processes, so I am going ...
user avatar
  • 103
2 votes
3 answers
516 views

Restart apache with monit

I'm trying to figure out some issues on my server where my CPU is reaching 100% utilization every other day. This causes all my websites and http services to fail. How can I configure monit to restart ...
user avatar
  • 73
0 votes
1 answer
32 views

Monit reports certificate self-signed issues after upgrade

After an update to last binary version of Monit, Monit reports an issue about SSL server certificate verification error: self signed certificate in certificate chain
user avatar
  • 722
1 vote
1 answer
366 views

Getting Monit Web Interface and CLI to work on Ubuntu server

I have a hard time getting monit to work on my Ubuntu 18.04.4. I've installed monit via sudo apt install monit, then I've enabled httpd like this: set httpd port 2812 and use address localhost ...
user avatar
1 vote
0 answers
45 views

can I limit how often monit will alert?

Sometimes monit spams alerts faster than the devops can read them. It's not false alarms, things have gone crazy. But yet there is no need to spray alerts all over the place, a few would be sufficient ...
user avatar
  • 111
0 votes
1 answer
131 views

Cannot access monit web interface

I just installed Monit on my server. I want to access to the web interface to manage it but the web is not accessible. The machine is an instance in AWS, the port is open. I have tried many ...
user avatar
  • 103
0 votes
0 answers
92 views

Can `monit` send alerts to an HTTP endpoint (instead of email only)?

I'd like to configure Monit to deliver 'fail' and 'success' notifications via its alerting system; the global alerting system seems only to support email notifications, and there doesn't seem to be a ...
user avatar
  • 1
1 vote
1 answer
91 views

2 identical VPS (Ubuntu 18.04): Postfix - Alerts from Monit to Google mail is not working

Let's start from beginning. I have a two identical VPS servers with Ubuntu 18.04 OS and Monit installed on both. I configured mailserver on the monit (for sending alerts) configuration as a localhost ...
user avatar
0 votes
1 answer
107 views

Monit state file version warning

I am running Monit version 5.17.1 on Ubuntu 14.04. At times, I see that Monit has logged the following: [PST Nov 14 15:42:40] warning : State file '/var/lib/monit/state': incompatible version 2 ...
user avatar
  • 32
0 votes
1 answer
116 views

Get system information Response collected by Monit into Springboot/java

I have configured Monit version 5.6 on an Ubuntu 14.04 server. There are few check like filesystem usage, remote host connectivity check and service monitoring. Now, when I check the web gui of monit, ...
user avatar
0 votes
2 answers
1k views

Why does monit log error & status failed while check programm returning exit code 0

Problem 1 I want to monitor a headless running LibreOffice-Process with monit version 5.25.1. Here is my monit config for this approach: cat /etc/monit/conf.d/libreoffice check program lo-check-...
user avatar
2 votes
1 answer
177 views

HTML formatted alert emails using monit

Is it possible to send HTML formatted alert emails using monit service ? I would like to include coloured status based on the alert. Ref: https://linux.die.net/man/1/monit
user avatar
  • 39
0 votes
1 answer
189 views

systemd drop-in order in debian jessie

I have several debian 8 servers shipped with a default configuration. They have on board apache2 and i want to add monit ( https://mmonit.com/monit/ ) for extra availability. To manage operator-...
user avatar
1 vote
1 answer
521 views

Monit : Add username and password for mysql check

I have a "problem" with my Monit configuration. The monitoring works as expected, but I get the following errors on the mysql error file /var/log/mysql/error.log each time the monitoring script runs : ...
user avatar
  • 13
0 votes
1 answer
3k views

syntax error in monitrc

I must be doing stupid in my monitrc file but can't find it. If anyone wants to take a look, here is the result of monit -t root@app-server[192.168.100.83] ~ # monit -t /etc/monit/monitrc:308: syntax ...
user avatar
  • 252
0 votes
1 answer
112 views

Monit background script running within a detached screen

How can Monit be used to monitor a simple script that creates no PID file and is running in the background within a detached screen session?
user avatar
  • 111
1 vote
1 answer
179 views

Send additional (custom) data to m/monit

I use monit (https://mmonit.com/monit/) for system monitoring. Also I use my own "backend" instead of m/monit and I want to receive additional data from the monit instances. For example, is it ...
user avatar
  • 111
0 votes
1 answer
113 views

Monit to tigger database query

I'm new to monit service. I want to execute select query if a application server goes down using monit. Configuration in /etc/monitrc is like:- check host www.example.com with address www.example.com ...
user avatar
0 votes
1 answer
130 views

delayed reboot if network fails

I'm trying to make a monit check that reboots my router if it looses network connection. But I do not want it to reboot withing the first 5 minutes after boot, no mater if net is up or down. So far I ...
user avatar
  • 111
1 vote
2 answers
2k views

monit failed protocol test [HTTP] at [localhost]:8080

I get the error "monit failed protocol test [HTTP] at [localhost]:8080" every so often. The application, tomcat, has not stopped and is still running just fine. I know port 8080 is open because I ...
user avatar
  • 254
0 votes
1 answer
260 views

Monit only executing once

Monit is currently executing once. I can see in the log file that it does a check every cycle, however, the execution only happens once when I reload monit. check host somehost with address example....
user avatar
  • 103
0 votes
1 answer
267 views

monit reload - how to know when it is finished?

I have this requirement to add services to monit dynamically. So what I am doing is copying the service monit file to /etc/monit.d/ (which is included in /etc/monitrc) and reloading monit. cp <...
user avatar
  • 123
1 vote
1 answer
648 views

monitoring mongodb with monit

I cannot get the most basic script working on monitoring mongodb on ubuntu 16.04 monit 5.16 check process mongod with pidfile /var/run/mongod.pid group database start program = "/usr/sbin/service ...
user avatar
  • 115
0 votes
1 answer
471 views

Monit is getting false negative for mongo http host checkup

I am trying to create a monit config file to monitor if mongodb is running. Here's my config file. check process mongod with pidfile /var/run/mongodb/mongod.pid group mongodb start program = "/...
user avatar
  • 121
1 vote
0 answers
317 views

Restart Monit service upon multiple conditions

I have a service monitored by monit, and I would like to restart it if it meets either one of two distinct conditions: if memory usage is >15% if memory usage is >5% AND the current system time is ...
user avatar
1 vote
1 answer
717 views

monit check http response header

unfortunately, the documentation is not clear about the HTTP content. https://mmonit.com/monit/documentation/monit.html#HTTP i want to monitor a specific response header, not the content itself, ...
user avatar
  • 1,354
4 votes
1 answer
2k views

Forbidden Invalid CSRF Token +monit [closed]

I have installed monit on AWS ec2 and it working fine. But when I try to restart the nginx service through monit UI,i got an error like "Forbidden Invalid CSRF Token +monit". My configuration check ...
user avatar
3 votes
2 answers
317 views

Pause monitorig of Monit on server update

I have a problem with monitoring services by Monit. Monitoring works well. Too well. When I execute system update... possibly update of MySQL or Apache etc. needs to be service down. Updating ...
user avatar
  • 141
1 vote
1 answer
621 views

linux : monit : iptables

Under linux, at least centos and I think also debian, there is a "iptables" listed in the daemons. But it is really a script to load and save them, it doesn' start a process, neither write a pidfile. ...
user avatar
  • 263
0 votes
1 answer
241 views

monit, run program based on another check

On our linux servers we have this basic check: check system localhost every "* 08-18 * * 1-5" if loadavg (1min) > 4 then alert if loadavg (5min) > 2 then alert if memory usage &...
user avatar
  • 263
0 votes
0 answers
952 views

Monit throwing failed protocol test [HTTP] instead of starting process

I have a custom process (an elixir application) running. I want to setup monit for it. I am setting up the monit check in /etc/monit.d as the following: set daemon 30 check host meraj-pc with ...
user avatar
0 votes
1 answer
420 views

Monit: How to exec when timeout/unmonitor?

How to execute a script as last step, when monit timeout a service? My config looks like this: check process php5-fpm with pidfile /var/run/php5-fpm.pid start program = "/usr/sbin/service php5-...
user avatar
  • 199
0 votes
1 answer
740 views

Monit not restarting process on kill

I've installed monit on my Deabian server with the following configuration: set logfile /var/log/monit.log check process myprogram with pidfile /var/run/myprogram.pid start program = "/etc/init....
user avatar
  • 121
0 votes
1 answer
517 views

monit won't mount filesystem with "execution failed", works manually

I have monit configured to mount an NFS filesystem if it is ever not mounted, however for some reason monit won't mount the share automatically and I have to run monit start myshare in order to get ...
user avatar
1 vote
0 answers
173 views

Is there a way to include some text into monit's alert message?

I plan to use program check, with it's exit code I can force monit to send alert mail message, ok. But how to include into that message some output produced by checking program? I could modify ...
user avatar
  • 123
6 votes
1 answer
10k views

How can I automatically restart my Docker containers with container auto-delete?

I have a general purpose VPS, and am Dockerising the apps on it. There will be around 5-6 containers on it, and very little else, so the box can be trivially rebuilt as required. For each app I have ...
user avatar
  • 203
0 votes
2 answers
4k views

Monit: use content MATCH on “check file …” if match “xxx”

I've asked this question around a week a go at StackOverflow but no answer just yet, probably is no possible but don't know where to look for that answer, I hope someone can help over here. I'm using ...
user avatar
  • 23

1
2 3 4 5
8