Skip to content

Instantly share code, notes, and snippets.

@codeprimate
Created July 1, 2013 17:53
Show Gist options
  • Save codeprimate/5903024 to your computer and use it in GitHub Desktop.
Save codeprimate/5903024 to your computer and use it in GitHub Desktop.
Monit DenyHosts configuration for Ubuntu
# Monit DenyHosts configuration for Ubuntu
check process denyhosts with pidfile /run/denyhosts.pid
start program = "/etc/init.d/denyhosts start"
stop program = "/etc/init.d/denyhosts stop"
if cpu > 90% for 2 cycles then alert
check file denyhosts.conf
with path /etc/denyhosts.conf
if changed checksum then alert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment