Talk:Monit

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using ~~~~:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 10:11, 18 July 2024 (UTC)
:: Your reply ~~~~

groups

Talk status
This discussion is done.

note that by default monit accepts connections from users in the group monit or users for locked down configurations.

root #gpasswd -a $USER monit
root #gpasswd -a $USER users

666threesixes666 (talk) 01:30, 19 February 2014 (UTC)

Thanks. No need to open a discussion about this. --Maffblaster (talk) 08:57, 11 January 2017 (UTC)

auto restart

Talk status
This discussion is done.

monit needs a section dedicated to just ensuring processes are running at all times. digging into this leads to the problem of monit not monitoring processes. to make monit monitor processes.

root #monit monitor mysql

666threesixes666 (talk) 01:30, 19 February 2014 (UTC)

Feel free to write it. --Maffblaster (talk) 08:58, 11 January 2017 (UTC)

misleading examples

Talk status
This discussion is still ongoing.

monit can not execute direct bash commands.

FILE /etc/monitrcknown working mysql auto restart config
check process mysql with pidfile /var/run/mysqld/mysqld.pid
    start program = "/bin/bash -c 'rc-service mysql start'"
    stop program  = "/bin/bash -c 'rc-service mysql stop'"
    group mysql
    if failed host localhost port 3306 protocol mysql then restart

666threesixes666 (talk) 01:52, 19 February 2014 (UTC)

init replacement

Talk status
This discussion is done.

http://mmonit.com/wiki/Monit/FAQ#init

aparently monit can run from init

No need to open a discussion about this. --Maffblaster (talk) 08:57, 11 January 2017 (UTC)