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
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,10 @@ class DSCP32CountersCheck(sensu.AbstractCheck):
def refresh(sensu_params, services):
required_checks = [
DSCP32CountersCheck(sensu_params['dscp32-service-check'], s)
for s in services]
DSCP32CountersCheck(sensu_params["dscp32-service-check"], s)
for s in services
if s.get("vendor", "juniper") == "juniper"
]
return sensu.refresh(
sensu_params,
......
......@@ -80,7 +80,8 @@ GWS_INDIRECT_SCHEMA = {
'properties': {
# minimal validation for our purposes
'name': {'type': 'string'},
'hostname': {'type': 'string'}
'hostname': {'type': 'string'},
'vendor': {'type': 'string'},
},
'required': ['name', 'hostname']
}
......@@ -171,7 +172,7 @@ def load_gws_indirect_services(base_urls):
:return: an iterable of strings (service names)
"""
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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment