Skip to content
Snippets Groups Projects
Commit b3d0f5c4 authored by Pelle Koster's avatar Pelle Koster
Browse files

snmp polling of gws_indirect counters only for juniper

parent 803126fc
Branches
Tags
No related merge requests found
...@@ -40,8 +40,10 @@ class DSCP32CountersCheck(sensu.AbstractCheck): ...@@ -40,8 +40,10 @@ class DSCP32CountersCheck(sensu.AbstractCheck):
def refresh(sensu_params, services): def refresh(sensu_params, services):
required_checks = [ required_checks = [
DSCP32CountersCheck(sensu_params['dscp32-service-check'], s) DSCP32CountersCheck(sensu_params["dscp32-service-check"], s)
for s in services] for s in services
if s.get("vendor", "juniper") == "juniper"
]
return sensu.refresh( return sensu.refresh(
sensu_params, sensu_params,
......
...@@ -80,7 +80,8 @@ GWS_INDIRECT_SCHEMA = { ...@@ -80,7 +80,8 @@ GWS_INDIRECT_SCHEMA = {
'properties': { 'properties': {
# minimal validation for our purposes # minimal validation for our purposes
'name': {'type': 'string'}, 'name': {'type': 'string'},
'hostname': {'type': 'string'} 'hostname': {'type': 'string'},
'vendor': {'type': 'string'},
}, },
'required': ['name', 'hostname'] 'required': ['name', 'hostname']
} }
...@@ -171,7 +172,7 @@ def load_gws_indirect_services(base_urls): ...@@ -171,7 +172,7 @@ def load_gws_indirect_services(base_urls):
:return: an iterable of strings (service names) :return: an iterable of strings (service names)
""" """
return load_inventory_json( return load_inventory_json(
'poller/gws/indirect', base_urls, GWS_INDIRECT_SCHEMA) 'poller/gws/indirect?vendor=1&ip_filter=1', base_urls, GWS_INDIRECT_SCHEMA)
def load_eumetsat_multicast_subscriptions(base_urls): def load_eumetsat_multicast_subscriptions(base_urls):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment