How to use this monitoring scripts: ----------------------------------- 1) Copy .monitor-config.sh to ${HOME}/.monitor-addressbook-war-cron.sh Please note that your clone path must be 'addressbook-war' then. 2) Execute "crontab -e" as same user 3) Add line such as: PATH="/bla/foo/bin:/bar/bin" SHELL="/bin/bash" */10 * * * * cd ${HOME}/checkouts/addressbook-war/monitor/ && ./monitor-cron.sh Please make sure PATH and SHELL are set (maybe prevents some problems). 4) Save the file and let it install it. 5) You are done. Now every 10 minutes the connection to your glassfish is tested by a HEAD request. Please don't set it to high as this may cause huge load on your server even when it is only a HEAD request.