DragonBoard IoT - DragonPulse

Hi There,

I am trying to get the DragonBoard IoT Starter Kit - DragonPulse.

The installation is working well except for some WARNING messages (see the attachment after signature).

$ sudo npm start

aws-iot-thing-sdk-dragonpulse-js@1.0.0 start /home/linaro/Documents/arrow/aws-iot-dragonpulse-js/DragonBoard
node src/app.js
running general information task
{“thingId”:“cd3e31f100874f99951fd25fc7e14b68”,“timestamp”:1465304156389,“deviceType”:“DragonBoard”,“os”:“linux”,“osVariant”:“Debian”,“osVersion”:“8.4”,“build”:“4.4.8-linaro-lt-qcom”,“architecture”:“aarch64”}
aws queue connected.
writing to things/cd3e31f100874f99951fd25fc7e14b68/monitor/general
published
scheduled disk job
running disk utilization task
scheduled network job
running network command
scheduled process job
running process command for linux
events.js:141
throw er; // Unhandled ‘error’ event
^

Error: spawn iftop ENOENT
at exports._errnoException (util.js:874:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)

npm ERR! aws-iot-thing-sdk-dragonpulse-js@1.0.0 start: node src/app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the aws-iot-thing-sdk-dragonpulse-js@1.0.0 start script.
npm ERR! This is most likely a problem with the aws-iot-thing-sdk-dragonpulse-js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node src/app.js
npm ERR! You can get their info via:
npm ERR! npm owner ls aws-iot-thing-sdk-dragonpulse-js
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.4.8-linaro-lt-qcom
npm ERR! command “/usr/bin/nodejs” “/usr/bin/npm” “start”
npm ERR! cwd /home/linaro/Documents/arrow/aws-iot-dragonpulse-js/DragonBoard
npm ERR! node -v v4.2.2
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary “node”
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/linaro/Documents/arrow/aws-iot-dragonpulse-js/DragonBoard/npm-debug.log
npm ERR! not ok code 0

Please help me to resolve the issue.

Regards, Henry

Following is the installation log.

linaro@linaro-alip:~/projects/arrow/aws-iot-dragonpulse-js/scripts$ ls
setup.sh uninstall.sh
linaro@linaro-alip:~/projects/arrow/aws-iot-dragonpulse-js/scripts$ ./setup.sh
################################################

Welcome to Arrow’s DragonPulse for Amazon AWS

This script will setup and provision your DragonPulse

################################################
DragonPulse should exist at /home/linaro/Documents/arrow/aws-iot-dragonpulse-js
Amazon AWS Account Number:
xxxxxxxxxxxxxx

Using us-east-1 as AWS Region

Enter a Stage (Default is dev, Typical Stages are prod,test,qa):
dev

Using dev as API Stage

Enter a S3 Identifier (Default with be a random hash. Typical Identifiers can be something like Your Username):
exteliotnodejs

Using exteliotnodejs as S3 Identifier

**Creating Config for Arrow and AWS…
**Creating Amazon IAM and IoT Elements…
dragonpulse-config@0.1.0 node_modules/dragonpulse-config
home-dir@1.0.0 node_modules/home-dir

randomr@2.3.0 node_modules/randomr

commander@2.9.0 node_modules/commander
└── graceful-readlink@1.0.1

bluebird@3.2.2 node_modules/bluebird

mkdirp@0.5.1 node_modules/mkdirp
└── minimist@0.0.8

rimraf@2.5.2 node_modules/rimraf
└── glob@7.0.3 (path-is-absolute@1.0.0, inherits@2.0.1, once@1.3.3, inflight@1.0.5, minimatch@3.0.0)

aws-sdk@2.3.17 node_modules/aws-sdk
├── sax@1.1.5
├── xml2js@0.4.15
├── jmespath@0.15.0
└── xmlbuilder@2.6.2 (lodash@3.5.0)
Creating role DragonPulse-ApiGateway
Creating role DragonPulse-IoT
Creating role DragonPulse-Lambda
Creating IoT Policy of DragonPulse
Creating IoT Topic Rule of DragonPulseMonitorDisk
Creating IoT Topic Rule of DragonPulseMonitorGeneral
Creating IoT Topic Rule of DragonPulseMonitorNetwork
Creating IoT Topic Rule of DragonPulseMonitorProcess
Setting the IoT logging options
Creating table DragonPulse-monitorDisk
Creating table DragonPulse-monitorGeneral
Creating table DragonPulse-monitorNetwork
Creating table DragonPulse-monitorProcess
***Modifying Amazon lambda functions…
npm WARN package.json dragonpulse-lambda@0.1.0 No README data
dragonpulse-config@0.1.0 node_modules/dragonpulse-config
/usr/local/bin/grunt → /usr/local/lib/node_modules/grunt-cli/bin/grunt
grunt-cli@1.2.0 /usr/local/lib/node_modules/grunt-cli
├── grunt-known-options@1.1.0
├── nopt@3.0.6 (abbrev@1.0.7)
├── findup-sync@0.3.0 (glob@5.0.15)
└── resolve@1.1.7
npm WARN package.json dragonpulse-lambda@0.1.0 No README data
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use ‘npm ls graceful-fs’ to find it in the tree.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN optional dep failed, continuing fsevents@1.0.12

dtrace-provider@0.6.0 install /home/linaro/Documents/arrow/aws-iot-dragonpulse-js/lambda/node_modules/bunyan/node_modules/dtrace-provider
node scripts/install.js
chai-as-promised@5.3.0 node_modules/chai-as-promised

sinon-chai@2.8.0 node_modules/sinon-chai

grunt-mkdir@0.1.3 node_modules/grunt-mkdir

randomr@2.3.0 node_modules/randomr

bunyan-cloudwatch@1.1.1 node_modules/bunyan-cloudwatch

jsonschema@1.1.0 node_modules/jsonschema

uuid@2.0.2 node_modules/uuid

dynamodb-doc@1.0.0 node_modules/dynamodb-doc

deepcopy@0.5.0 node_modules/deepcopy

bluebird@3.4.0 node_modules/bluebird

grunt-mocha-test@0.12.7 node_modules/grunt-mocha-test
├── hooker@0.2.3
└── mkdirp@0.5.1 (minimist@0.0.8)

jshint-stylish@2.2.0 node_modules/jshint-stylish
├── log-symbols@1.0.2
├── beeper@1.1.0
├── text-table@0.2.0
├── plur@2.1.2 (irregular-plurals@1.1.0)
├── string-length@1.0.1 (strip-ansi@3.0.1)
└── chalk@1.1.3 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-styles@2.2.1, strip-ansi@3.0.1, has-ansi@2.0.0)

chai@3.5.0 node_modules/chai
├── assertion-error@1.0.2
├── type-detect@1.0.0
└── deep-eql@0.1.3 (type-detect@0.1.1)

grunt-contrib-clean@0.7.0 node_modules/grunt-contrib-clean
└── rimraf@2.5.2 (glob@7.0.3)

sinon@1.17.4 node_modules/sinon
├── formatio@1.1.1
├── samsam@1.1.2
├── lolex@1.3.2
└── util@0.10.3 (inherits@2.0.1)

bulk-require@0.2.1 node_modules/bulk-require
└── glob@3.2.11 (inherits@2.0.1, minimatch@0.3.0)

grunt@0.4.5 node_modules/grunt
├── eventemitter2@0.4.14
├── dateformat@1.0.2-1.2.3
├── which@1.0.9
├── lodash@0.9.2
├── async@0.1.22
├── colors@0.6.2
├── getobject@0.1.0
├── rimraf@2.2.8
├── grunt-legacy-util@0.2.0
├── exit@0.1.2
├── iconv-lite@0.2.11
├── coffee-script@1.3.3
├── nopt@1.0.10 (abbrev@1.0.7)
├── hooker@0.2.3
├── underscore.string@2.2.1
├── minimatch@0.2.14 (sigmund@1.0.1, lru-cache@2.7.3)
├── glob@3.1.21 (inherits@1.0.2, graceful-fs@1.2.3)
├── grunt-legacy-log@0.1.3 (grunt-legacy-log-utils@0.1.1, lodash@2.4.2, underscore.string@2.3.3)
├── findup-sync@0.1.3 (lodash@2.4.2, glob@3.2.11)
└── js-yaml@2.0.5 (esprima@1.0.4, argparse@0.1.16)

mocha@2.5.3 node_modules/mocha
├── commander@2.3.0
├── escape-string-regexp@1.0.2
├── diff@1.4.0
├── supports-color@1.2.0
├── growl@1.9.2
├── to-iso-string@0.0.2
├── debug@2.2.0 (ms@0.7.1)
├── mkdirp@0.5.1 (minimist@0.0.8)
├── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0)
└── glob@3.2.11 (inherits@2.0.1, minimatch@0.3.0)

grunt-zip@0.17.1 node_modules/grunt-zip
├── grunt-retro@0.6.4
└── jszip@2.5.0 (pako@0.2.8)

bulkify@1.2.0 node_modules/bulkify
├── through2@0.4.2 (xtend@2.1.2, readable-stream@1.0.34)
└── static-module@1.3.1 (shallow-copy@0.0.1, object-inspect@0.4.0, has@1.0.1, quote-stream@0.0.0, readable-stream@1.0.34, duplexer2@0.0.2, static-eval@0.2.4, concat-stream@1.4.10, falafel@1.2.0, escodegen@1.3.3)

bunyan@1.8.1 node_modules/bunyan
├── safe-json-stringify@1.0.3
├── mv@2.1.1 (ncp@2.0.0, mkdirp@0.5.1, rimraf@2.4.5)
├── dtrace-provider@0.6.0 (nan@2.3.5)
└── moment@2.13.0

grunt-contrib-jshint@0.11.3 node_modules/grunt-contrib-jshint
├── hooker@0.2.3
└── jshint@2.8.0 (strip-json-comments@1.0.4, exit@0.1.2, console-browserify@1.1.0, shelljs@0.3.0, minimatch@2.0.10, cli@0.6.6, htmlparser2@3.8.3, lodash@3.7.0)

aws-sdk@2.3.17 node_modules/aws-sdk
├── sax@1.1.5
├── xml2js@0.4.15
├── jmespath@0.15.0
└── xmlbuilder@2.6.2 (lodash@3.5.0)

load-grunt-config@0.19.2 node_modules/load-grunt-config
├── jit-grunt@0.10.0
├── glob@5.0.15 (path-is-absolute@1.0.0, inherits@2.0.1, once@1.3.3, inflight@1.0.5, minimatch@3.0.0)
├── load-grunt-tasks@3.3.0 (arrify@1.0.1, pkg-up@1.0.0, multimatch@2.1.0)
├── js-yaml@3.4.6 (esprima@2.7.2, inherit@2.2.3, argparse@1.0.7)
├── cson@3.0.2 (cson-parser@1.3.3, coffee-script@1.10.0, requirefresh@2.1.0, extract-opts@3.3.1, safefs@4.1.0)
└── lodash@3.10.1

