Skip to content

Commit

Permalink
* nginx: Dependencies on the init and binary added.
Browse files Browse the repository at this point in the history
  • Loading branch information
António P. P. Almeida committed Sep 13, 2010
1 parent 16481ea commit 4e4b1f5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions nginx
Expand Up @@ -10,4 +10,24 @@ check process nginx with pidfile /var/run/nginx.pid
if failed port 80 protocol http then restart
## If the restarts attempts fail then alert.
if 3 restarts within 5 cycles then timeout
depends on nginxd
depends on nginx_init
alert root@localhost only on {timeout}

## Test the nginx binary.
check file nginxd with path /usr/sbin/nginx
group webserver
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
alert root@localhost

## Test the init scripts.
check file nginx_init with path /etc/init.d/nginx
group webserver
if failed checksum then unmonitor
if failed permission 755 then unmonitor
if failed uid root then unmonitor
if failed gid root then unmonitor
alert root@localhost

0 comments on commit 4e4b1f5

Please sign in to comment.