|Source Repository:||Gentoo Portage Tree|
Summary: a utility for monitoring and managing daemons or similar programs running on a Unix system.
Newsletter, Volume 1Discussed: ati-drivers, GitHub integration, Funtoo on ARM, GNOME updates, Organizations, and two new devs.
New Media Mix-insFuntoo Linux now has new media mix-ins. Learn about them and how to use them.
The Many Builds of Funtoo LinuxWe now have lots of different builds of Funtoo Linux for various CPUs, as well as Hardened, Stable and ARM, and a new UI to browse them. Learn more here.
Monit is a utility for managing and monitoring processes, programs, files, directories and filesystems on a UNIX system.
To install Monit:
# emerge monit
Config file of monit resides in /etc/monitrc. And there is a item to specify a config directory. Uncomment if needed.
Users added to the monit or users group will be able to manipulate monit through the web interface.
# gpasswd -a $USER monit
# gpasswd -a $USER users
passwords can be streamed to monits web interface, disable it all together after it is setup
for security purposes change this entry
this is the preferred method to run monit
to start monit immediately after changing inittab
# telinit q
prefer inittab method over rc services
To start the service at boot.
# rc-update add monit default
To start the service immediately.
# /etc/init.d/monit start
This hourly cron script will check to make sure monit has not crashed. As this uses pgrep, make sure to not name it monit.
Monit relies upon pid files. For daemons that do not create a pidfile: a work around is needed.
Auto Restart Mysql
Navigate to http://localhost:2812/ & login using your edited configuration line or admin / monit if you have not changed it yet.