Questions tagged [monit]

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

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

389 questions
0
votes
1 answer

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/file.log if timestamp > 15 minutes then…
0
votes
1 answer

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.pid start "/etc/init.d/httpd start" …
weetch
  • 3
  • 1
0
votes
1 answer

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: failed protocol test [SMTP] at [localhost]:10024…
0
votes
1 answer

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 potential attackers on this webserver. From time to…
BurninLeo
  • 900
  • 3
  • 12
  • 30
0
votes
1 answer

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: Pausing ProtocolHandler ["http-bio-80"] Feb 03,…
RD7
  • 51
  • 1
0
votes
2 answers

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 calling the stop method followed by the start…
Ror
  • 321
  • 3
  • 16
0
votes
1 answer

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" remains empty. But why ? (all personnal informations are…
FlipFlap
  • 1
  • 1
  • 2
0
votes
1 answer

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 commands and I thought it would be pretty…
Alasdair
  • 3
  • 2
0
votes
0 answers

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 work. As I am new to both mail servers and monit, I…
Chr
  • 103
  • 3
0
votes
2 answers

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/otheruser/.nvm/versions/node/v5.2.0/bin/pm2 I…
The Keeper
  • 141
  • 5
0
votes
0 answers

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 (systemctl stop monit ; also tried kill -9 ) monit does…
0
votes
1 answer

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/lib/monit/id set statefile…
BitFreak
  • 103
  • 2
0
votes
1 answer

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 to stick with that! I have the file 'apache2' in my…
le_top
  • 135
  • 6
0
votes
1 answer

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
  • 720
  • 5
  • 16
0
votes
2 answers

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 configurations: set httpd port 2812 use address…
svprdga
  • 103
  • 2
1 2 3
25
26