Talk:Monit

From Gentoo Wiki
Jump to: navigation, search
Note
This is a talk page. Please add newer comments below older ones, and sign your comments using four tildes (~~~~). When adding a new section (at the bottom of the page), please mark it as "open for discussion" by using {{talk|open}} so it will show up in the list of open discussions.

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)