Skip to contentSkip to conversation

"sensord --rrd-file" cant't find a sensor

lm-sensors Sebastian Thias 3 participants 6 messages Sep 5, 2007 – Sep 20, 2007

lore
Share & tools
lore
#0 lore raw

Hi lm-sensors team,

I'm using lm-sensors 2.10.4 / sensord 0.6.3

sensord is able to log my sensor-readings (from a w83793-chip) to syslog without problems:
--8<-----------------------------------------------------------------

Sep  5 12:54:04 capitol sensord: sensord started
Sep  5 12:54:04 capitol sensord: Chip: w83793-i2c-0-2f
Sep  5 12:54:04 capitol sensord: Adapter: SMBus I801 adapter at 0400
Sep  5 12:54:04 capitol sensord:   VCoreA: 1.23
Sep  5 12:54:04 capitol sensord:   -in0_min: 0.80

-->8-----------------------------------------------------------------

Using
sensord --rrd-file /var/log/sensord
does not work. It can't initialize the RRD-database, with error-msg:

--8<-----------------------------------------------------------------

Sep  5 12:53:52 capitol sensord: Error creating RRD:

/var/log/sensord.rrd: No sensors detected -->8-----------------------------------------------------------------

Any idea what could be wrong...?

Thank you very much in advance!

Sebastian Thias

P.S.: please CC to me, as i'm not subscribed to the list. Thanks!

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

Hi Sebastian,

Quoted 18 lines · Sebastian Thias

Hi lm-sensors team,

I'm using lm-sensors 2.10.4 / sensord 0.6.3

sensord is able to log my sensor-readings (from a w83793-chip) to syslog without problems:
--8<-----------------------------------------------------------------

Sep  5 12:54:04 capitol sensord: sensord started
Sep  5 12:54:04 capitol sensord: Chip: w83793-i2c-0-2f
Sep  5 12:54:04 capitol sensord: Adapter: SMBus I801 adapter at 0400
Sep  5 12:54:04 capitol sensord:   VCoreA: 1.23
Sep  5 12:54:04 capitol sensord:   -in0_min: 0.80

-->8-----------------------------------------------------------------

Using
sensord --rrd-file /var/log/sensord
does not work. It can't initialize the RRD-database, with error-msg:

Quoted 6 lines

--8<-----------------------------------------------------------------

Sep  5 12:53:52 capitol sensord: Error creating RRD:

/var/log/sensord.rrd: No sensors detected -->8-----------------------------------------------------------------

Any idea what could be wrong...?

sensord simply lacks support for the w83793 driver, which is rather recent.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#2 lore raw
In reply to Sebastian Thias

Hi again Sebastian,

Quoted 5 lines · Jean Delvare
Quoted 1 line · Sebastian Thias

Any idea what could be wrong...?

sensord simply lacks support for the w83793 driver, which is rather recent.

Here's a patch adding support for the w83793 driver to sensord. It's untested as I do not have the hardware. You can give it a try and report.

Known limitations:
* Alarms are not supported.
* You may have to add ignore statements in sensors.conf for missing features.

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/wishlist.html
sensord/chips.c +77 -0
Index: prog/sensord/chips.c
===================================================================
@@ -1285,7 +1285,83 @@
   k8temp_names, k8temp_features, 0, 0
 };
 
+/** W83793 **/
 
