diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-11-10 20:46:22 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-11-10 20:46:22 +0100 |
commit | a4684336edfc510e8e5b7a7752cd5c531ab6c26f (patch) | |
tree | 02e7c06cfb30f357dd91c89c9670119f326dd113 /templating/templating.py | |
parent | 200cf04d24927349c25c77363ffe4782df17fcbf (diff) |
Push all numerical snmp-data to graphite
Fixes #126
Diffstat (limited to 'templating/templating.py')
-rwxr-xr-x | templating/templating.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templating/templating.py b/templating/templating.py index 7b91806..340c54b 100755 --- a/templating/templating.py +++ b/templating/templating.py @@ -8,7 +8,7 @@ endpoints = "read/oplog read/snmp read/switches-management public/config public/ objects = dict() def getEndpoint(endpoint): - r = requests.get("http://gondul-front:/api/%s" % endpoint, auth=('demo','demo')) + r = requests.get("http://gondul-front:/api/%s" % endpoint) if (r.status_code != 200): raise Exception("Bad status code for endpoint %s: %s" % (endpoint, r.status_code)) return r.json() |