meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
groups:mg:private:resonatoren:mg:temperture_monitoring:start [2022/02/15 14:28] – [Mg-Server] fiene | groups:mg:private:resonatoren:mg:temperture_monitoring:start [2024/03/20 09:37] (current) – Admin: Syntax-Update (Migration from deprecated "fontcolor" plugin to "color" plugin) klaus | ||
---|---|---|---|
Line 74: | Line 74: | ||
< | < | ||
- | <fc # | + | <color # |
- | **<fc # | + | **<color # |
- | <fc # | + | <color # |
- | <fc # | + | <color # |
i2c = busio.I2C(board.SCL, | i2c = busio.I2C(board.SCL, | ||
bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, | bmp280 = adafruit_bmp280.Adafruit_BMP280_I2C(i2c, | ||
- | <fc # | + | <color # |
- | <fc # | + | <color # |
</ | </ | ||
Line 216: | Line 216: | ||
Create a database in which you later wish to store the measurements, | Create a database in which you later wish to store the measurements, | ||
- | First, start influxDB by entering '' | + | First, start influxDB by entering '' |
- | Execute: | + | |
< | < | ||
CREATE DATABASE collectd_test | CREATE DATABASE collectd_test | ||
Line 246: | Line 246: | ||
- | === Configuring for collectd === | + | ===== IQ-Server ===== |
+ | Only Admins are allowed to create a database and users on the institute' | ||
+ | You have to write the login data you receive from your admin and the hostname (probably " | ||
+ | '' | ||
+ | The given security level " | ||
+ | |||
+ | The rest of collectd.conf is identical to the one for working with the Mg-Server (only Plugins used are syslog, network and python). You can find more information [[https:// | ||
+ | |||
+ | |||
+ | ==== Configuring for collectd | ||
Stop the influxdb server by running: | Stop the influxdb server by running: | ||
Line 255: | Line 264: | ||
The configuration file is ''/ | The configuration file is ''/ | ||
- | The config file we use is {{ : | + | The config file for the Mg-Server |
The interesting part is: | The interesting part is: | ||
Line 273: | Line 282: | ||
magnesium: influxMG | magnesium: influxMG | ||
</ | </ | ||
- | This is the username and password for any external collectd services to authenticate with the influxdb database. | + | This is the username and password for any external collectd services to authenticate with the influxdb database.\\ |
+ | To load InfluxDB with your new configurations, | ||
+ | < | ||
+ | echo $INFLUXDB_CONFIG_PATH / | ||
+ | </ | ||
+ | |||
+ | and start the process with '' | ||
=== types.db === | === types.db === | ||
Line 299: | Line 314: | ||
</ | </ | ||
- | ==== IQ-Server ==== | ||
- | Only Admins are allowed to create a database and users on the institute' | ||
- | '' | ||
- | The given security level " | ||
- | |||
- | The rest of collectd.conf is identical to the one for working with the Mg-Server (only Plugins used are syslog, network and python). You can find more information [[https:// | ||
==== Automated Backups ==== | ==== Automated Backups ==== | ||
Line 440: | Line 449: | ||
< | < | ||
- | <fc # | + | <color # |
- | **<fc # | + | **<color # |
- | <fc # | + | <color # |
- | <fc # | + | <color # |
- | <fc # | + | <color # |
- | <fc # | + | <color # |
i2c = busio.I2C(board.SCL, | i2c = busio.I2C(board.SCL, | ||
Line 457: | Line 466: | ||
\\ | \\ | ||
- | **<fc # | + | **<color # |
\\ | \\ | ||
- | **<fc # | + | **<color # |
\\ | \\ | ||
**temperature = (bmp280.temperature + temperature)/ | **temperature = (bmp280.temperature + temperature)/ | ||
- | <fc # | + | <color # |
- | <fc # | + | <color # |
\\ | \\ | ||
- | **<fc # | + | **<color # |
\\ | \\ | ||
- | print(<fc # | + | print(<color # |
sys.exit(1)**\\ | sys.exit(1)**\\ | ||
| | ||
</ | </ | ||
- | Plugin Network in configfile of collectd: | + | Plugin Network in configfile of collectd:\\ |
<Plugin network> | <Plugin network> | ||
<Server " | <Server " | ||
Line 480: | Line 490: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | |||
+ | | ||
=== To Do === | === To Do === | ||
- | * / | + | |
- | * Server Plugin: check if " | + | * if bind address already in use find PID with '' |
- | * Python Plugin: Import modules? | + | * types db file in / |
- | * influxd already running? port in use? (can' | + | |
| |