Last active
January 18, 2016 05:56
-
-
Save lorentzca/2ea786fc774abbba9f4a to your computer and use it in GitHub Desktop.
install monit (centos)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process consul | |
with pidfile "/var/run/consul.pid" | |
start program "/etc/init.d/consul start" | |
stop program "/etc/init.d/consul stop" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check process dnsmasq | |
with pidfile "/var/run/dnsmasq.pid" | |
start program "/etc/init.d/dnsmasq start" | |
stop program "/etc/init.d/dnsmasq stop" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo yum -y install epel-release | |
sudo yum -y --enablerepo=epel install monit | |
sudo /sbin/chkconfig monit on |
Author
lorentzca
commented
Jan 14, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment