Skip to main content

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
84 views

how to monitor traffic in monit by traffic I mean bandwidth and is that possible using monit

I have a question regarding monit is it possible to monitor traffic in monit I kind don't know if that is possible to be traffic. by traffic I mean my bandwidth I have two in my vps incoming and ...
islam's user avatar
  • 1
0 votes
1 answer
45 views

monit website This site can’t be reached

I follow the tutorial to setup Monit on my vps which does not include support but I cannot reach the website for monit using public ip it work fine in localhost I followed this page in this website ...
islam's user avatar
  • 1
0 votes
1 answer
36 views

specifying multiple mail formats in a monit file

I have a very long monit file, with different rules. For certain rules, I want to send an email (with a specific format) to multiple email addresses. I thought about using a Message Format, but we ...
Ionut's user avatar
  • 1
0 votes
1 answer
137 views

Monit and MySQL/MariaDB Checksum

I have Monit monitoring MariaDB but when a minor MariaDB update is rolled out Monit fails to monitor as the Checksum has changed: Checksum failed Service mysql_bin Description: checksum failed, ...
neilgee's user avatar
  • 109
1 vote
1 answer
50 views

Monit: exec a command but don't alert

I use monit to start a program when a webserver is not accessible. .monitrc: check host MyServer with address MyServer if failed port 80 protocol http then exec "/home/michael/monit/...
Michael Hutter's user avatar
0 votes
2 answers
144 views

Is it safe to expose monitd http server to the world

I'd like to use monitd for monitoring my webserver. I read it has built in http server. By default it is set to run on 2812 port. Is safe to open the port on firewall and view it via a browser?
Łukasz Korona's user avatar
0 votes
2 answers
146 views

Monit complains of checksum failure after MariaDB reinstall and upgrade to newer version

I have a Linode VPS running CentOS 7 and somewhat old versions of web-related services (because code I've written isn't ready for newer versions - I'm planning to build a fresh VPS with new everything ...
OsakaWebbie's user avatar
2 votes
1 answer
74 views

Setting up monit to keep track of .sock files for php-fmp sites

I'm trying to setup Monit so that it keeps track of domains in case PHP crashes. Example: check file php7.3-fpm-pidfile with path /var/run/php/php7.3-fpm.pid start program = "/usr/sbin/...
Andrew Newby's user avatar
  • 1,184
0 votes
1 answer
463 views

What is the correct way to check monit status/summary success/failure

I have monit utility on production for monitoring several daemons (our micro-services). I'm trying to figure the best way to unmonitor/monitor my daemons while updating them. So, basically I need ...
Alexander Bell's user avatar
0 votes
1 answer
113 views

Setting up Slack Alerts for Monit monitoring MySQL

Trying to set up Slack alerts for Monit and MySQL/MariaDB but stuck in writing a MySQL check script. I have the monit successfully working if MySQL is stopped and receive email alerts - but want the ...
neilgee's user avatar
  • 109
0 votes
1 answer
71 views

Monit with Ansible - invalid mail format '#015'

I've been trying to install monit with an ansible playbook. I'm changing the monitrc file and when the playbook restarts monit, I get : Jun 8 08:00:30 myserver monit[1857462]: Starting daemon monitor:...
Ror's user avatar
  • 343
0 votes
1 answer
331 views

How to send Monit alerts with MSMTP?

I've got a Debian 11 system running as a local file server. I want to keep it as simple as possible but have some basic monitoring from Monit. I've installed and configured msmtp and msmtp-mta and I'...
Vilas's user avatar
  • 71
0 votes
2 answers
126 views

Trigger a monit reload after unattended upgrades

I have run into an issue when combining monit with Ubuntu/Debian unattended upgrades. Monit monitors services and binaries, and flags changes, restarts processes, etc as needed. However, when a ...
Synchro's user avatar
  • 3,270
0 votes
1 answer
156 views

send a get request to url in monit (linux)

I'm trying to find out when a file size increase stops and then sends a GET request to some URL. already added this conf in /etc/monit/monitrc check file file.log with path /home/projects/my_project/...
Saeed Ramezani's user avatar
1 vote
0 answers
274 views

Monitoring php command line worker with Monit Ubuntu 20

Problems monitoring php script using pid method. We have a Laravel worker script that must be kept running on the server: php /data/git/site/directory/artisan queue:work --daemon when this is run on ...
sixfive's user avatar
  • 11
1 vote
1 answer
241 views

Monit: Editing in-built alert text

i have the monit tool setup on a linux box, and it's been monitoring apache and the overall system for a few months. The apache config file is: check process apache with pidfile /var/run/httpd/httpd....
weetch's user avatar
  • 13
0 votes
1 answer
373 views

Amavis + Monit: "Error receiving data from the mailserver -- Resource temporarily unavailable "

Good morning folks, I'm often getting these monit alerts, about once or twice a day: Connection failed Service amavisd Date: Wed, 20 Jul 2022 09:04:58 Action: restart Host: (hidden).com Description: ...
Michael Heuberger's user avatar
1 vote
1 answer
153 views

How to filter by service groups in the monit web frontend?

Monit has a feature called "service groups" (https://mmonit.com/monit/documentation/monit.html#SERVICE-GROUPS). It allows you to filter by groups using the CLI. But is it possible to use ...
thomas.mc.work's user avatar
0 votes
1 answer
394 views

Monitor free space with monit ... but only if the folder is mounted

For my backup, external disk space is mounted via cronjob as /mnt/backup on a Ubuntu machine every night. When the backup is complete, the disk is unmounted. No need to expose the backup drive to ...
BurninLeo's user avatar
  • 910
0 votes
1 answer
321 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: ...
RD7's user avatar
  • 51
0 votes
2 answers
3k 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 ...
Ror's user avatar
  • 343
0 votes
1 answer
84 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&...
FlipFlap's user avatar
0 votes
1 answer
2k 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 ...
Alasdair's user avatar
0 votes
0 answers
248 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's user avatar
  • 103
0 votes
2 answers
1k 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/...
The Keeper's user avatar
1 vote
1 answer
630 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 &...
Jellicle's user avatar
  • 324
2 votes
1 answer
1k 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 ...
temp's user avatar
  • 121
0 votes
0 answers
694 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 (...
ZeroUno's user avatar
0 votes
1 answer
659 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/...
BitFreak's user avatar
  • 103
0 votes
1 answer
296 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 ...
le_top's user avatar
  • 135
3 votes
3 answers
1k 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 ...
ibyte's user avatar
  • 83
0 votes
1 answer
61 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
DevOps's user avatar
  • 730
1 vote
1 answer
990 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 ...
Manuel Rauber's user avatar
1 vote
1 answer
100 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 ...
mogul's user avatar
  • 111
0 votes
2 answers
386 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 ...
svprdga's user avatar
  • 103
1 vote
0 answers
372 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 ...
Tom's user avatar
  • 11
1 vote
1 answer
104 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 ...
user3168731's user avatar
0 votes
1 answer
180 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 ...
Ani's user avatar
  • 30
0 votes
1 answer
179 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, ...
Chag Vaibhav P's user avatar
0 votes
2 answers
3k 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-...
Heino Rötten's user avatar
2 votes
1 answer
331 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
penguin's user avatar
  • 39
0 votes
1 answer
283 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-...
Sandro B.'s user avatar
1 vote
1 answer
845 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 : ...
mcoeur's user avatar
  • 13
0 votes
1 answer
5k 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 ...
ychaouche's user avatar
  • 282
0 votes
1 answer
153 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?
titel's user avatar
  • 111
1 vote
1 answer
269 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 ...
Vadym's user avatar
  • 111
0 votes
1 answer
147 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 ...
Pratik Gautam's user avatar
0 votes
1 answer
238 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 ...
mogul's user avatar
  • 111
1 vote
2 answers
3k 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 ...
Tony B's user avatar
  • 264
0 votes
1 answer
433 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....
Adilp's user avatar
  • 103

1
2 3 4 5
8