Skip to content
Snippets Groups Projects
Commit 5fd219af authored by Erik Reid's avatar Erik Reid
Browse files

pep8

parent e684698a
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,9 @@ class InterfaceCheck(sensu.AbstractCheck): ...@@ -33,7 +33,9 @@ class InterfaceCheck(sensu.AbstractCheck):
return self.ifc_check_params['command'].format( return self.ifc_check_params['command'].format(
script=self.ifc_check_params['script'], script=self.ifc_check_params['script'],
measurement=self.ifc_check_params['measurement'], measurement=self.ifc_check_params['measurement'],
community='0pBiFbD', # TODO: add this to /poller/interfaces response # TODO: add community string to /poller/interfaces response
# (cf. POL1-339)
community='0pBiFbD',
hostname=self.interface['router'], hostname=self.interface['router'],
interface=self.interface['name'], interface=self.interface['name'],
ifIndex=self.interface['snmp-index']) ifIndex=self.interface['snmp-index'])
......
...@@ -43,7 +43,8 @@ def config(): ...@@ -43,7 +43,8 @@ def config():
'gws-direct-interface-check': { 'gws-direct-interface-check': {
'script': '/var/lib/sensu/bin/poll-gws-direct.sh', 'script': '/var/lib/sensu/bin/poll-gws-direct.sh',
'measurement': 'gwsd_counters', 'measurement': 'gwsd_counters',
'command': '{script} {measurement} {nren} {isp} {hostname} {tag}' 'command': ('{script} {measurement} '
'{nren} {isp} {hostname} {tag}')
} }
}, },
'statedir': state_dir_name, 'statedir': state_dir_name,
......
...@@ -120,4 +120,3 @@ def test_checks_differ(): ...@@ -120,4 +120,3 @@ def test_checks_differ():
b = DummyCheck(name='x', command='x', proxy_entity_name='x') b = DummyCheck(name='x', command='x', proxy_entity_name='x')
a.namespace = a.namespace + 'x' a.namespace = a.namespace + 'x'
assert not sensu.checks_match(a.to_dict(), b.to_dict()) assert not sensu.checks_match(a.to_dict(), b.to_dict())
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment