Installing on MacOS (OSX)

  • Install monit using Homebrew (or macports):
brew install monit
  • Create a directory for monit:
mkdir -p /usr/local/etc/monit
  • Change directory to /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.

  • Checkout the monitrc file in the same directory:
svn export http://svn.grimore.org/configuration-templates/monit/macOS/monitrc --force .

and adjust as necessary.

  • Change permission of the /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
  • Create the directory /usr/local/etc/monit/conf.d:
mkdir -p /usr/local/etc/monit/conf.d
  • Create links from template files from /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/
  • Change directory to /Library/LaunchDaemons/ and checkout the plist files:
svn export http://svn.grimore.org/configuration-templates/monit/macOS/launchd/ --force .
  • Load the launchd files to start monit:
launchctl load -w /Library/LaunchDaemons/org.grimore.monit.plist
launchctl load -w /Library/LaunchDaemons/org.grimore.monit.reload.plist

Index


unix/monit/macos.txt ยท Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.