telefonicaid/xifi-script

Name: xifi-script

Owner: Telefónica I+D

Description: null

Created: 2015-06-15 11:57:13.0

Updated: 2015-08-13 11:05:29.0

Pushed: 2015-06-17 06:50:55.0

Homepage:

Size: 130

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

xifi-script

General Information
This repo is composed by these 4 scripts:
  1. ngsi2cosmos:
    • this is the /etc/init.d script that performs the start/stop/status actions for the ngsi2cosmsos
    • IMPORTANT: check if the ngsi2cosmsos is under this path: /etc/monitoring/
  2. scheduledmonitoring.py:
    • script that must be scheduled as cronjob
    • it should be scheduled as normal user
    • the final report should be a cron-job like [30 0 * * * python /etc/monitoring/scheduledmonitoring.py]
  3. subscribeHadoop.py:
    • this subscribes the ngsi2cosmos adapter to receive the data from the region CB
    • MUST be run only ONCE
  4. testAPI.js:
    • it is a script that is useful in order to test the monitoring API
    • remember to require and set the ConsumerKey and the ConsumerSecret
    • node testAPI.js
Additional configuration:

|name |description | |———–|———–| |REGION|set the region name| |DAEMON_PATH|set the path to the ngsi2cosmos|

|name |description | |———–|———–| |region|set the region name| |dbname|set the db name| |username|set the username| |password|set the db user password|

|name |description | |———–|———–| |region|set the region name| |CBurl|set the ContextBroker IP:Port| |hadoopMasterIP|set the hadoopMaster IP:Port|

|name |description | |————–|———–| |ConsumerKey|set the oauth2 app-key| |ConsumerSecret|set the oauth2 app-secret|

Contact

For any question, bug report, suggestion or feedback in general, please contact me: Attilio Broglio (abroglio at create-net dot org).


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.