Editing Monit

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
[[wikipedia:Monit|Monit]] is a free, open-source process supervision tool for Unix and Linux. Monit can restart a process automatically if process dies or monitor [[process]] characteristics, such as memory or cpu cycles and alert or execute and action. Monit only support [[alert messages]] by email<ref>https://mmonit.com/monit/documentation/monit.html#ALERT-MESSAGES</ref>.
+
[[wikipedia:Monit|Monit]] is a free, open-source process supervision tool for Unix and Linux. Monit can restart a process automatically if process dies or monitor process characteristics, such as memory or cpu cycles and alert or execute and action. Monit only support alert messages by emailt<ref>https://mmonit.com/monit/documentation/monit.html#ALERT-MESSAGES</ref>.
Monit support monitoring [[cpu]], [[memory]], [[swap]] usage and [[loadavg]] among others.
 
  
  
== Installation ==
+
* Config file: <code>/etc/monit/monitrc</code> (<code>monit -t</code>) to verify configuration file
* Installation [[macOS]]: <code>brew install monit</code>
+
::<code>set daemon 120</code> By default configured to check services every 120 seconds.
* Linux: <code>[[apt install monit]]</code>
+
* Logs: <code>/var/log/monit.log</code>
* Access: http://localhost:2812/  (admin/monit)
+
* Command: <code>monit status</code>
 
+
* Restart Monit service: <code>systemctl restart monit.service</code>
 
 
 
 
* Config file: <code>[[/etc/monit/monitrc]]</code> (<code>[[monit -t]]</code>) to verify configuration file
 
::<code>set daemon 120</code> By default configured to check services every 120 seconds
 
:: Review examples: https://mmonit.com/wiki/Monit/ConfigurationExamples
 
* Logs: <code>/var/log/[[monit.log]]</code>
 
* Command: <code>[[monit status]]</code>
 
* Restart Monit service: <code>systemctl restart monit.service && systemctl status monit</code>
 
 
 
 
 
== Example ==
 
<code>[[/etc/monit/monitrc]]</code>
 
#  check system $HOST
 
#    if [[loadavg]] (1min) per core > 2 for 5 cycles then alert
 
#    if loadavg (5min) per core > 1.5 for 10 cycles then alert
 
#    if cpu usage > 95% for 10 cycles then alert
 
#    if memory usage > 75% then alert
 
#    if [[swap]] usage > 25% then alert
 
 
 
== Related commands ==
 
* <code>[[logcheck]]</code>
 
* <code>[[glances]]</code>
 
  
 
== See also ==
 
== See also ==
* {{monit}}
 
 
* {{Monitoring software}}
 
* {{Monitoring software}}
* {{monitoring}}
 
  
  

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: