]> git.mxchange.org Git - addressbook-war.git/blob - monitor/README.txt
Please cherry-pick:
[addressbook-war.git] / monitor / README.txt
1 How to use this monitoring scripts:
2 -----------------------------------
3
4 1) Copy .monitor-config.sh to ${HOME}/.monitor-addressbook-war-cron.sh
5    Please note that your clone path must be 'addressbook-war' then.
6
7 2) Execute "crontab -e" as same user
8
9 3) Add line such as:
10
11 PATH="/bla/foo/bin:/bar/bin"
12 SHELL="/bin/bash"
13
14 */10 * * * * cd ${HOME}/checkouts/addressbook-war/monitor/ && ./monitor-cron.sh
15
16 Please make sure PATH and SHELL are set (maybe prevents some problems).
17
18 4) Save the file and let it install it.
19
20 5) You are done.
21
22 Now every 10 minutes the connection to your glassfish is tested by a HEAD
23 request. Please don't set it to high as this may cause huge load on your server
24 even when it is only a HEAD request.