This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
Talk:Monit
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
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
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
monit can not execute direct bash commands.
/etc/monitrc
known working mysql auto restart configcheck 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
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)