Overblog Tous les blogs Top blogs Beauté, Santé & Remise en forme Tous les blogs Beauté, Santé & Remise en forme
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU
http://ylqxij.over-blog.com/

ylqxij.over-blog.com/

Publicité

Monit Wiki



  1. Monit Wiki
  2. Monitor Definition

The Monit 'apache-status' protocol provides a way to monitor the internal performance of an Apache web server, and to take action early (i.e. While the server is still working) if something is going wrong. It does this through Apache's modstatus, which needs to be available to use these special Monit functions. Welcome to the Monit wiki! Use this wiki to submit tips and tricks, suggestions, examples and howtos. You can edit any page you want and we hope that you will contribute to this wiki. Activedock application launcher 1 15.

English • ‎русский • ‎中文(中国大陆)‎ • ‎日本語 • ‎한국어
Home
Open Hub

app-admin/monit is a utility for managing and monitoring processes, programs, files, directories and filesystems on a UNIX system.

  • 1Configuration
  • 3Debugging monit

Configuration

Installing monit

The app-admin/monit application has the following USE flags:

USE flags forapp-admin/monitMonitoring and managing daemons or similar programs running on a Unix system
ipv6 Add support for IP version 6
libressl Use dev-libs/libressl instead of dev-libs/openssl when applicable (see also the ssl useflag)
pam Add support for PAM (Pluggable Authentication Modules)DANGEROUS to arbitrarily flip
ssl Add support for SSL/TLS connections (Secure Socket Layer / Transport Layer Security)
Data provided by the Gentoo Package Database · Last update: 2020-06-30 07:21 More information about USE flags

Once the USE flags are properly determined, install app-admin/monit through emerge:

Monit configuration files

The Monit application uses /etc/monitrc as its configuration file.

To make adding and removing monitoring definitions easy, monit supports including files inside a specified directory (usually /etc/monit.d. To enable this, edit /etc/monitrc like so:

FILE/etc/monitrcAllowing flexible configuration entries

When a Monit related configuration file is altered, tell monit to reread its configuration settings: Djay pro 2 0 2 download free.

Automatically starting monit at boot

It is recommended to start monit through the /etc/inittab so that init itself launches the monit application, and will automatically relaunch it when monit would suddenly die. Starting monit through an init script would not provide this functionality.

FILE/etc/inittabAuto restart monit in case of failure

After updating /etc/inittab, monit can be immediately started through telinit q. How to download fortnite on windows.

User management

Metasequoia mmd. Users added to the monit or users group will be able to manipulate monit through its web interface.

Monit Wiki

To add users to one of these groups, use gpasswd:

root #gpasswd -a $USER users

Inside the /etc/monitrc file, the allow statement should refer to these groups, like so:

FILE/etc/monitrcGranting groups access to the web interface

It is also possible to hard-code usernames and passwords in the monitrc file, but this is not recommended. Check the monitrc file for default passwords and remove those, or alter them to use a strong, unique password. The syntax used then is allow :.

Monit web interface

The default location of the web interface is at localhost:2812, with admin as admin username and monit as default password. Make sure to change this!

Monitoring applications through monit

Monitor Definition

The Monit application uses PID file checks to see if an application is still running or not. That implies that a PID file must be available for an application, otherwise monit cannot guard it. If a daemon does not create a PID file, use a wrapper to create one.

Note
The use of PID files (and validating PIDs from tools like ps) for monitoring is often said to be broken[1]. Monit does try to overcome this weakness by checking the PID file frequently enough to be reliable.

Through using the /etc/monit.d/ location, it is easy to add in additional monitoring rules.

For instance, to automatically restart MySQL when it would die: High sierra can t install.

Another example is to manage the memory usage of a process and create an alert when it grows beyond a certain threshold:

FILE/etc/monit.d/squidCheck squid and alert on memory consumption bigger than 512 MByte

Debugging monit

Running monit in the foreground

To run monit in the foreground and provide feedback on everything it is detecting, use the -Ivv option:

External resources

For more information about Monit, the following resources can help out.

Monit Wiki

References

  1. Greg Wooledge. Process management, Retrieved on January 1st, 2015
Retrieved from 'https://wiki.gentoo.org/index.php?title=Monit&oldid=621038'




Publicité
Partager cet article
Repost0
Pour être informé des derniers articles, inscrivez vous :
Commenter cet article