We have Orion, Cygnus, and Cosmos installed, and are trying to get the connections between them working: via the broker Orion messages are to be forwarded to Cygnus, which in turn is to write those to the Cosmos database.
We know that Orion is working properly (it has been tested and used before), and have tested Cygnus with the test python script (as explained in https://github.com/telefonicaid/fiware-cygnus/blob/master/doc/quick_start_guide.md). Currently we are trying to configure Cygnus so that it receives messages from Orion, and subsequently writes them to the Cosmos database.
1) How do we configure Cygnus/ which parameters need to set, in order to obtain the simplest working link from Orion, via Cygnus, to Cosmos? Is there a simple working example for us to see? (is the agent_1.conf the only config file that needs to be set in Cygnus?)
2) How/by what means do we subscribe Cygnus to Orion?
3) And how do we persist the data to Cosmos?
We have read quite a few answers to similar questions here on StackOverflow; and have read documentation regarding the above on either Github or the Fiware site, but seem to not be able to get it to work...
Many thanks!
Assuming you installed Cygnus from RPM, the minimum configuration you need is about giving values to this set of parameters in a
/usr/cygnus/conf/agent_1.conf
file (there exists a/usr/cygnus/conf/agent.conf.template
file that you may copy):In addition to the above, you will need:
/usr/cygnus/conf/grouping_rules.conf
to be created; you may make a copy from/usr/cygnus/conf/grouping_rules.conf.template
.Now, you are able to run Cygnus as a standard application:
If you want to run Cygnus as a service, you will need an additional
/usr/cygnus/conf/cygnus_instance_1.conf
(there is another template within the installation) with the following default content:Then, you can proceeed as with any other service: