~jose/charms/precise/juju-gui/add-blank-defaults

« back to all changes in this revision

Viewing changes to scripts/update-nrpe.py

  • Committer: Nicola Larosa
  • Date: 2013-07-31 15:45:55 UTC
  • mto: (60.27.1 integrate-builtin-server-2)
  • mto: This revision was merged to the branch mainline in revision 75.
  • Revision ID: nicola.larosa@canonical.com-20130731154555-aekmw8ur2dxutawi
Fix and add tests.

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()