~hloeung/ubuntu-repository-cache/logging-ubuntu_active-plus-keeps

« back to all changes in this revision

Viewing changes to lib/ubuntu_repository_cache/squid.py

  • Committer: Robert Jennings
  • Date: 2015-02-23 21:51:04 UTC
  • Revision ID: robert.jennings@canonical.com-20150223215104-09qd8mafz1pdg594
Add nrpe support

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
    templating.render('{}/allowed-networks-src.conf'.format(SERVICE),
177
177
                      '/etc/{}/allowed-networks-src.acl'.format(SERVICE),
178
178
                      peer_context)
 
179
 
 
180
 
 
181
def update_checks(nrpe_config):
 
182
    ''''Update Nagios checks for squid serving archive pool content'''
 
183
 
 
184
    nrpe_config.add_check(
 
185
        shortname='squid',
 
186
        description='squid serving archive pool',
 
187
        check_cmd='check_http --hostname localhost --url "/ubuntu/pool/" '
 
188
                  '--string "main/" --expect \"200 OK\"',
 
189
        )