Skip to main content

Questions tagged [monit]

Monit is a daemon monitoring utility

Filter by
Sorted by
Tagged with
3 votes
2 answers
1k views

Who changes `/proc/sys/kernel/random/boot_id` in Linux (SLES)?

Well, I thought it's just logical that the kernel changes /proc/sys/kernel/random/boot_id during boot, and then keeps that value while running. At least that would make sense to me if the intended use ...
U. Windl's user avatar
  • 1,553
0 votes
0 answers
26 views

Send monit alert at most once in Linux?

My script to send sms #send-sms.sh curl "http://10.10.10.10:1084/somerandomhexcode&[email protected]&password=passwordgOesHere&countryCode=countrycodegoeshere&...
achhainsan's user avatar
0 votes
2 answers
2k views

How to check if a web server is reachable in Linux?

I want to poll every few minutes if an external web server is reachable from the Linux server. Assume the server is 10.20.30.40. I'm following this guide. https://www.baeldung.com/linux/hosts-network-...
achhainsan's user avatar
1 vote
0 answers
1k 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 -...
Pioz's user avatar
  • 103
12 votes
1 answer
6k 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 ...
rubo77's user avatar
  • 29.6k
1 vote
0 answers
730 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 ...
NR Technology 's user avatar
0 votes
1 answer
127 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/...
user9338787's user avatar
1 vote
0 answers
36 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 ...
spacecabbie's user avatar
1 vote
1 answer
282 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 ...
Rahul's user avatar
  • 303
0 votes
1 answer
2k 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 ...
Piyush's user avatar
  • 111
0 votes
1 answer
283 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 /...
Baruch Youssin's user avatar
0 votes
0 answers
532 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/...
kunashir's user avatar
  • 101
0 votes
1 answer
69 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, ...
lese's user avatar
  • 2,736
0 votes
1 answer
421 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 ...
Massimo's user avatar
  • 1,015
2 votes
1 answer
2k 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 ...
orome's user avatar
  • 416
2 votes
1 answer
1k 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 ...
Hieu Huynh's user avatar
2 votes
1 answer
2k 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) > ...
pyramid13's user avatar
  • 639
0 votes
1 answer
880 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" ...
rubo77's user avatar
  • 29.6k
5 votes
1 answer
5k 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 ...
fugitive's user avatar
  • 1,573
1 vote
1 answer
144 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 ...
mohit's user avatar
  • 125
1 vote
0 answers
217 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-...
godblessfq's user avatar
1 vote
0 answers
748 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 ...
Flo Schild's user avatar
1 vote
0 answers
804 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 ...
Innkeeper's user avatar
  • 111
0 votes
1 answer
840 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 ...
Rui F Ribeiro's user avatar
15 votes
3 answers
10k 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 ...
Joff's user avatar
  • 383
1 vote
0 answers
951 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::...
Shankar SM's user avatar
0 votes
1 answer
618 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 ...
Ram on Rails's user avatar
2 votes
1 answer
771 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 ...
Junchao Gu's user avatar
0 votes
3 answers
299 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 ...
dpetican's user avatar
  • 277
1 vote
0 answers
197 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 (...
Riduidel's user avatar
  • 111
0 votes
2 answers
401 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 ->...
Floyd's user avatar
  • 101
3 votes
1 answer
7k 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 ...
Max Williams's user avatar
  • 1,127
2 votes
2 answers
4k 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: ...
Shelvacu's user avatar
  • 714
1 vote
1 answer
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-...
Erik's user avatar
  • 1,757
2 votes
2 answers
2k 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 ...
Yuri's user avatar
  • 121
6 votes
1 answer
9k 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 ...
Raffi's user avatar
  • 63
2 votes
2 answers
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 ...
interoperate's user avatar