Questions tagged [monit]

Monit is a free open source utility for managing and monitoring, processes, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.

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.

434 questions
0
votes
1 answer

Can "Monit" monitor the processes running on remote servers?

I want to setup monit on a server which is going to be a centralized server to monitor processes running on remote servers. I checked many docs related to setup monit but could not find how to setup for remote server processes. For example a…
Ajeet Khan
  • 8,582
  • 8
  • 42
  • 65
0
votes
1 answer

How to automatically restart a failed node in Spark Streaming?

I'm using Spark on a cluster in Standalone mode. I'm currently working on a Spark Streaming application. I've added checkpoints for the system in order to deal with the master process suddenly failing and I see that it's working well. My question…
0
votes
2 answers

How can I configure monit to kill a high CPU process after a few seconds?

I want to use monit to kill a process that uses more than X% CPU for more than N seconds. I'm using stress to generate load to try a simple example. My .monitrc: check process stress matching "stress.*" if cpu usage > 95% for 2 cycles then…
capitalistcuttle
  • 1,709
  • 2
  • 20
  • 28
0
votes
1 answer

Monit python daemon process

How could I check python daemon process? I'm trying check process rane matching "147684802" start program = "/usr/local/bin/python2.7 /root/rane.py 147684802 > /dev/null 2>&1 &" But it fails with timeout for my daemon-python case.…
user2298956
  • 75
  • 2
  • 10
0
votes
1 answer

Monit Httpd interface not working

I am trying to use httpd interface to view monit results in web browser. I have used the below commands in my monitrc file. set httpd port 2812 allow monit:monit But when i try to log into web browser with http://localhost:2812/ The page fails…
Aravind
  • 1
  • 1
  • 3
0
votes
1 answer

Using a monit http interface as a public services status page

I know it is possible to create users with read-only rights to the monit page, but is it possible to create a publicly viewed status page with read-only permissions?
0
votes
2 answers

NodeJS - Keep my App running with Forever

Currently, I have a NodeJS service running on my server. It provides a RestAPI thanks to HAPI.JS This service run permanently with forever executed in upstart script but I got some trouble. Sometimes, the service have an error like this : Debug:…
Quentin DESBOIS
  • 123
  • 1
  • 1
  • 9
0
votes
1 answer

Monit false alerts

I am monitoring a java daemon process with PID. Below is the code. check process SemanticReplication with pidfile "/ngs/app/edwt/opsmonit /monit/scripts/process.pid" start = "/ngs/app/edwt/scripts/javadaemon/start_daemon.ksh" stop =…
Aravind
  • 1
  • 1
  • 3
0
votes
1 answer

Monitor Java Demon Process using Monit

Is there another way to monitor a running Java process than to use PID with Monit?
Dhrumil Shah
  • 2,128
  • 5
  • 23
  • 37
0
votes
1 answer

Graph historical program status data in M/Monit

I would like to use monit and M/Monit to monitor our Postgresql database. Setting it up to monitor the Postgresql process is simple enough. The next most important thing for us to monitor is the number of connections. Current solution I can write a…
0
votes
1 answer

monit file sha1 checksum not working

I am using monit 5.14 to monitor the checksum of a file. I have the below config in the monitrc check file file1.jar with path /home/lib/target/myjar.jar if changed sha1 checksum then stop I have already defined stop. However when I run monit status…
user3044440
  • 115
  • 9
0
votes
1 answer

Monitor shell script with monit

I have a shell script that spawns a java process that I'd like to wrap in a wrapper for use with monit. I've tried the monit recommendation of #!/bin/bash name=`basename $1` case $2 in start) echo $$ > /var/run/service.pid; exec…
devshorts
  • 8,572
  • 4
  • 50
  • 73
0
votes
1 answer

monit: failed to restart

I am using monit for sidekiq while I am running the monit log file, it is showing the error. [EDT Jun 18 09:50:11] error : 'sidekiq_site' process is not running [EDT Jun 18 09:50:11] info : 'sidekiq_site' trying to restart [EDT Jun 18…
Debadatt
  • 5,935
  • 4
  • 27
  • 40
0
votes
1 answer

Issues with supervisord and monit with gunicorn+gevent+pypy

I have a small rest api built in python using Falcon Framework and it runs in a virtual environment with gunicorn + gevent and pypy 2.3 (I successfully installed the pip packages from gevent@pypy-hacks and gevent-on-pypy/pypycore). I wanted to add a…
Roland Pish
  • 815
  • 1
  • 9
  • 21
0
votes
2 answers

Why isn't monit firing off git properly?

I have a monit service running. It checks to see if a file changed, then it fires off a script to make sure that file gets put into git: check file ncc_db with path /home/ootbdv/ncc_db/production.sqlite3 if changed checksum then exec…
Son of the Wai-Pan
  • 12,371
  • 16
  • 46
  • 55