grunt-browserify@4.0.1 node_modules/grunt-browserify
├── async@0.9.2
├── glob@5.0.15 (path-is-absolute@1.0.0, inherits@2.0.1, once@1.3.3, inflight@1.0.5, minimatch@3.0.0)
├── resolve@1.1.7
├── lodash@3.10.1
├── browserify@11.2.0 (browser-resolve@1.11.2, https-browserify@0.0.1, tty-browserify@0.0.0, constants-browserify@0.0.1, path-browserify@0.0.0, punycode@1.4.1, builtins@0.0.7, string_decoder@0.10.31, isarray@0.0.1, os-browserify@0.1.2, inherits@2.0.1, htmlescape@1.1.1, process@0.11.3, commondir@0.0.1, stream-browserify@2.0.1, shell-quote@0.0.1, assert@1.3.0, defined@1.0.0, domain-browser@1.1.7, xtend@4.0.1, querystring-es3@0.2.1, timers-browserify@1.4.2, deps-sort@1.3.9, util@0.10.3, parents@1.0.1, events@1.0.2, vm-browserify@0.0.4, has@1.0.1, url@0.10.3, console-browserify@1.1.0, readable-stream@2.1.4, subarg@1.0.0, shasum@1.0.2, through2@1.1.1, buffer@3.6.0, stream-http@1.7.1, glob@4.5.3, concat-stream@1.4.10, JSONStream@1.1.1, browserify-zlib@0.1.4, syntax-error@1.1.6, read-only-stream@1.1.1, duplexer2@0.0.2, browser-pack@5.0.1, labeled-stream-splicer@1.0.2, insert-module-globals@6.6.3, crypto-browserify@3.11.0, module-deps@3.9.1)
└── watchify@3.7.0 (defined@1.0.0, xtend@4.0.1, through2@2.0.1, outpipe@1.1.1, chokidar@1.5.1, anymatch@1.3.0, browserify@13.0.1)

grunt-contrib-uglify@0.11.1 node_modules/grunt-contrib-uglify
├── uri-path@1.0.0
├── maxmin@2.1.0 (figures@1.7.0, pretty-bytes@3.0.1, gzip-size@3.0.0)
├── chalk@1.1.3 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-styles@2.2.1, strip-ansi@3.0.1, has-ansi@2.0.0)
├── uglify-js@2.6.2 (async@0.2.10, uglify-to-browserify@1.0.2, source-map@0.5.6, yargs@3.10.0)
└── lodash@4.13.1
Running “create:monitor” (create) task

Running “pkg:monitor” (pkg) task

Running “mkdir:package” (mkdir) task
Creating “dist”…OK

Running “browserify:monitor” (browserify) task

Bundle dist/monitor/monitor.bundled.js created.
Running “uglify:monitor” (uglify) task

1 file created.
Running “zip:monitor” (zip) task
File “dist/monitor/monitor.zip” created.

Running “createMultiTask:monitor” (createMultiTask) task
Creating lambda function DragonPulse-monitor
Permission for resource monitor was added for SourceArn arn:aws:iot:us-east-1:770582406804:rule/DragonPulseMonitorDisk
Permission for resource monitor was added for SourceArn arn:aws:iot:us-east-1:770582406804:rule/DragonPulseMonitorGeneral
Permission for resource monitor was added for SourceArn arn:aws:iot:us-east-1:770582406804:rule/DragonPulseMonitorNetwork
Permission for resource monitor was added for SourceArn arn:aws:iot:us-east-1:770582406804:rule/DragonPulseMonitorProcess

Running “create:things” (create) task

Running “pkg:things” (pkg) task

Running “mkdir:package” (mkdir) task
Creating “dist”…OK

Running “browserify:things” (browserify) task

Bundle dist/things/things.bundled.js created.
Running “uglify:things” (uglify) task

1 file created.
Running “zip:things” (zip) task
File “dist/things/things.zip” created.

Running “createMultiTask:things” (createMultiTask) task
Creating lambda function DragonPulse-things

Done, without errors.
***Configuring Amazon API gateway…

Detected 1bc8 as API Gateway Extension

Picked up JAVA_TOOL_OPTIONS: -Dgnu.io.rxtx.SerialPorts=/dev/tty96B0
2016-06-07 10:14:18,090 INFO - Using API Gateway endpoint https://apigateway.us-east-1.amazonaws.com
2016-06-07 10:14:27,338 INFO - Attempting to create API from Swagger definition. Swagger file: dragonpulse.yaml
reading from dragonpulse.yaml
2016-06-07 10:14:29,341 INFO - Parsed Swagger with 6 paths
2016-06-07 10:14:29,342 INFO - Creating API with name Arrow DragonPulse
2016-06-07 10:14:30,915 INFO - Removing default model Empty
2016-06-07 10:14:31,275 INFO - Removing default model Error
2016-06-07 10:14:31,636 INFO - Creating model for api id g1sns1g74g with name FileSystem
2016-06-07 10:14:33,475 INFO - Generated json-schema for model FileSystem: {“type”:“object”,“required”:[“available”,“fSize”,“filesystem”,“mounted”,“usage”,“used”],“properties”:{“filesystem”:{“type”:“string”,“description”:“The name of the filesystem.\n”,“minLength”:1,“pattern”:"^[/:a-zA-Z0-9]+$"},“fSize”:{“type”:“integer”,“format”:“int64”,“description”:“The size of the filesystem.\n”},“used”:{“type”:“number”,“format”:“double”,“description”:“The percentage used for the filesystem.\n”},“available”:{“type”:“integer”,“format”:“int64”,“description”:“The amount available on the filesystem.\n”},“usage”:{“type”:“string”,“description”:“The percentage of use of the filesystem.\n”,“pattern”:"^[0-9]{1,3}%$"},“mounted”:{“type”:“string”,“description”:“The mount point of the filesystem.\n”,“pattern”:"^[/:a-zA-Z0-9]+$"}},“definitions”:{}}
2016-06-07 10:14:47,929 INFO - Creating model for api id g1sns1g74g with name FileSystemList
2016-06-07 10:14:48,131 INFO - Generated json-schema for model FileSystemList: {“type”:“array”,“items”:{"$ref":"#/definitions/FileSystem"},“definitions”:{“FileSystem”:{“type”:“object”,“required”:[“available”,“fSize”,“filesystem”,“mounted”,“usage”,“used”],“properties”:{“filesystem”:{“type”:“string”,“description”:“The name of the filesystem.\n”,“minLength”:1,“pattern”:"^[/:a-zA-Z0-9]+$"},“fSize”:{“type”:“integer”,“format”:“int64”,“description”:“The size of the filesystem.\n”},“used”:{“type”:“number”,“format”:“double”,“description”:“The percentage used for the filesystem.\n”},“available”:{“type”:“integer”,“format”:“int64”,“description”:“The amount available on the filesystem.\n”},“usage”:{“type”:“string”,“description”:“The percentage of use of the filesystem.\n”,“pattern”:"^[0-9]{1,3}%$"},“mounted”:{“type”:“string”,“description”:“The mount point of the filesystem.\n”,“pattern”:"^[/:a-zA-Z0-9]+$"}}}}}
2016-06-07 10:14:48,479 INFO - Creating model for api id g1sns1g74g with name MonitorDisk
2016-06-07 10:14:48,542 INFO - Generated json-schema for model MonitorDisk: {“type”:“object”,“required”:[“counter”,“directoryList”,“thingId”,“timestamp”],“properties”:{“thingId”:{“type”:“string”,“description”:“The identifier for a thing.\n”,“pattern”:"^[a-zA-Z0-9_-]$"},“timestamp”:{“type”:“integer”,“format”:“int64”,“description”:“The seconds since the epoch, UTC\n”},“counter”:{“type”:“integer”,“format”:“int64”,“description”:“A counter used the by client to record the number of observations\nfor a session.\n”},“directoryList”:{"$ref":"#/definitions/FileSystemList"}},“definitions”:{“FileSystem”:{“type”:“object”,“required”:[“available”,“fSize”,“filesystem”,“mounted”,“usage”,“used”],“properties”:{“filesystem”:{“type”:“string”,“description”:“The name of the filesystem.\n”,“minLength”:1,“pattern”:"^[/:a-zA-Z0-9]+$"},“fSize”:{“type”:“integer”,“format”:“int64”,“description”:“The size of the filesystem.\n”},“used”:{“type”:“number”,“format”:“double”,“description”:“The percentage used for the filesystem.\n”},“available”:{“type”:“integer”,“format”:“int64”,“description”:“The amount available on the filesystem.\n”},“usage”:{“type”:“string”,“description”:“The percentage of use of the filesystem.\n”,“pattern”:"^[0-9]{1,3}%$"},“mounted”:{“type”:“string”,“description”:“The mount point of the filesystem.\n”,“pattern”:"^[/:a-zA-Z0-9]+$"}}},“FileSystemList”:{“type”:“array”,“items”:{"$ref":"#/definitions/FileSystem"}}}}
2016-06-07 10:14:48,872 INFO - Creating model for api id g1sns1g74g with name MonitorGeneral
2016-06-07 10:14:48,928 INFO - Generated json-schema for model MonitorGeneral: {“type”:“object”,“required”:[“architecture”,“deviceType”,“os”,“osVersion”,“thingId”,“timestamp”],“properties”:{“thingId”:{“type”:“string”,“description”:“The identifier for a thing.\n”,“pattern”:"^[a-zA-Z0-9_-]$"},“timestamp”:{“type”:“integer”,“format”:“int64”,“description”:“The seconds since the epoch, UTC\n”},“deviceType”:{“type”:“string”,“description”:“Type type of device.\n”},“os”:{“type”:“string”,“description”:“The official name of the operating system.\n”},“osVariant”:{“type”:“string”,“description”:“The common name of the operating system.\n”},“osVersion”:{“type”:“string”,“description”:“The version of the operating system.\n”},“osCodename”:{“type”:“string”,“description”:“The code name for the operating system, usually specific\nto a version.\n”},“build”:{“type”:“string”,“description”:“The build number of the operating system.\n”},“architecture”:{“type”:“string”,“description”:“The architecture of the operating system. This provides an\nindication of whether it is a 32-bit or 64-bit version.\n”}},“definitions”:{}}
2016-06-07 10:14:49,255 INFO - Creating model for api id g1sns1g74g with name MonitorNetwork
2016-06-07 10:14:49,327 INFO - Generated json-schema for model MonitorNetwork: {“type”:“object”,“required”:[“counter”,“cummulative”,“ipAddress”,“macAddress”,“nInterface”,“peakRate”,“thingId”,“timestamp”,“totalRecvRate”,“totalSendRate”,“totalSendRecvRate”],“properties”:{“thingId”:{“type”:“string”,“description”:“The identifier for a thing.\n”,“pattern”:"^[a-zA-Z0-9_-]$"},“timestamp”:{“type”:“integer”,“format”:“int64”,“description”:“The seconds since the epoch, UTC\n”},“counter”:{“type”:“integer”,“format”:“int64”,“description”:“A counter used the by client to record the number of observations\nfor a session.\n”},“totalSendRate”:{“type”:“number”,“format”:“float”,“description”:“The send rate for the interface for the last 10 seconds.\n”},“nInterface”:{“type”:“string”,“description”:“The operating system name of the network interface\n”},“cummulative”:{“type”:“array”,“items”:{“type”:“integer”,“format”:“int64”,“description”:“The cumulative sent, receive, and total packets.\n”}},“totalSendRecvRate”:{“type”:“number”,“format”:“float”,“description”:“The total rate for send and receive packets for the last\n10 seconds.\n”},“macAddress”:{“type”:“string”,“description”:“The MAC address of the ethernet interface\n”,“pattern”:"^([0-9a-f]{2}:){5}[0-9a-f]{2}$"},“peakRate”:{“type”:“array”,“items”:{“type”:“integer”,“format”:“int64”,“description”:“The peak rate for the sent, receive, and total packets.\n”}},“totalRecvRate”:{“type”:“number”,“format”:“float”,“description”:“The total receive rate for the network interface for the last\n10 seconds.\n”},“ipAddress”:{“type”:“string”,“description”:“The IP address of the network interface.\n”,“pattern”:"^([0-9]{1,3}.){3}[0-9]{1,3}$"}},“definitions”:{}}
2016-06-07 10:14:49,673 INFO - Creating model for api id g1sns1g74g with name MonitorProcess
2016-06-07 10:14:49,736 INFO - Generated json-schema for model MonitorProcess: {“type”:“object”,“required”:[“counter”,“cpuUsage”,“loadAvg”,“memory”,“processList”,“tasks”,“thingId”,“timestamp”],“properties”:{“thingId”:{“type”:“string”,“description”:“The identifier for a thing.\n”,“pattern”:"^[a-zA-Z0-9_-]$"},“timestamp”:{“type”:“integer”,“format”:“int64”,“description”:“The seconds since the epoch, UTC\n”},“counter”:{“type”:“integer”,“format”:“int64”,“description”:“A counter used the by client to record the number of observations\nfor a session.\n”},“loadAvg”:{“type”:“array”,“items”:{“type”:“string”,“description”:“Load average over 1, 5, and 15 minutes. The load average is the\naverage number of jobs in the run queue.\n”,“pattern”:"^[0-9.]+$"}},“cpuUsage”:{“type”:“array”,“items”:{“type”:“string”,“description”:“Percentage of processor usage, broken into user, system,\nand idle components.\n”,“pattern”:"^[0-9.]+$"}},“tasks”:{“type”:“array”,“items”:{“type”:“string”,“description”:“The number of total, running, sleeping, and zombie processes.\n”,“pattern”:"^[0-9]+$"}},“memory”:{“type”:“array”,“items”:{“type”:“string”,“description”:“The total, used, free, and buffer memory statistics.\n”,“pattern”:"^[0-9]+$"}},“processList”:{“type”:“array”,“items”:{"$ref":"#/definitions/Process"}}},“definitions”:{“Process”:{“type”:“object”,“required”:[“command”,“cpu”,“memory”,“pid”,“state”,“ttime”,“user”],“properties”:{“pid”:{“type”:“string”,“description”:“The identifier of the process.\n”,“pattern”:"^[0-9]+$"},“command”:{“type”:“string”,“description”:“The command of the process.\n”},“cpu”:{“type”:“string”,“description”:“The CPU utilization of the process.\n”,“pattern”:"^[0-9.]+$"},“ttime”:{“type”:“string”,“description”:“The total execution time of the process.\n”,“pattern”:"^[0-9]+:[0-9]{2}.[0-9]{2}$"},“memory”:{“type”:“string”,“description”:“The internal memory size of the process.\n”,“pattern”:"^[0-9]+$"},“state”:{“type”:“string”,“description”:“The state of the process.\n”,“enum”:[“running”,“sleeping”,“stuck”]},“user”:{“type”:“string”,“description”:“The user of the process.\n”}}}}}
2016-06-07 10:14:50,062 INFO - Creating model for api id g1sns1g74g with name Process
2016-06-07 10:14:50,097 INFO - Generated json-schema for model Process: {“type”:“object”,“required”:[“command”,“cpu”,“memory”,“pid”,“state”,“ttime”,“user”],“properties”:{“pid”:{“type”:“string”,“description”:“The identifier of the process.\n”,“pattern”:"^[0-9]+$"},“command”:{“type”:“string”,“description”:“The command of the process.\n”},“cpu”:{“type”:“string”,“description”:“The CPU utilization of the process.\n”,“pattern”:"^[0-9.]+$"},“ttime”:{“type”:“string”,“description”:“The total execution time of the process.\n”,“pattern”:"^[0-9]+:[0-9]{2}.[0-9]{2}$"},“memory”:{“type”:“string”,“description”:“The internal memory size of the process.\n”,“pattern”:"^[0-9]+$"},“state”:{“type”:“string”,“description”:“The state of the process.\n”,“enum”:[“running”,“sleeping”,“stuck”]},“user”:{“type”:“string”,“description”:“The user of the process.\n”}},“definitions”:{}}
2016-06-07 10:14:50,424 INFO - Creating model for api id g1sns1g74g with name Thing
2016-06-07 10:14:50,451 INFO - Generated json-schema for model Thing: {“type”:“object”,“required”:[“thingId”],“properties”:{“thingId”:{“type”:“string”,“description”:“The attribute name.\n”,“minLength”:1,“maxLength”:255,“pattern”:"^[a-zA-Z0-9_-]$"},“attributes”:{“type”:“object”,“description”:“The attributes of a thing.\n”,“additionalProperties”:{“type”:“string”}}},“definitions”:{}}
2016-06-07 10:14:50,783 INFO - Creating model for api id g1sns1g74g with name ThingList
2016-06-07 10:14:50,819 INFO - Generated json-schema for model ThingList: {“type”:“array”,“items”:{"$ref":"#/definitions/Thing"},“definitions”:{“Thing”:{“type”:“object”,“required”:[“thingId”],“properties”:{“thingId”:{“type”:“string”,“description”:“The attribute name.\n”,“minLength”:1,“maxLength”:255,“pattern”:"^[a-zA-Z0-9_-]$"},“attributes”:{“type”:“object”,“description”:“The attributes of a thing.\n”,“additionalProperties”:{“type”:“string”}}}}}}
2016-06-07 10:14:51,125 INFO - Creating model for api id g1sns1g74g with name Error
2016-06-07 10:14:51,152 INFO - Generated json-schema for model Error: {“type”:“object”,“required”:[“message”],“properties”:{“message”:{“type”:“string”}},“definitions”:{}}
2016-06-07 10:14:51,770 INFO - Creating resource ‘things’ on ppmnacd2fc
2016-06-07 10:14:53,055 INFO - Creating method response for api g1sns1g74g and method GET and status 200
2016-06-07 10:14:53,398 INFO - Found reference to existing model ThingList
2016-06-07 10:14:54,044 INFO - Creating method response for api g1sns1g74g and method GET and status 500
2016-06-07 10:14:54,348 INFO - Found reference to existing model Error
2016-06-07 10:14:54,946 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Content-Type
2016-06-07 10:14:55,309 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Accept
2016-06-07 10:14:55,626 INFO - Creating integration with type AWS
2016-06-07 10:14:58,017 INFO - Creating method for api id g1sns1g74g and resource id vuc37h with method get
2016-06-07 10:14:58,593 INFO - Creating method response for api g1sns1g74g and method OPTIONS and status 200
2016-06-07 10:14:59,485 INFO - Creating integration with type MOCK
2016-06-07 10:15:00,647 INFO - Creating method for api id g1sns1g74g and resource id vuc37h with method options
2016-06-07 10:15:01,253 INFO - Creating resource ‘{thingId}’ on vuc37h
2016-06-07 10:15:02,489 INFO - Creating method response for api g1sns1g74g and method GET and status 200
2016-06-07 10:15:02,797 INFO - Found reference to existing model Thing
2016-06-07 10:15:03,383 INFO - Creating method response for api g1sns1g74g and method GET and status 400
2016-06-07 10:15:03,693 INFO - Found reference to existing model Error
2016-06-07 10:15:04,258 INFO - Creating method response for api g1sns1g74g and method GET and status 404
2016-06-07 10:15:04,557 INFO - Found reference to existing model Error
2016-06-07 10:15:05,135 INFO - Creating method response for api g1sns1g74g and method GET and status 500
2016-06-07 10:15:05,441 INFO - Found reference to existing model Error
2016-06-07 10:15:06,023 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Content-Type
2016-06-07 10:15:06,341 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Accept
2016-06-07 10:15:06,656 INFO - Creating integration with type AWS
2016-06-07 10:15:11,308 INFO - Creating method for api id g1sns1g74g and resource id jk9es2 with method get
2016-06-07 10:15:11,892 INFO - Creating method response for api g1sns1g74g and method OPTIONS and status 200
2016-06-07 10:15:12,762 INFO - Creating integration with type MOCK
2016-06-07 10:15:13,905 INFO - Creating method for api id g1sns1g74g and resource id jk9es2 with method options
2016-06-07 10:15:14,811 INFO - Creating resource ‘monitor’ on jk9es2
2016-06-07 10:15:15,772 INFO - Creating resource ‘disk’ on lzk1l7
2016-06-07 10:15:16,992 INFO - Creating method response for api g1sns1g74g and method GET and status 200
2016-06-07 10:15:17,296 INFO - Found reference to existing model MonitorDisk
2016-06-07 10:15:17,871 INFO - Creating method response for api g1sns1g74g and method GET and status 400
2016-06-07 10:15:18,166 INFO - Found reference to existing model Error
2016-06-07 10:15:18,744 INFO - Creating method response for api g1sns1g74g and method GET and status 404
2016-06-07 10:15:19,044 INFO - Found reference to existing model Error
2016-06-07 10:15:19,622 INFO - Creating method response for api g1sns1g74g and method GET and status 500
2016-06-07 10:15:19,920 INFO - Found reference to existing model Error
2016-06-07 10:15:20,498 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Content-Type
2016-06-07 10:15:20,807 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Accept
2016-06-07 10:15:21,121 INFO - Creating integration with type AWS
2016-06-07 10:15:24,501 INFO - Creating method for api id g1sns1g74g and resource id hrrson with method get
2016-06-07 10:15:25,064 INFO - Creating method response for api g1sns1g74g and method OPTIONS and status 200
2016-06-07 10:15:25,935 INFO - Creating integration with type MOCK
2016-06-07 10:15:27,077 INFO - Creating method for api id g1sns1g74g and resource id hrrson with method options
2016-06-07 10:15:28,332 INFO - Creating resource ‘general’ on lzk1l7
2016-06-07 10:15:29,546 INFO - Creating method response for api g1sns1g74g and method GET and status 200
2016-06-07 10:15:29,862 INFO - Found reference to existing model MonitorGeneral
2016-06-07 10:15:30,444 INFO - Creating method response for api g1sns1g74g and method GET and status 400
2016-06-07 10:15:30,745 INFO - Found reference to existing model Error
2016-06-07 10:15:31,315 INFO - Creating method response for api g1sns1g74g and method GET and status 404
2016-06-07 10:15:31,619 INFO - Found reference to existing model Error
2016-06-07 10:15:32,206 INFO - Creating method response for api g1sns1g74g and method GET and status 500
2016-06-07 10:15:32,503 INFO - Found reference to existing model Error
2016-06-07 10:15:33,131 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Content-Type
2016-06-07 10:15:33,447 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Accept
2016-06-07 10:15:33,751 INFO - Creating integration with type AWS
2016-06-07 10:15:37,158 INFO - Creating method for api id g1sns1g74g and resource id 2p46m6 with method get
2016-06-07 10:15:37,723 INFO - Creating method response for api g1sns1g74g and method OPTIONS and status 200
2016-06-07 10:15:38,611 INFO - Creating integration with type MOCK
2016-06-07 10:15:39,726 INFO - Creating method for api id g1sns1g74g and resource id 2p46m6 with method options
2016-06-07 10:15:40,981 INFO - Creating resource ‘network’ on lzk1l7
2016-06-07 10:15:42,224 INFO - Creating method response for api g1sns1g74g and method GET and status 200
2016-06-07 10:15:42,527 INFO - Found reference to existing model MonitorNetwork
2016-06-07 10:15:43,112 INFO - Creating method response for api g1sns1g74g and method GET and status 400
2016-06-07 10:15:43,408 INFO - Found reference to existing model Error
2016-06-07 10:15:43,977 INFO - Creating method response for api g1sns1g74g and method GET and status 404
2016-06-07 10:15:44,272 INFO - Found reference to existing model Error
2016-06-07 10:15:44,849 INFO - Creating method response for api g1sns1g74g and method GET and status 500
2016-06-07 10:15:45,140 INFO - Found reference to existing model Error
2016-06-07 10:15:45,709 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Content-Type
2016-06-07 10:15:46,021 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Accept
2016-06-07 10:15:46,330 INFO - Creating integration with type AWS
2016-06-07 10:15:49,734 INFO - Creating method for api id g1sns1g74g and resource id vn0oei with method get
2016-06-07 10:15:50,302 INFO - Creating method response for api g1sns1g74g and method OPTIONS and status 200
2016-06-07 10:15:51,169 INFO - Creating integration with type MOCK
2016-06-07 10:15:52,286 INFO - Creating method for api id g1sns1g74g and resource id vn0oei with method options
2016-06-07 10:15:53,549 INFO - Creating resource ‘process’ on lzk1l7
2016-06-07 10:15:54,774 INFO - Creating method response for api g1sns1g74g and method GET and status 200
2016-06-07 10:15:55,079 INFO - Found reference to existing model MonitorProcess
2016-06-07 10:15:55,650 INFO - Creating method response for api g1sns1g74g and method GET and status 400
2016-06-07 10:15:55,946 INFO - Found reference to existing model Error
2016-06-07 10:15:56,509 INFO - Creating method response for api g1sns1g74g and method GET and status 404
2016-06-07 10:15:56,804 INFO - Found reference to existing model Error
2016-06-07 10:15:57,370 INFO - Creating method response for api g1sns1g74g and method GET and status 500
2016-06-07 10:15:57,654 INFO - Found reference to existing model Error
2016-06-07 10:15:58,226 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Content-Type
2016-06-07 10:15:58,535 INFO - Creating method parameter for api g1sns1g74g and method GET with name method.request.header.Accept
2016-06-07 10:15:58,836 INFO - Creating integration with type AWS
2016-06-07 10:16:03,244 INFO - Creating method for api id g1sns1g74g and resource id lk85wi with method get
2016-06-07 10:16:03,811 INFO - Creating method response for api g1sns1g74g and method OPTIONS and status 200
2016-06-07 10:16:04,670 INFO - Creating integration with type MOCK
2016-06-07 10:16:05,796 INFO - Creating method for api id g1sns1g74g and resource id lk85wi with method options
2016-06-07 10:16:05,798 INFO - Creating deployment for API g1sns1g74g and stage dev
***Configuring Dashboard on S3…

Detected g1sns1g74g as API Gateway Identifier

make_bucket: s3://dragonpulse-exteliotnodejs/
upload: css/db.css to s3://dragonpulse-exteliotnodejs/css/db.css
upload: css/c3.min.css to s3://dragonpulse-exteliotnodejs/css/c3.min.css
upload: css/font-awesome.css to s3://dragonpulse-exteliotnodejs/css/font-awesome.css
upload: css/bootstrap-theme.css to s3://dragonpulse-exteliotnodejs/css/bootstrap-theme.css
upload: css/bootstrap-theme.min.css to s3://dragonpulse-exteliotnodejs/css/bootstrap-theme.min.css
upload: css/bootstrap-theme.css.map to s3://dragonpulse-exteliotnodejs/css/bootstrap-theme.css.map
upload: fonts/FontAwesome.otf to s3://dragonpulse-exteliotnodejs/fonts/FontAwesome.otf
upload: css/styles.css to s3://dragonpulse-exteliotnodejs/css/styles.css
upload: css/font-awesome.min.css to s3://dragonpulse-exteliotnodejs/css/font-awesome.min.css
upload: fonts/fontawesome-webfont.woff to s3://dragonpulse-exteliotnodejs/fonts/fontawesome-webfont.woff
upload: css/bootstrap.css to s3://dragonpulse-exteliotnodejs/css/bootstrap.css
upload: css/bootstrap.min.css to s3://dragonpulse-exteliotnodejs/css/bootstrap.min.css
upload: fonts/glyphicons-halflings-regular.eot to s3://dragonpulse-exteliotnodejs/fonts/glyphicons-halflings-regular.eot
upload: fonts/glyphicons-halflings-regular.ttf to s3://dragonpulse-exteliotnodejs/fonts/glyphicons-halflings-regular.ttf
upload: fonts/glyphicons-halflings-regular.woff to s3://dragonpulse-exteliotnodejs/fonts/glyphicons-halflings-regular.woff
upload: fonts/fontawesome-webfont.eot to s3://dragonpulse-exteliotnodejs/fonts/fontawesome-webfont.eot
upload: fonts/fontawesome-webfont.ttf to s3://dragonpulse-exteliotnodejs/fonts/fontawesome-webfont.ttf
upload: fonts/fontawesome-webfont.woff2 to s3://dragonpulse-exteliotnodejs/fonts/fontawesome-webfont.woff2
upload: fonts/glyphicons-halflings-regular.woff2 to s3://dragonpulse-exteliotnodejs/fonts/glyphicons-halflings-regular.woff2
upload: fonts/glyphicons-halflings-regular.svg to s3://dragonpulse-exteliotnodejs/fonts/glyphicons-halflings-regular.svg
upload: gfxs/dragonboard410c_logo_bs.png to s3://dragonpulse-exteliotnodejs/gfxs/dragonboard410c_logo_bs.png
upload: gfxs/dragonboard410c_logo.png to s3://dragonpulse-exteliotnodejs/gfxs/dragonboard410c_logo.png
upload: gfxs/dragon-connect-logo@2x.png to s3://dragonpulse-exteliotnodejs/gfxs/dragon-connect-logo@2x.png
upload: gfxs/dragonpulse-logo@2x.png to s3://dragonpulse-exteliotnodejs/gfxs/dragonpulse-logo@2x.png
upload: gfxs/dragon-sense-logo@2x.png to s3://dragonpulse-exteliotnodejs/gfxs/dragon-sense-logo@2x.png
upload: gfxs/sprites-sensor@2x.png to s3://dragonpulse-exteliotnodejs/gfxs/sprites-sensor@2x.png
upload: gfxs/ready_to_fuel.png to s3://dragonpulse-exteliotnodejs/gfxs/ready_to_fuel.png
upload: css/bootstrap.css.map to s3://dragonpulse-exteliotnodejs/css/bootstrap.css.map
upload: gfxs/sprites-volume@2x.png to s3://dragonpulse-exteliotnodejs/gfxs/sprites-volume@2x.png
upload: gfxs/ajax-loader.gif to s3://dragonpulse-exteliotnodejs/gfxs/ajax-loader.gif
upload: gfxs/sprites@2x.png to s3://dragonpulse-exteliotnodejs/gfxs/sprites@2x.png
upload: gfxs/volume-bg-sm.jpg to s3://dragonpulse-exteliotnodejs/gfxs/volume-bg-sm.jpg
upload: gfxs/volume-bg-md.jpg to s3://dragonpulse-exteliotnodejs/gfxs/volume-bg-md.jpg
upload: gfxs/volume-bg-lg.jpg to s3://dragonpulse-exteliotnodejs/gfxs/volume-bg-lg.jpg
upload: ./index.html to s3://dragonpulse-exteliotnodejs/index.html
upload: gfxs/sprites-bulb@2x.png to s3://dragonpulse-exteliotnodejs/gfxs/sprites-bulb@2x.png
upload: fonts/fontawesome-webfont.svg to s3://dragonpulse-exteliotnodejs/fonts/fontawesome-webfont.svg
upload: js/bootstrap.min.js to s3://dragonpulse-exteliotnodejs/js/bootstrap.min.js
upload: js/config.js to s3://dragonpulse-exteliotnodejs/js/config.js
upload: js/config_template.js to s3://dragonpulse-exteliotnodejs/js/config_template.js
upload: gfxs/search.jpg to s3://dragonpulse-exteliotnodejs/gfxs/search.jpg
upload: gfxs/volume-bg-xs.jpg to s3://dragonpulse-exteliotnodejs/gfxs/volume-bg-xs.jpg
upload: js/dragonpulse.js to s3://dragonpulse-exteliotnodejs/js/dragonpulse.js
upload: js/npm.js to s3://dragonpulse-exteliotnodejs/js/npm.js
upload: js/bootstrap.js to s3://dragonpulse-exteliotnodejs/js/bootstrap.js
upload: js/moment.min.js to s3://dragonpulse-exteliotnodejs/js/moment.min.js
upload: js/c3.min.js to s3://dragonpulse-exteliotnodejs/js/c3.min.js
upload: js/jquery-1.11.1.min.js to s3://dragonpulse-exteliotnodejs/js/jquery-1.11.1.min.js
upload: gfxs/board.png to s3://dragonpulse-exteliotnodejs/gfxs/board.png
upload: js/d3.min.js to s3://dragonpulse-exteliotnodejs/js/d3.min.js
**Configuring Bucket Policy on S3…
**Provisioning a Thing…
Creating thing cd3e31f100874f99951fd25fc7e14b68
Creating principal
Attaching principal to thing cd3e31f100874f99951fd25fc7e14b68
Attaching policy DragonPulse to principal for thing cd3e31f100874f99951fd25fc7e14b68

