Skip to content

Instantly share code, notes, and snippets.

@mehulved
Created March 29, 2019 09:47
Show Gist options
  • Save mehulved/53c249ba3513916c1acd90183f6633e9 to your computer and use it in GitHub Desktop.
Save mehulved/53c249ba3513916c1acd90183f6633e9 to your computer and use it in GitHub Desktop.
#!/bin/bash
MONIT_VERSION=5.25.3
cd /tmp
sudo groupadd monit
sudo useradd monit -g monit
wget https://mmonit.com/monit/dist/binary/${MONIT_VERSION}/monit-${MONIT_VERSION}-linux-x64.tar.gz -O monit.tar.gz
echo "Untarring the archive"
tar xzvf monit.tar.gz
sudo cp -R monit-${MONIT_VERSION}/bin/monit /usr/local/bin/monit
sudo mkdir /etc/monit/
sudo cp -R monit-${MONIT_VERSION}/conf/monitrc /etc/monit/monitrc
sudo chown -R monit:monit /etc/monit/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment