Skip to content

Instantly share code, notes, and snippets.

@jacobwyke
Last active August 10, 2016 22:51
Show Gist options
  • Save jacobwyke/133f3af36bfdb703105fa2b396160888 to your computer and use it in GitHub Desktop.
Save jacobwyke/133f3af36bfdb703105fa2b396160888 to your computer and use it in GitHub Desktop.
Puppetserver Monit config file
#
# /etc/monit/conf.d/puppetserver
# Monit file for puppetserver
#
check process puppetserver with pidfile /var/run/puppetlabs/puppetserver/puppetserver.pid
start program "/usr/bin/service puppetserver start" with timeout 120 seconds
stop program "/usr/bin/service puppetserver stop" with timeout 120 seconds
if failed port 8140 with timeout 30 seconds and retry 3 times 3 times within 3 cycles then restart
if 5 restarts within 5 cycles then timeout
@jacobwyke
Copy link
Author

This allows plenty of time for the service to startup as it can be slow to get started as well as open the port.

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