From d302e9ac7a96bf958fecdd0b6c2b815cf9407734 Mon Sep 17 00:00:00 2001 From: Jeff Bryner Date: Tue, 29 Dec 2015 11:53:04 -0800 Subject: [PATCH] update cymon.io plugin, closes #322 --- meteor/app/client/ipintel.html | 2 +- rest/plugins/cymon.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meteor/app/client/ipintel.html b/meteor/app/client/ipintel.html index fdcda9d5..bb011a53 100644 --- a/meteor/app/client/ipintel.html +++ b/meteor/app/client/ipintel.html @@ -53,7 +53,7 @@ modal: for Session.set('ipintelipaddress','1,2.3.4') then intel: {{intel.status}} {{intel.error}} - {{#if isEqual intel.data.status 200}} + {{#if isEqual intel.result.statusCode 200}}
{{ stringify intel.data }}
diff --git a/rest/plugins/cymon.py b/rest/plugins/cymon.py index 94c782e7..cf314363 100644 --- a/rest/plugins/cymon.py +++ b/rest/plugins/cymon.py @@ -64,7 +64,7 @@ class message(object): print(requestDict, requestDict.keys()) if 'ipaddress' in requestDict.keys(): - url="https://cymon.io/api/nexus/v1/ip/{0}/timeline?combined=true&format=json".format(requestDict['ipaddress']) + url="https://cymon.io/api/nexus/v1/ip/{0}/events?combined=true&format=json".format(requestDict['ipaddress']) # add the cymon api key? if self.options is not None: @@ -77,6 +77,7 @@ class message(object): if dresponse.status_code == 200: response.content_type = "application/json" response.body = dresponse.content + response.status=200 else: response.status = dresponse.status_code