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

« back to all changes in this revision

Viewing changes to scripts/update-nrpe.py

  • 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
#!/usr/bin/env python
 
2
from charmsupport import nrpe
 
3
 
 
4
 
 
5
def update_nrpe_config():
 
6
    nrpe_compat = nrpe.NRPE()
 
7
    nrpe_compat.add_check(
 
8
        'App is accessible', 'Check the app can be downloaded',
 
9
        'check-app-access.sh')
 
10
    nrpe_compat.write()
 
11
 
 
12
 
 
13
if __name__ == '__main__':
 
14
    update_nrpe_config()