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

Configure Monit to send emails with SparkPost

I tried to get Monit to send emails with my SparkPost account but ran into an unexpected error. My monitrc is like so (where mydomain.com is a properly configured sending domain on my SparkPost account): set mail-format { from:…
0
votes
2 answers

M/Monit behind Apache SSL VHost proxy broken redirects

I'm having some difficulty getting M/Monit to work behind a proxy. I'm trying to proxy HTTPS connections from https: //monit.mydomain.com to http: //monit.realserver.com:8082. With the configuration below, if I visit https:…
RCross
  • 449
  • 2
  • 6
  • 19
0
votes
1 answer

Syntax error: when using "check program" in monit

I have the following configuration in Monit: check program raid-md127 with path "/sbin/mdadm --misc --test /dev/md127" if status != 0 then alert When restart monit, I get the following error: root@NAS2:/etc/apt/sources.list.d# /etc/init.d/monit…
0
votes
1 answer

Run multiple PHP scripts through Monit

I'm having two PHP scripts acting as RabbitMQ Consumers and i want them to be started and monitored (+ automatically restarted) through monit. My /etc/monitrc for the two processes looks like this: check process php-magento-category matching…
user345934
0
votes
2 answers

monit Sendmail: Cannot switch to SSL

I setup monit to monitor some services which are running on my servers. On one of the servers I also have a mail server running, which handles the mail transport for the domains I own (in this case for example example.com). For a long time, monit…
Florian
  • 103
  • 10
0
votes
1 answer

Monit: ping a website url then restart application server

I am using this configuration for monitoring apache2 (ubuntu): /etc/monit/conf.d/apache2: check process apache with pidfile /var/run/apache2/apache2.pid start program = "/etc/init.d/apache2 start" with timeout 60 seconds stop program =…
Fabio B.
  • 299
  • 2
  • 5
  • 17
0
votes
0 answers

Use monit to collect metrics?

monit is very useful, simple and stable tool, but one thing is curious: Is it possible to log every monit check? I mean, that it logs only errors, like [MSK Aug 10 15:54:30] error : 'fs-home' space usage 96.0% matches resource limit [space…
Psychozoic
  • 273
  • 2
  • 4
  • 13
0
votes
1 answer

How do I disable TLSV1.0 in monit?

In order to be PCI Compliant, I need to disable TLSV1.0 in my monit installation, and I need SSL enabled in order to view it in my IspConfig installation. I've tried explicitly setting a version like so: set ssl { verify: enable, version:…
Jeremey
  • 3
  • 1
0
votes
1 answer

Running monit AND supervisord simulatenously. Any possible issues?

Two aims: 1) Make sure background daemons such as webserver/rabbitmq are running all the time. If they crash they are automatically restarted etc. For this I am using monit with a config like: set httpd port PORTNUM and use address localhost …
gyaani_guy
  • 171
  • 1
  • 1
  • 8
0
votes
1 answer

Monit cannot read content

I've installed the latest version of Monit and created a very basic rule: alert me when the word "Google" cannot be found on google.com (deface check). I keep getting following error: failed to [www.google.com]:443/ type TCP/IP using SSL/TLS…
K.Rens
  • 23
  • 1
  • 5
0
votes
1 answer

Monit showing 0 hosts connected

I am new to Monit. I have one VM and am trying to run M/Monit and Monit on the same server. I downloaded the binary for both and ran both processes. All M/Monit configs are default and I have not changed anything. As for Monit, I have kept the…
Jason Stanley
  • 185
  • 1
  • 11
0
votes
1 answer

How to restart nginx when getting 502, with Monit

In Monit, how can I check the health of my Nginx server (if it is returning 502, for example) and how to restart it when this occurs. The environment is an Ubuntu 14.04 64bit
Paulo Coghi
  • 588
  • 1
  • 11
  • 22
0
votes
1 answer

"check file" in monitrc fails with syntax error

I have the following in /etc/monit/monitrc on line 130-131: check file ip-172-31-37-63:1.log with path /home/ubuntu/.vnc if match "Connections\: accepted" then exec /home/ubuntu/alerts/slack.rb It fails on monit initialization with the following…
0
votes
2 answers

Monit for PHP7 connection failed

Trying to get monit working for PHP7 but getting a connection error. Here is the config file: check process php7.0-fpm with pidfile /run/php/php7.0-fpm.pid group phpcgi start program = "/usr/sbin/service php7.0-fpm start" stop program =…
primetimejas
  • 231
  • 2
  • 5
0
votes
1 answer

MONIT: Monitoring logfile on counting and changes of timestamp

I want to monitor a logfile and I am only interested in the "Received new block" lines. I need two different scripts to monitor The height, which should always be one number higher then the height in the previous "Received new block"-line. If it's…
John Doof
  • 169
  • 3
  • 9