Skip to content

Instantly share code, notes, and snippets.

@lorentzca
Last active January 18, 2016 05:56
Show Gist options
  • Save lorentzca/2ea786fc774abbba9f4a to your computer and use it in GitHub Desktop.
Save lorentzca/2ea786fc774abbba9f4a to your computer and use it in GitHub Desktop.
install monit (centos)
check process consul
with pidfile "/var/run/consul.pid"
start program "/etc/init.d/consul start"
stop program "/etc/init.d/consul stop"
check process dnsmasq
with pidfile "/var/run/dnsmasq.pid"
start program "/etc/init.d/dnsmasq start"
stop program "/etc/init.d/dnsmasq stop"
#!/bin/sh
sudo yum -y install epel-release
sudo yum -y --enablerepo=epel install monit
sudo /sbin/chkconfig monit on
@lorentzca
Copy link
Author

curl -L https://gist.github.com/Lorentzca/2ea786fc774abbba9f4a/raw/install_monit.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment