meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
documentation:recsdaemon [2016/09/28 15:00] – [Sensors] kru | documentation:recsdaemon [2016/10/12 13:46] – Fixed missing commas kru | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | The RECSDaemon is a small program that can be installed on compute modules in a RECS< | + | The RECSDaemon is a small program that can be installed on compute modules in a RECS< |
To be able to adapt to different platforms, the RECSDaemon uses plugins for different purposes. To configure these plugins and other settings an .ini file is used. | To be able to adapt to different platforms, the RECSDaemon uses plugins for different purposes. To configure these plugins and other settings an .ini file is used. | ||
The RECSDaemon is also able to execute commands sent by the management system to the node (e.g. for shutting down the OS gracefully). | The RECSDaemon is also able to execute commands sent by the management system to the node (e.g. for shutting down the OS gracefully). | ||
Line 17: | Line 17: | ||
The installation script will try to auto-detect some of the configuration parameters, but as platforms supported by the daemon are very diverse, manual configuration of remaining parameters most probably will be necessary. | The installation script will try to auto-detect some of the configuration parameters, but as platforms supported by the daemon are very diverse, manual configuration of remaining parameters most probably will be necessary. | ||
- | RECSDaemon comes with both systemd and classical init scripts to allow autostart of the daemon during system boot. Depending on your distribution, | + | RECSDaemon comes with both systemd and classical init scripts to allow automatically starting |
systemctl enable RECSDaemon | systemctl enable RECSDaemon | ||
Line 32: | Line 32: | ||
/ | / | ||
- | As this is a standard INI file, it is devided | + | As this is a standard INI file, it is divided |
The different aspects that need to be configured will be described in the following chapters. | The different aspects that need to be configured will be described in the following chapters. | ||
Line 52: | Line 52: | ||
=== LinuxCommunicatorDev === | === LinuxCommunicatorDev === | ||
- | If neccessary, the I2C bus to be used can be changed. This is done by setting the '' | + | If necessary, the I2C bus to be used can be changed. This is done by setting the '' |
Example configuration: | Example configuration: | ||
Line 60: | Line 60: | ||
=== CommunicatorTCP configuration === | === CommunicatorTCP configuration === | ||
- | When utilizing I2C as the communication channel, the RECSDaemon automatically can determine on which baseboard in the RECS< | + | When utilizing I2C as the communication channel, the RECSDaemon automatically can determine on which baseboard in the RECS< |
- | Also neccessary | + | Also necessary |
Example configuration: | Example configuration: | ||
Line 94: | Line 94: | ||
|LinuxSensorProviderEth | Direct | Ethernet link status/ | |LinuxSensorProviderEth | Direct | Ethernet link status/ | ||
|SensorProviderSystem | Direct | CPU utilization, | |SensorProviderSystem | Direct | CPU utilization, | ||
- | |SensorProviderZynq | Direct | Serial transceiver link, utilization, | + | |SensorProviderZynq | Direct | Serial transceiver link, utilization, |
|SensorProviderZynqModule | JSON | Sensors provided by the module’s microcontroller: | |SensorProviderZynqModule | JSON | Sensors provided by the module’s microcontroller: | ||
Line 112: | Line 112: | ||
This plugin needs the name of the serial port of the management microcontroller on the Zynq module. Configure it with the '' | This plugin needs the name of the serial port of the management microcontroller on the Zynq module. Configure it with the '' | ||
==== Sensors ==== | ==== Sensors ==== | ||
- | Besides SensorProviders that autmatically | + | Besides SensorProviders that automatically |
Currently, the following plugins can be used to instantiate sensors manually: | Currently, the following plugins can be used to instantiate sensors manually: | ||
Line 145: | Line 145: | ||
==== Other settings ==== | ==== Other settings ==== | ||
- | In the '' | + | In the '' |
===== TCP/IP server ===== | ===== TCP/IP server ===== | ||
The RECSDaemon provides a simple TCP/IP server (by default on port 2023) that can be used by external programs to gain information or provide additional sensors. | The RECSDaemon provides a simple TCP/IP server (by default on port 2023) that can be used by external programs to gain information or provide additional sensors. | ||
- | The following commands are currenty | + | The following commands are currently |
^ Command ^ Action ^ | ^ Command ^ Action ^ | ||
Line 159: | Line 159: | ||
==== Getting monitoring data ==== | ==== Getting monitoring data ==== | ||
- | Using the '' | + | Using the '' |
The returned JSON string has the following format: | The returned JSON string has the following format: | ||
< | < | ||
- | {" | + | {" |
- | {" | + | {" |
- | {" | + | {" |
{" | {" | ||
]</ | ]</ |