]> git.mxchange.org Git - jjobs-war.git/blob - monitor/README.txt
ca431b6d3ed3a7a5c7ea32f5a8a568ab67c0a7ae
[jjobs-war.git] / monitor / README.txt
1 How to use this monitoring scripts:
2 -----------------------------------
3
4 1) Copy .monitor-config.sh to ${HOME}/.monitor-jjobs-war-cron.sh
5    Please note that your clone path must be 'jjobs-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/jjobs-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.