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
1
vote
1 answer

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 "/bin/custom-alert" ...And when I monit reload, the…
JellicleCat
  • 284
  • 1
  • 3
  • 15
1
vote
1 answer

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 4643/mysqld tcp 0 0 127.0.0.1:3306 …
temp
  • 111
  • 4
1
vote
1 answer

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 allow localhost allow admin:monit This is…
1
vote
0 answers

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 to draw attention. Question is: Is it possible…
mogul
  • 111
  • 3
1
vote
1 answer

Start monit with a stopped service

Is it possible to have an entry for a service in monit where the service is not started on system startup and on monit startup and monit displays it's status and only starts or stops it, when I press the start or stop button in the http…
user12096
  • 917
  • 5
  • 23
  • 39
0
votes
1 answer

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 And after this, my services (that are monitored by…
Ani
  • 32
  • 12
0
votes
1 answer

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, I see something like this; enter image…
0
votes
2 answers

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-8101 with path "/bin/bash…
0
votes
1 answer

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-driven stops and starts of apache, i would love to add…
Sandro B.
  • 66
  • 6
0
votes
1 answer

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 error '' root@app-server[192.168.100.83] ~…
ychaouche
  • 252
  • 3
  • 15
0
votes
1 answer

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
  • 111
  • 1
  • 8
0
votes
1 answer

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 if failed port 80 protocol http …
0
votes
1 answer

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 have this: CHECK HOST ping-or-nuke ADDRESS…
mogul
  • 111
  • 3
0
votes
1 answer

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.com # every "* 8-19 * * 1-5" if failed port…
Adilp
  • 103
  • 2
0
votes
1 answer

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 /etc/monit.d/ monit reload monit…
Soumen
  • 123
  • 1
  • 5