Detected cd3e31f100874f99951fd25fc7e14b68 as Thing ID

**Installing Certificates for the Device…
**Building Client…
npm WARN package.json aws-iot-thing-sdk-dragonpulse-js@1.0.0 No README data
node-schedule@0.2.9 node_modules/node-schedule
├── long-timeout@0.0.2
└── cron-parser@0.6.2

aws-iot-device-sdk@1.0.12 node_modules/aws-iot-device-sdk
├── minimist@1.2.0
├── crypto-js@3.1.6
├── websocket-stream@3.2.1 (inherits@2.0.1, xtend@4.0.1, ws@1.1.0, through2@2.0.1, duplexify@3.4.3)
└── mqtt@1.8.0 (inherits@2.0.1, reinterval@1.0.2, xtend@4.0.1, readable-stream@1.0.34, end-of-stream@1.1.0, commist@1.0.0, mqtt-connection@2.1.1, mqtt-packet@3.4.7, concat-stream@1.5.1, help-me@0.1.0)
################################################

Build Complete

################################################

Access your DragonPulse API Gateway here: https://g1sns1g74g.execute-api.us-east-1.amazonaws.com/dev

Access your DragonPulse Dashboard here: http://dragonpulse-exteliotnodejs.s3-website-us-east-1.amazonaws.com

linaro@linaro-alip:~/projects/arrow/aws-iot-dragonpulse-js/scripts$