Håvard O. Nordstrand преди 4 години
родител
ревизия
850f06b1dc

+ 0 - 0
config/game-servers/csgo.md → config/game-server/csgo.md


+ 0 - 0
config/game-servers/minecraft-bukkit.md → config/game-server/minecraft-bukkit.md


+ 0 - 0
config/game-servers/tf2.md → config/game-server/tf2.md


+ 0 - 0
config/server/res/prometheus-node-exporter.service → config/server/_files/prometheus-node-exporter.service


+ 3 - 4
config/server/debian.md

@@ -131,11 +131,10 @@ breadcrumbs:
     - Install firmware from other sources (e.g. for some Intel NICs).
     - Update microcode: Install `intel-microcode` (for Intel) or `amd64-microcode` (for AMD) and reboot (now or later).
 1. Install `smartmontools` and run `smartctl -s on <dev>` for all physical drives to enable SMART monitoring.
-1. Setup `lm-sensors` to monitor sensors:
+1. Setup lm_sensors to monitor sensors:
     1. Install: `apt install lm-sensors`
-    1. Run `sensors-detect`. When it asks, add the modules to `/etc/modules` when asked.
-    1. Load new modules: `systemctl restart kmod`
-    1. Watch `journalctl` for sensor errors. If so, try to unload the modules with and then remove them from `/etc/modules` if it worked.
+    1. Run `sensors` to make sure it runs without errors.
+    1. For further configuration (more sensors) and more info, see [Linux Server Applications: lm_sensors](../applications/#lm_sensors).
 1. Mask `ctrl-alt-del.target` to disable CTRL+ALT+DEL reboot at the login screen.
 
 #### QEMU Virtual Host

+ 19 - 1
config/server/linux-applications.md

@@ -286,6 +286,24 @@ See [Home Assistant](../home-assistant/).
 - DHCPv6 uses lease pools of 9973 entries, so using range sizes below this number may be preferable as a very general reference.
   `/116` gives 8191 addresses.
 
+## lm_sensors
+
+Get sensor values like temperature, voltage, fan speeds, etc.
+
+### Setup
+
+1. Install: `apt install lm-sensors`
+1. Test run it: `sensors`
+1. Run `sensors-detect`. When it asks, add the modules to `/etc/modules`.
+1. Load new modules: `systemctl restart kmod`
+1. Test run it: `sensors`
+
+### Troubleshooting
+
+- There's module/chip/sensor errors in the output or `journalctl`:
+    - If you know which chip and sensor (e.g. if it shows it during output), try adding `chip "<chip>"\n    ignore <sensor>` in `/etc/sensors3.conf`. Re-run `sensors`. (See [Kernel ACPI Error SMBus/IPMI/GenericSerialBus (ServerAdminBlog)](https://www.serveradminblog.com/2015/05/kernel-acpi-error-smbusipmigenericserialbus/) for an example on certain HP servers.)
+    - If you know which module it is, try to unload it. Re-run `sensors`. If it worked, then remove it from `/etc/modules` to make it permanent.
+
 ## MariaDB
 
 A MySQL fork that is generally MySQL compatible.
@@ -663,7 +681,7 @@ Instructions:
 1. Create the required files and directories:
     - `touch /etc/default/prometheus-node-exporter`
     - `mkdir -p /var/lib/prometheus/node-exporter/`
-1. Create the systemd service `/etc/systemd/system/prometheus-node-exporter.service`, see [prometheus-node-exporter.service](res/prometheus-node-exporter.service).
+1. Create the systemd service `/etc/systemd/system/prometheus-node-exporter.service`, see [prometheus-node-exporter.service](_files/prometheus-node-exporter.service).
 1. (Optional) Configure it:
     - The defaults work fine.
     - File: `/etc/default/prometheus-node-exporter`

+ 3 - 3
index.md

@@ -69,9 +69,9 @@ Random collection of config notes and miscellaneous theory. Technically not a wi
 
 ### Game Servers
 
-- [Counter-Strike: Global Offensive (CS:GO)](config/game-servers/csgo/)
-- [Minecraft (Bukkit)](config/game-servers/minecraft-bukkit/)
-- [Team Fortress 2 (TF2)](config/game-servers/tf2/)
+- [Counter-Strike: Global Offensive (CS:GO)](config/game-server/csgo/)
+- [Minecraft (Bukkit)](config/game-server/minecraft-bukkit/)
+- [Team Fortress 2 (TF2)](config/game-server/tf2/)
 
 ### Media