Skip to content

Instantly share code, notes, and snippets.

@neilstuartcraig
Created November 18, 2013 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilstuartcraig/7534942 to your computer and use it in GitHub Desktop.
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)
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