Created
November 18, 2013 20:41
-
-
Save neilstuartcraig/7534942 to your computer and use it in GitHub Desktop.
A really, really basic monit (http://mmonit.com/) config script for newrelic sysmond process.
This is written for Debian 7 but probably will work on other *nix's
You simply need to place a file containing the below (suggest filename newrelic.conf) in your monit conf file include dir (/etc/monit/conf.d on Debian 7)
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 newrelic with pidfile /var/run/nrsysmond.pid | |
start program "/etc/init.d/newrelic-sysmond start" | |
start program "/etc/init.d/newrelic-sysmond stop" | |
if 10 restarts within 10 cycles then timeout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment