Changeset 837
- Timestamp:
- 07/07/00 23:23:43 (13 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/CHANGES
r834 r837 18 18 Program sensors-detect: more robustness in case of unknown i2c adapters 19 19 Module w83781d: W83783S no longer crashes on unloading 20 Program sensord: more flexility, support for alarm scanning etc. 21 Program sensors: support for ignore setting on sensor alarms. 20 22 21 23 2.5.1 (20000618) -
lm-sensors/trunk/doc/progs
r661 r837 53 53 you run it, as you may need to set some variables first. 54 54 * prog/sensord/sensord (written in C, installed by `make install-prog-sensord') 55 This daemon logs sensor information every 5 minutes to the log file 56 /var/log/sensors, in a similar format to sensors (below). This is a bit 57 more lightweight than executing sensors every 5 minutes, depending on how 58 you look at things. Automatically picks up configuration updates and 59 responds to SIGHUP. 55 This daemon can be used to periodically log sensor readings from 56 the sensors hardware to syslog, and to alert (using syslog level ALERT) 57 when a sensor alarm is signalled; for example, if a fan fails, a temperature 58 limit is exceeded, etc. 60 59 * prog/sensors/sensors (written in C, installed by `make install') 61 60 This pretty-prints the information provided by the modules. It is a normal -
lm-sensors/trunk/prog/sensors/chips.c
r817 r837 416 416 free_the_label(&label); 417 417 418 if (!sensors_get_label(*name,SENSORS_SIS5595_ALARMS,&label)) { 418 if (!sensors_get_label_and_valid(*name,SENSORS_SIS5595_ALARMS,&label,&valid) 419 && valid) { 419 420 print_label(label,10); 420 421 printf("Board temperature input (usually LM75 chips) %s\n", … … 721 722 free_the_label(&label); 722 723 723 if (!sensors_get_label(*name,SENSORS_LM78_ALARMS,&label)) { 724 if (!sensors_get_label_and_valid(*name,SENSORS_LM78_ALARMS,&label,&valid) 725 && valid) { 724 726 print_label(label,10); 725 727 printf("Board temperature input (usually LM75 chips) %s\n", … … 905 907 free_the_label(&label); 906 908 907 if (!sensors_get_label(*name,SENSORS_GL518_BEEP_ENABLE,&label) && 908 !sensors_get_feature(*name,SENSORS_GL518_BEEP_ENABLE,&cur)) { 909 print_label(label,10); 910 if (cur < 0.5) 911 printf("Sound alarm disabled\n"); 912 else 913 printf("Sound alarm enabled\n"); 914 } else 915 printf("ERROR: Can't get BEEP data!\n"); 909 if (!sensors_get_label_and_valid(*name,SENSORS_GL518_BEEP_ENABLE,&label,&valid) 910 && valid) { 911 if (!sensors_get_feature(*name,SENSORS_GL518_BEEP_ENABLE,&cur)) { 912 print_label(label,10); 913 if (cur < 0.5) 914 printf("Sound alarm disabled\n"); 915 else 916 printf("Sound alarm enabled\n"); 917 } else 918 printf("ERROR: Can't get BEEP data!\n"); 919 } 916 920 free_the_label(&label); 917 921 } … … 1158 1162 free_the_label(&label); 1159 1163 1160 if (!sensors_get_label(*name,SENSORS_LM80_ALARMS,&label)) { 1164 if (!sensors_get_label_and_valid(*name,SENSORS_LM80_ALARMS,&label,&valid) 1165 && valid) { 1161 1166 if (alarms & LM80_ALARM_BTI) { 1162 1167 print_label(label,10); … … 1460 1465 free_the_label(&label); 1461 1466 1462 if (!sensors_get_label(*name,SENSORS_W83781D_ALARMS,&label)) { 1467 if (!sensors_get_label_and_valid(*name,SENSORS_W83781D_ALARMS,&label,&valid) 1468 && valid) { 1463 1469 print_label(label,10); 1464 1470 printf("Chassis intrusion detection %s %s\n", … … 1468 1474 free_the_label(&label); 1469 1475 1470 if (!sensors_get_label(*name,SENSORS_W83781D_BEEP_ENABLE,&label) && 1471 !sensors_get_feature(*name,SENSORS_W83781D_BEEP_ENABLE,&cur)) { 1472 print_label(label,10); 1473 if (cur < 0.5) 1474 printf("Sound alarm disabled\n"); 1475 else 1476 printf("Sound alarm enabled\n"); 1477 } else 1478 printf("ERROR: Can't get BEEP data!\n"); 1476 if (!sensors_get_label_and_valid(*name,SENSORS_W83781D_BEEP_ENABLE,&label,&valid) 1477 && valid) { 1478 if (!sensors_get_feature(*name,SENSORS_W83781D_BEEP_ENABLE,&cur)) { 1479 print_label(label,10); 1480 if (cur < 0.5) 1481 printf("Sound alarm disabled\n"); 1482 else 1483 printf("Sound alarm enabled\n"); 1484 } else 1485 printf("ERROR: Can't get BEEP data!\n"); 1486 } 1479 1487 free_the_label(&label); 1480 1488 }
