~frankban/charms/precise/juju-gui/guiserver-async-watcher

« back to all changes in this revision

Viewing changes to files/nrpe-external-master/check-app-access.sh

  • Committer: Francesco Banconi
  • Date: 2013-08-19 08:44:08 UTC
  • mfrom: (89.2.1 unstable)
  • Revision ID: francesco.banconi@canonical.com-20130819084408-br0gkerolwwoy61q
Merged trunk and bumped up revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
SITE_CONF='/etc/apache2/sites-enabled/juju-gui'
 
3
ADDRESS='https://127.0.0.1:443/juju-ui/version.js'
 
4
LIFE_SIGN='jujuGuiVersionInfo'
 
5
 
 
6
if [[ ! -f $SITE_CONF ]]; then
 
7
    echo Apache is not configured serve juju-gui.
 
8
    exit 2
 
9
fi
 
10
 
 
11
match=$(curl -k $ADDRESS | grep "$LIFE_SIGN")
 
12
 
 
13
if [[ -z $match ]]; then
 
14
    echo juju-gui did not return content indicating it was loading.
 
15
    exit 2
 
16
fi