Fedora Account System
Red Hat Associate
Red Hat Customer
Created attachment 732653 [details] Modified sensord.service file to include reference to RRD variables Description of problem: The sensord sensor logging daemon for lm_sensors does not use some of the configuration options available in its /etc/sysconfig/sensord file. There are 2 options that are commented out by default but are needed to control RRD logging for sensord (a very useful feature). Version-Release number of selected component (if applicable): Installed Packages Name : lm_sensors-sensord Arch : x86_64 Version : 3.3.2 Release : 5.fc18 Size : 39 k Repo : installed From repo : fedora Summary : Daemon that periodically logs sensor readings URL : http://www.lm-sensors.org/ Licence : LGPLv2+ Description : Daemon that periodically logs sensor readings to syslog or a round-robin : database, and warns of sensor alarms. How reproducible: Steps to Reproduce: 1. Install lm_sensors-sensord 2. Uncomment the 2 lines in /etc/sysconfig/sensord 3. Restart sensord "sudo systemctl restart sensord.service" 4. Check the RRD db location for the creation of the file "ls /var/log/sensors.rrd" Actual results: No file is created, nor can it be as there is no mention of these variables in the /usr/lib/systemd/system/sensord.service file. Expected results: /var/log/sensors.rrd to be created. Additional info: I am attaching the sensord.service file I created to make it work (although I don't know if it will cause problems if no RRD variables are given, or what the best practice for this kind of situation is with systemd unit files.
This file also has data needed for the modprobe command. If lm_sensors needs drivers loaded for devices to work on a system, not being able to read this file breaks things.
Whoops, wrong file my case is actually needing /etc/sysconfig/lm_sensors.
Hello Mikey. It seems a wrapper script is needed for checking whether the config variables are defined. Let me do a deeper analysis. I'll let you know about my findings. Thank you. Regards, Jaromir.
I'm going to submit a new feature request against systemd. It lacks a mechanism for conditional pairing of switches and values, when the values are defined in the environmental file.
So ... the RFE was rejected yesterday (not a big surprise for me). That means a wrapper script is needed. Going to write one and rebuild.
This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
lm_sensors-3.3.4-9.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/lm_sensors-3.3.4-9.fc20
Package lm_sensors-3.3.4-9.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing lm_sensors-3.3.4-9.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-0530/lm_sensors-3.3.4-9.fc20 then log in and leave karma (feedback).
lm_sensors-3.3.4-10.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/lm_sensors-3.3.4-10.fc20
lm_sensors-3.3.4-10.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.