From e684698ad17c30e0194a49bf25d073e726e238ac Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Wed, 16 Jun 2021 09:22:28 +0200 Subject: [PATCH] added gws direct checks to mocked sensu data --- test/data/checks.json | 91 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/test/data/checks.json b/test/data/checks.json index 6ff1cee..5e0232b 100644 --- a/test/data/checks.json +++ b/test/data/checks.json @@ -1,4 +1,95 @@ [ + { + "command": "/var/lib/sensu/bin/poll-gws-direct.sh gwsd_counters ARNES Cogent 88.200.0.63 a", + "handlers": [], + "high_flap_threshold": 0, + "interval": 300, + "low_flap_threshold": 0, + "publish": true, + "runtime_assets": null, + "subscriptions": [ + "interfacecounters" + ], + "proxy_entity_name": "88.200.0.63", + "check_hooks": null, + "stdin": false, + "subdue": null, + "ttl": 0, + "timeout": 0, + "round_robin": true, + "output_metric_format": "influxdb_line", + "output_metric_handlers": [ + "influx-db-handler" + ], + "env_vars": null, + "metadata": { + "name": "gwsd-06D560CF", + "namespace": "default", + "created_by": "admin" + }, + "secrets": null + }, + { + "command": "/var/lib/sensu/bin/poll-gws-direct.sh gwsd_counters ARNES Cogent 88.200.0.63 x-to-be-deleted", + "handlers": [], + "high_flap_threshold": 0, + "interval": 300, + "low_flap_threshold": 0, + "publish": true, + "runtime_assets": null, + "subscriptions": [ + "interfacecounters" + ], + "proxy_entity_name": "88.200.0.63", + "check_hooks": null, + "stdin": false, + "subdue": null, + "ttl": 0, + "timeout": 0, + "round_robin": true, + "output_metric_format": "influxdb_line", + "output_metric_handlers": [ + "influx-db-handler" + ], + "env_vars": null, + "metadata": { + "name": "gwsd-AAAAA", + "namespace": "default", + "created_by": "admin" + }, + "secrets": null + }, + + { + "command": "/var/lib/sensu/bin/poll-gws-direct.sh gwsd_counters ARNES Cogent 88.200.0.63 to-be-updated", + "handlers": [], + "high_flap_threshold": 0, + "interval": 300, + "low_flap_threshold": 0, + "publish": true, + "runtime_assets": null, + "subscriptions": [ + "interfacecounters" + ], + "proxy_entity_name": "88.200.0.63", + "check_hooks": null, + "stdin": false, + "subdue": null, + "ttl": 0, + "timeout": 0, + "round_robin": true, + "output_metric_format": "influxdb_line", + "output_metric_handlers": [ + "influx-db-handler" + ], + "env_vars": null, + "metadata": { + "name": "gwsd-0B3898D4", + "namespace": "default", + "created_by": "admin" + }, + "secrets": null + }, { "command": "/var/lib/sensu/bin/counter2influx.sh counters 0pBiFbD mx1.ams.nl.geant.net ae1 1211", "handlers": [], -- GitLab