brew install monit
mkdir -p /usr/local/etc/monit
/usr/local/etc/monit
and issue:svn co http://svn.grimore.org/configuration-templates/monit/macOS/templates
this will have the effect of creating a templates folder that you can update with svn update
when there are template updates.
monitrc
file in the same directory:svn export http://svn.grimore.org/configuration-templates/monit/macOS/monitrc --force .
and adjust as necessary.
/usr/local/etc/monit/monitrc
file to 0700
:chmod 0700 /usr/local/etc/monit/monitrc
and change the ownership to root
and group wheel
:
chown root:wheel /usr/local/etc/monit/monitrc
/usr/local/etc/monit/conf.d
:mkdir -p /usr/local/etc/monit/conf.d
/usr/local/etc/monit/templates/
into /usr/local/etc/monit/conf.d/
depending on what services you want running. For instance, to monitor Apache, you would issue:ln -sf /usr/local/etc/monit/templates/openvpn /usr/local/etc/monit/conf.d/
/Library/LaunchDaemons/
and checkout the plist files:svn export http://svn.grimore.org/configuration-templates/monit/macOS/launchd/ --force .
launchctl load -w /Library/LaunchDaemons/org.grimore.monit.plist launchctl load -w /Library/LaunchDaemons/org.grimore.monit.reload.plist