Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [monit]

Monit is a daemon monitoring utility

1
vote
0answers
11 views

Randomly failing services CentOS7 - Monit too [closed]

I've recently created a new CentOS 7 setup with Apache, Nodejs, Lfd and Postfix and i'am also using monit to track failed services. For some reason randomly, services are failing including monit as ...
0
votes
1answer
25 views

Monit - How to use different configurations for Day and Night time?

What is the most convenient way to configure monit to act different in day and night hours? The only thing I can figure out , is to use a cron job switch the monitrc file - let's say - at midnight, ...
0
votes
1answer
109 views

monit, http access with four different credentials types, one using PAM

monit 5.25.2 These are our credential settings: set httpd port 2812 allow localhost allow guest:guest read-only allow @wheel allow cleartext /opt/monit/htpasswd Rationale: localhost to enable ...
-1
votes
0answers
72 views

How to keep running Monit exec after X cycles?

I do have a scenario where need to keep restarting a service even it fails to restart, not straight way on every failure but after a Nth cycle, like so: 1 - Something like this will run every failure ...
1
vote
1answer
240 views

How do I configure to 'monit' monitor a process after it restarts?

I have monit configured to terminate a pair of processes when they consume too much CPU, but once either is terminated, monit summary reports "Not monitored" for the process, even after the OS ...
1
vote
1answer
362 views

Monit alert/exec when host is back to normal

I use Monit to quick check uptime of Elasticsearch service. Here is my configuration: check host [Elasticsearch]-test with address 1.2.3.4 if failed port 9200 protocol http ...
0
votes
0answers
975 views

monit and run script

I want monitor MariaDB with monit tools. my monit script is : check process mariadb_pid with pidfile /var/lib/mysql/db1.pid check program telnet with path "/root/telnet.sh" if status eq 99 then ...
3
votes
1answer
630 views

How can I monitor load average CPU other servers via monit tools?

How can I monitor load average CPU other servers via monit tools? this example shows the only localhost. check System my_server if loadavg (1min) > 4 then alert if loadavg (5min) > ...
1
vote
0answers
162 views

Error using monit to monitor mosquitto, grafana and influxdb [closed]

I've setup monit to monitor Mosquitto, Grafana and Influxdb. However, I'm getting the errors when monit starts up: root@TB-IOT01:/etc/init.d# monit reload /etc/monit/monitrc:218: Program does not ...
0
votes
0answers
353 views

apache2 restarts every minute

I use monit for monitoring all services on my system and recently I add Apache2 ( 2.4 ) to it. Just to mention I use Debian 8 on ARM system.I use init.d and not systemd. After I add Apache and config ...
0
votes
1answer
363 views

automatically restart nginx proxy with monit

I tried to mointor my nginx proxy in one VM with this config in # cat /etc/monit/conf.d/nginx check process nginx with pidfile /run/nginx.pid start program = "/usr/sbin/service nginx start" ...
3
votes
1answer
2k views

How to use Monit Environment variables?

According to Monit link : No environment variables are used by Monit. However, when Monit executes a start/stop/restart program or an exec action, it will set several environment variables which ...
1
vote
1answer
66 views

How to monitor a service using monit for cpu % metrics.?

I have used monit to monitor various services which were offered by monit itself but I am unable to monitor the custom service which is not generating its PID file. I want if a particular service is ...
1
vote
0answers
161 views

How to run ps-watcher as non-root

The command is ps-watcher $HOME/ps-watcher.cfg Is I run it as normal user, I got this error: Unable to open file handle FH for file '/var/run/ps-watcher.pid': Permission denied The content of ps-...
1
vote
0answers
306 views

Monit STUN / TURN server

I set up a STUN & TURN server (with TLS support) using reTurnServer, on a Debian 8 VPS, using the official Debian package resiprocate-turn-server. I am already using Monit to monitor different ...
1
vote
0answers
487 views

How to restart an app monitored by monit at specific time

I have long-running python app which is monitored by monit, checking if all is well each minute. This is great, however, if the app misbehaves, I want users to be able to kill it, and thus far that ...
0
votes
1answer
479 views

Error upgrading nginx in Stretch

In the last Debian Stretch routing security updates I had a problem. When trying install the security upgrades, and consequently upgrading nginx, I got the following error bellow. I have tried ...
6
votes
2answers
3k views

What command in monitrc can I use to start/stop systemd services?

I like using monit for the web interface where I can see running monitored processes. I recently upgraded a server to Ubuntu 16.04 and it is using systemd. I have everything else running but I ...
1
vote
0answers
492 views

Monit during reboot

We are seeing an issue using monit during a reboot or shutdown sequence. First some background of the some of the configuration of monit. Monit version is 5.5 Monit is started from inittab as null::...
0
votes
1answer
318 views

start: Unknown job: monit

So what is causing this error in the following case? /etc/init.d/monit exists installed using sudo apt-get install monit standard install via apt vagrant@vagrant-ubuntu-trusty-64:~$ sudo apt-get ...
2
votes
1answer
376 views

Trying to understanding startup procedure of monit

I am just starting to learn monit. On its man page I found this: The behavior of Monit is controlled by command-line options and a run control file, ~/.monitrc, the syntax of which we describe in ...
0
votes
3answers
113 views

How do non-interactive programs get the permission to edit files in /etc

I'm writing a program in python that needs to edit some files in /etc. Some system some its own. How do I get those permissions from within the program itself without running sudo as the program ...
1
vote
0answers
166 views

How to stop a program that is not showing up using monit?

I have a set of raspberry running raspbian. On each of these, I have configured monit to monitor the epiphany browser, which should always show up with a specific web site. Unfortunatly, some times (...
0
votes
2answers
220 views

server monitoring / intrusion detection for home NAS

I'm looking for some kind of monitor or intrusion detection to monitor my NAS. The following things I would like to monitor: Incoming network traffic (source -> Router -> NAS) from another country ->...
2
votes
1answer
4k views

User settings for monit? Should it run as root, or it's own user?

I'm trying to install monit on an Ubuntu 12.04 server. I have it set up, and configured (i think), but i'm not sure what user it's supposed to run as. My user on the server is called deploy, and my ...
1
vote
2answers
3k views

Why doesn't monit like this syntax

I am trying to setup monit for my debian server. I have a main monitrc file in /etc/monit which at the end has include /etc/monit/conf.d/*. In conf.d I have two files for my apache and mysql servers: ...
1
vote
1answer
2k views

Runs monit as non-root user

I'm using Monit to monitor my nodejs process. Right now monit itself runs as the root user which may lead to security holes. How could I run monit via the 'monit' user? I installed monit by using apt-...
1
vote
2answers
980 views

Displaying messages to tty using whiptail through monit

I would like to display a whiptail message on the login screen that is triggered by monit, but I am without luck. I understand it might be something to do with interactive/non-interactive shell. Here ...
6
votes
1answer
7k views

Monit daemon interval setting…global or service-level?

I'm configuring monit on Ubuntu 11.04. In monitrc, the following setting controls the interval at which the monit daemon monitors services... set daemon 120 Is this a global setting? If I want to ...
2
votes
2answers
4k views

Monit won't execute commands

Running Monit 5.2.5 on Fedora 15 All standard alerts are working, however just cannot get exec to run anything. I have tried more than ten different configurations based on examples from the Monit ...