Skip to content

Instantly share code, notes, and snippets.

@valguss
Created November 17, 2010 11:18
Show Gist options
  • Select an option

  • Save valguss/703282 to your computer and use it in GitHub Desktop.

Select an option

Save valguss/703282 to your computer and use it in GitHub Desktop.
check process denyhosts with pidfile /var/lock/subsys/denyhosts
group denyhosts
start program = "/etc/init.d/denyhosts start"
stop program = "/etc/init.d/denyhosts stop"
depends on denyhosts_rc
depends on denyhosts_bin
check file denyhosts_rc with path /etc/init.d/denyhosts
group denyhosts
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
check file denyhosts_bin with path "/usr/bin/denyhosts.py"
group denyhosts
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
check file denyhosts.conf with path "/etc/denyhosts.conf"
group denyhosts
if changed checksum then alert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment