Description of problem: Installing pcp-pmda-lmsensors does not lead to sensors metrics becoming available in pcp. Version-Release number of selected component (if applicable): pcp-pmda-lmsensors-6.0.3-1.fc37 Fedora 37 on aarch64 (System has latest updates) How reproducible: Steps to Reproduce: 1. dnf install pcp-pmda-lmsensors 2. pminfo lmsensors Actual results: Error: lmsensors: Unknown metric name Expected results: List of lmsensors metrics is displayed. Additional info: the output of the sensors command does show that there are sensors installed, and that there are values to be read.
I have tried running the Install script in /var/lib/pcp/pmdas/lmsensors The result was: [root@fozzie lmsensors]# ./Install Traceback (most recent call last): File "/var/lib/pcp/pmdas/lmsensors/pmdalmsensors.python", line 138, in <module> LmsensorsPMDA('lmsensors', 74).run() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/var/lib/pcp/pmdas/lmsensors/pmdalmsensors.python", line 99, in __init__ self.add_metric(basename + "." + keysplit[0] + "." + keysplit[2], # metric name File "/usr/lib64/python3.11/site-packages/pcp/pmda.py", line 330, in add_metric raise KeyError('attempt to add_metric with an existing name=%s' % (name)) KeyError: 'attempt to add_metric with an existing name=lmsensors.pac1934_i2c_0_11.i2c' Arrgh! failed to create /var/lib/pcp/pmdas/lmsensors/domain.h.python from /var/lib/pcp/pmdas/lmsensors/pmdalmsensors.python
Hi Krist, Thanks for reporting the issue - can you copy+paste the output from '/usr/bin/lmsensors -j' into the BZ please? cheers.
Curious, which hardware is this? Fedora37 on a Raspi4, which has just the cpu sensor reporting: [root@pi4 39°C ~]$ cd /var/lib/pcp/pmdas/lmsensors [root@pi4 37°C lmsensors]$ ./Install Updating the Performance Metrics Name Space (PMNS) ... Terminate PMDA if already installed ... Updating the PMCD control file, and notifying PMCD ... Check lmsensors metrics have appeared ... 1 metrics and 1 values [root@pi4 38°C lmsensors]$ pminfo lmsensors lmsensors.cpu_thermal_virtual_0.temp1 [root@pi4 38°C lmsensors]$ pmrep lmsensors -p l.c.temp1 11:00:34 39.920 11:00:35 37.972 11:00:36 39.433 ^C [root@pi4 38°C lmsensors]$ /usr/bin/lmsensors does not exist, '/usr/bin/sensors -j' might be interesting. The traceback makes me wonder if there was a previous, failed attempt to register the metrics.
There's insufficient information to make progress here Please reopen this BZ if the requested sensors output can be supplied - thanks!