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.

382 questions
0
votes
1 answer

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 = "/sbin/start mongod" stop program = "/sbin/stop…
bitkot
  • 121
  • 4
0
votes
1 answer

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 > 75% then alert if swap usage > 25% then alert …
Massimo
  • 260
  • 3
  • 13
0
votes
0 answers

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 address 192.168.3.124 start program =…
Meraj Rasool
  • 170
  • 1
  • 1
  • 6
0
votes
1 answer

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-fpm start" stop program = "/usr/sbin/service…
Aley
  • 199
  • 2
  • 3
  • 16
0
votes
1 answer

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.d/myprogram start" stop program =…
Mendes
  • 121
  • 7
0
votes
1 answer

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 the filesystem mounted. The system often can't…
Malvineous
  • 955
  • 7
  • 27
0
votes
2 answers

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 monit to scan logs for errors and then push those…
Larry
  • 23
  • 1
  • 5
0
votes
1 answer

Monit adding hostname to mailserver and inventing a username

I'm brand new to Monit, trying to set it up on my CentOS7 VPS. I put the following settings in monitrc: set mailserver 127.0.0.1 set alert me@externaldomain.org But the email fails, and the entry in maillog is bizarre: Feb 26 10:47:23 puphpet2…
OsakaWebbie
  • 183
  • 1
  • 11
0
votes
1 answer

Monit - monitor tinc VPN

Is there any way to monitor a tinc VPN with a monit network check? The following check does not see if the vpn connection is actually established (means if there is a connection to one of the vpn servers) CHECK NETWORK vpn with INTERFACE…
ProfHase85
  • 451
  • 3
  • 6
  • 13
0
votes
1 answer

Executing repeating tasks via Zabbix

First, a brief explanation: Using Zabbix for system monitoring, I'm try to understand if/how it can be used to run important, scheduled task for which I need an OK/PROBLEM value reported (ie: via email). I already use a custom-written script,…
shodanshok
  • 44,038
  • 6
  • 98
  • 162
0
votes
1 answer

Monit with mysql, but doesn't work with skip-networking on in my.cnf

I'm trying to figure out a way around this. Basically, I don't want anyone outside of our server to be able to try and connect to our DB's. As such, I have added this into my.conf: skip-networking Here is what I get when skip-networking is NOT…
Andrew Newby
  • 1,041
  • 1
  • 22
  • 48
0
votes
1 answer

Monitoring solr service on Ubuntu 16.0.4 with Monit

I'm trying to work out why my Monit (https://mmonit.com/monit/) doesn't want to seem to monitor my Solr service. I have it all working for the rest of the services: But for some reason Solr doesn't want to properly monitor. I followed the example…
Andrew Newby
  • 1,041
  • 1
  • 22
  • 48
0
votes
1 answer

Postfix daemon connects and immediately disconnects periodically

Postfix's smtpd(daemon used to receive mail) flaps/(connects/disconnects) every 30 seconds with the connection from localhost. May 24 17:33:03 ---- postfix/smtpd[8397]: connect from localhost[127.0.0.1] May 24 17:33:03 ---- postfix/smtpd[8397]:…
notapatch
  • 121
  • 4
0
votes
1 answer

Monit restart service at system upgrading

I have problem with monit. I'm monitoring MySQL service for example... and when I execute system updates like apt-get upgrade or dist-upgrade ... sometimes is upgraded monitored services. System need stop service for upgrade, and will do it. But…
user5332
  • 141
  • 4
0
votes
2 answers

How to determine what's causing high bandwidth usage on server

I have a MySQL database server running on a VPS. The server is connected to a web server via a private network interface, and has no public services except SSH and a PHPMyAdmin installation. Some time ago, I installed a Monit rule to check for…