+static const char *w83793_names[] = {
+  SENSORS_W83793_PREFIX, NULL
+};
+
+static const FeatureDescriptor w83793_features[] = {
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(1), SENSORS_W83793_FAN_MIN(1), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(2), SENSORS_W83793_FAN_MIN(2), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(3), SENSORS_W83793_FAN_MIN(3), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(4), SENSORS_W83793_FAN_MIN(4), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(5), SENSORS_W83793_FAN_MIN(5), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(6), SENSORS_W83793_FAN_MIN(6), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(7), SENSORS_W83793_FAN_MIN(7), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(8), SENSORS_W83793_FAN_MIN(8), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(9), SENSORS_W83793_FAN_MIN(9), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(10), SENSORS_W83793_FAN_MIN(10), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(11), SENSORS_W83793_FAN_MIN(11), -1 } },
+  { fmtFans_0, rrdF0, DataType_rpm, 0, 0,
+    { SENSORS_W83793_FAN(12), SENSORS_W83793_FAN_MIN(12), -1 } },
+  { fmtTemps_1, rrdF1, DataType_temperature, 0, 0,
+    { SENSORS_W83793_TEMP(1), SENSORS_W83793_TEMP_CRIT(1), SENSORS_W83793_TEMP_CRIT_HYST(1), -1 } },
+  { fmtTemps_1, rrdF1, DataType_temperature, 0, 0,
+    { SENSORS_W83793_TEMP(2), SENSORS_W83793_TEMP_CRIT(2), SENSORS_W83793_TEMP_CRIT_HYST(2), -1 } },
+  { fmtTemps_1, rrdF1, DataType_temperature, 0, 0,
+    { SENSORS_W83793_TEMP(3), SENSORS_W83793_TEMP_CRIT(3), SENSORS_W83793_TEMP_CRIT_HYST(3), -1 } },
+  { fmtTemps_1, rrdF1, DataType_temperature, 0, 0,
+    { SENSORS_W83793_TEMP(4), SENSORS_W83793_TEMP_CRIT(4), SENSORS_W83793_TEMP_CRIT_HYST(4), -1 } },
+  { fmtTemps_0, rrdF0, DataType_temperature, 0, 0,
+    { SENSORS_W83793_TEMP(5), SENSORS_W83793_TEMP_CRIT(5), SENSORS_W83793_TEMP_CRIT_HYST(5), -1 } },
+  { fmtTemps_0, rrdF0, DataType_temperature, 0, 0,
+    { SENSORS_W83793_TEMP(6), SENSORS_W83793_TEMP_CRIT(6), SENSORS_W83793_TEMP_CRIT_HYST(6), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(0), SENSORS_W83793_IN_MIN(0), SENSORS_W83793_IN_MAX(0), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(1), SENSORS_W83793_IN_MIN(1), SENSORS_W83793_IN_MAX(1), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(2), SENSORS_W83793_IN_MIN(2), SENSORS_W83793_IN_MAX(2), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(3), SENSORS_W83793_IN_MIN(3), SENSORS_W83793_IN_MAX(3), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(4), SENSORS_W83793_IN_MIN(4), SENSORS_W83793_IN_MAX(4), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(5), SENSORS_W83793_IN_MIN(5), SENSORS_W83793_IN_MAX(5), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(6), SENSORS_W83793_IN_MIN(6), SENSORS_W83793_IN_MAX(6), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(7), SENSORS_W83793_IN_MIN(7), SENSORS_W83793_IN_MAX(7), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(8), SENSORS_W83793_IN_MIN(8), SENSORS_W83793_IN_MAX(8), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(9), SENSORS_W83793_IN_MIN(9), SENSORS_W83793_IN_MAX(9), -1 } },
+  { fmtVolts_2, rrdF2, DataType_voltage, 0, 0,
+    { SENSORS_W83793_IN(10), SENSORS_W83793_IN_MIN(10), SENSORS_W83793_IN_MAX(10), -1 } },
+  { fmtVolt_3, rrdF3, DataType_voltage, 0, 0,
+    { SENSORS_W83793_VID0, -1 } },
+  { fmtVolt_3, rrdF3, DataType_voltage, 0, 0,
+    { SENSORS_W83793_VID1, -1 } },
+  { NULL }
+};
+
+static const ChipDescriptor w83793_chip = {
+  w83793_names, w83793_features, 0, 0
+};
+
+
 /** ALL **/
 
 const ChipDescriptor * const knownChips[] = {
@@ -1314,5 +1390,6 @@
   &f71805f_chip,
   &vt1211_chip,
   &k8temp_chip,
+  &w83793_chip,
   NULL
 };

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Sebastian Thias

Jean,

thank you very much for your reply and your patch. I'll test it during the next days and give you report!

Thanks and greetings!
Sebastian

Quoted 16 lines · Jean Delvare

Hi again Sebastian,

Quoted 4 lines · Jean Delvare
Quoted 1 line · Sebastian Thias

Any idea what could be wrong...?

sensord simply lacks support for the w83793 driver, which is rather recent.

Here's a patch adding support for the w83793 driver to sensord. It's untested as I do not have the hardware. You can give it a try and report.

Known limitations:
* Alarms are not supported.
* You may have to add ignore statements in sensors.conf for missing features.

Signature · 19 lines
ATEBIS GmbH
Welterstraße 57
57072 Siegen

Internet: www.atebis.info
eMail: [email protected]

Telefon: 0271-31316950
Telefax: 0271-31316951

Handelsregister: Siegen, HRB 8330
USt-IdNr.: DE 254 237 499
Geschäftsführer: Mario Afholderbach, Sebastian Thias
Sitz der Gesellschaft: Siegen

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#4 lore raw
In reply to Sebastian Thias

Hi Jean,

I applied the patch and recompiled lm_sensors.

Trying sensord with your patch yielded:

sensord: Error getting sensor validity: w83793/#10

Sensord even gives this error-message if I add ignore statements for all sensor-features in sensors.conf.

It works, though, if I comment out the element

	SENSORS_W83793_IN(10)

in chips.c

Thanks a lot!

Sincerely
Sebastian

Quoted 18 lines · Jean Delvare

Hi again Sebastian,

Quoted 4 lines · Jean Delvare
Quoted 1 line · Sebastian Thias

Any idea what could be wrong...?

sensord simply lacks support for the w83793 driver, which is rather recent.

Here's a patch adding support for the w83793 driver to sensord. It's untested as I do not have the hardware. You can give it a try and report.

Known limitations:
* Alarms are not supported.
* You may have to add ignore statements in sensors.conf for missing features.

Signature · 19 lines
ATEBIS GmbH
Welterstraße 57
57072 Siegen

Internet: www.atebis.info
eMail: [email protected]

Telefon: 0271-31316950
Telefax: 0271-31316951

Handelsregister: Siegen, HRB 8330
USt-IdNr.: DE 254 237 499
Geschäftsführer: Mario Afholderbach, Sebastian Thias
Sitz der Gesellschaft: Siegen

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#5 lore raw
In reply to Sebastian Thias

Hi Sebastian,

Quoted 4 lines · ATEBIS GmbH

I applied the patch and recompiled lm_sensors.

Trying sensord with your patch yielded:

Quoted 8 lines

sensord: Error getting sensor validity: w83793/#10

Sensord even gives this error-message if I add ignore statements for all sensor-features in sensors.conf.

It works, though, if I comment out the element

	SENSORS_W83793_IN(10)

in chips.c

Oops, yes, you're correct. The W83793 has no in10. I've fixed my patch and applied it to SVN now.

Quoted 1 line

Thanks a lot!

You're welcome. Thanks for your testing and report.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors