Questions tagged [monit]

Monit is a daemon monitoring utility

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Check systemd unit with monit

I need to check a program that has a systemd unit under user namespace and this is my monit conf (systemd conf works without any problem): check program foo with path "/usr/bin/systemctl --user -...
0
votes
0answers
10 views

Monit “Restart Process” action not working

I've created a Monit config file for one of my services. The configuration file is pretty simple: check process myservice matching "myservice" start program = "sudo systemctl start ...
5
votes
1answer
1k views

Install monit in Debian 10 (buster)

I try to install monit in Debian Buster, but it sais Package monit is not available, but is referred to by another package. How do I find out this referenced package? Or do I need to install an ...
1
vote
0answers
459 views

Issues when installing Monit

I have recently been trying to install Open Media Vault along with exFAT support (exfat-fuse and exFAT-utils), however, when Monit tries to install it returns with the following error: sudo apt ...
0
votes
1answer
40 views

Monit ignore pipes for some reason

I have Monit script to monitor my tvheadend service. To start the program I would like to use start command start program = "/etc/init.d/tvheadend start && /usr/bin/python /root/...
1
vote
0answers
14 views

want to live monitor all log files in one vieuw

I like to view all log files live like tail -n0 somelog.log But then for literally all log files on the system (CentOS 7) Or an other way to do this is also nice. I want to output this to a web page ...
1
vote
1answer
164 views

monit removed from CentOS8 and EPEL. Any replacement?

I upgraded to CentOS8 and noticed that monit removed from CentOS8 and EPEL. We have been using it to monitor processes. I know I can build it but wondering why it was removed. Was it replaced with a ...
0
votes
1answer
508 views

How to monitor python script using monit

I want to monitor my python script. I am trying to run the python script from monit but I am getting the error file as : error: 'scraper' process is not running info: 'scraper' trying to restart ...
0
votes
1answer
77 views

monit:3: syntax error '='

I am trying to set up my virtual machine to shut down when my program completes, to stop the charges. I have written the following .monitrc for this purpose: SET DAEMON 30 CHECK PROCESS py MATCHING /...
0
votes
0answers
175 views

Monit doesn't run 'start program'

I am trying to add one more process for monitoring through monit: check process sidekiq_worker_flow with pidfile /home/flio/apps/stage-flow/current/tmp/pids/sidekiq-1.pid start program = "cd /home/...
0
votes
1answer
48 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
245 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
vote
1answer
611 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 ...
2
votes
1answer
761 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
2k 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 ...
1
vote
1answer
1k 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) > ...
0
votes
1answer
534 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
3k 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 can ...
1
vote
1answer
92 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
194 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
438 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
623 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
562 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 ...
9
votes
3answers
6k 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
691 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
461 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
578 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
128 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
183 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
259 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 ->...
3
votes
1answer
6k 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 ...
2
votes
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
1k 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
8k 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
5k 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 ...