Questions tagged [monit]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
50 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 ...
0
votes
1answer
40 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 ...
0
votes
1answer
48 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, ...
0
votes
2answers
261 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-...
2
votes
1answer
77 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
0
votes
1answer
41 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-...
1
vote
1answer
145 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 : ...
0
votes
1answer
587 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 ...
0
votes
1answer
55 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?
1
vote
1answer
63 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 ...
0
votes
1answer
50 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 ...
0
votes
0answers
31 views

Monit send last N lines to email

I was add a MONIT service on my server and configure it to monitoring log-file. If log-file have error, monit send text line with error to my email: Description: $DESCRIPTION How can i configure ...
0
votes
0answers
30 views

Monit flag stopped service as normal

I am attempting to use Monit to do simple service up/down tracking on our servers. We have a number of java softwares that run and I want to keep those running. The trick lies in us using 2 servers ...
0
votes
1answer
93 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 ...
1
vote
2answers
513 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 ...
0
votes
1answer
141 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....
0
votes
1answer
99 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 <...
1
vote
1answer
261 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 ...
0
votes
1answer
294 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 = "/...
0
votes
0answers
102 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 ...
1
vote
1answer
363 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, ...
3
votes
1answer
1k 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 ...
3
votes
2answers
88 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 ...
1
vote
1answer
420 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. ...
0
votes
1answer
185 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 &...
0
votes
0answers
630 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 ...
0
votes
1answer
265 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-...
0
votes
1answer
402 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....
0
votes
1answer
355 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 ...
1
vote
0answers
82 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 ...
4
votes
1answer
5k 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 ...
0
votes
2answers
2k 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 ...
1
vote
1answer
136 views

CPU Total is wrong displayed for a process in monit

I am using Monit, and I am monitoring a few processes. I have 12 vCPUS, and system is around 20% usage. Yet M/Monit shows some processes to go up to 100%. Well they actually do but just a single CPU. ...
0
votes
1answer
287 views

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 ...
0
votes
2answers
940 views

Possible to not have a monit httpd?

Everytime I do # monit reload M/Monit enabled but no httpd allowed -- please add 'set httpd' statement Reinitializing monit daemon I get the error about I don't have set httpd. This is my /etc/...
1
vote
1answer
720 views

Super simple Nagios alternative? [closed]

After having used Nagios for many years, I tried M/Monit, and it is mostly what I want, but still it lacks the option to customize the format of the notification emails sent by M/Monit, which makes it ...
2
votes
1answer
191 views

How can I make monit poll more often during a state change?

I'm using Monit to monitor various processes that need to be up and running as a group for a web site to work properly. To bring up or bring down the site, there's a definite order by which the ...
2
votes
1answer
968 views

monit, let's encrypt, and file permissions

I decided to put monit on my vps running centos 7. I've already got let's encrypt on the server and the certs are installed. I wanted to point monit at the fullchain.pem or the cert.pem, but I get ...
1
vote
1answer
692 views

Monit, checking URL with basic Auth but username has @ in it

Monit gives me a syntax error when the username contains an @, which would be quite common. For example, user@gmail.com below: check host somesite with address monitoring.somesite.com if failed ...
0
votes
1answer
212 views

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 ...
1
vote
1answer
517 views

why is monit stopping apache restart, stop, graceful

After a short period of monit running, I cannot then restart or stop apache, it says there is a conflict, something else using port 80. Apache still serves webpages fine and when I netstat -anp | ...
1
vote
0answers
393 views

monit lists apache as 'not monitored'

Trying to get monit to monitor apache. No matter what I do I can't get it to work. It reports as 'not monitored'. I've checked that the pid I am using is the root apache process. Running apache 2.24 ...
0
votes
1answer
492 views

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 ...
0
votes
1answer
248 views

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 ...
1
vote
2answers
1k views

check mount point status using monit service

I would like to monitor the server "mount point status" using "monit". Check filesystem is available to check whether that filesystem available or not on the systeam. But couldn't check filesystem ...
1
vote
1answer
1k views

monit restart process periodically

Is it possible to configure monit to restart an application periodically? I'm using monit to check the application health and restart it if it has died. I also want to periodically restart it. Prefer ...
0
votes
1answer
681 views

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 ...
2
votes
1answer
315 views

Log system information collected by Monit to local log

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,...
2
votes
1answer
1k views

monit - “else if succeeded then exec”

I have a problem with monit executing script on success. ~/.monitrc: check host example.com with address example.com if failed url http://example.com/startpage and content == "mainBaner" timeout 10 ...
2
votes
1answer
2k views

Monit wont autostart on boot

So as the title states, I have a problem where monit won't start on boot. I have a CentOS 7 box that it does start on, and another CentOS 7 box that it doesn't start on, so I know it's not a OS issue ...

1
2 3 4 5
8