sensord with rrd
I have lm_sensors running and "service lm_sensors status" gives correct results.
Now if I start sensord with
INTERVAL=0LOG_INTERVAL0m
then it works just fine and logs to syslog just like I want it to.
If I start it with
INTERVAL=0LOG_INTERVAL0m
RRD_LOGFILE=/var/log/sensors.rrd
then i get
sensord: creating round robin database
sensord: Error creating RRD: /var/log/sensors.rrd: No sensors detected
Is there something else I have to do to get the rrd part to work?
Thanks,
Mark
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Mark,
Quoted 16 lines · Mark Nienberg
I have
lm_sensorsrunning and "servicelm_sensorsstatus" gives correct results.Now if I start sensord with
INTERVAL=0
LOG_INTERVAL0mthen it works just fine and logs to syslog just like I want it to.
If I start it with
INTERVAL=0
LOG_INTERVAL0m
RRD_LOGFILE=/var/log/sensors.rrd
Quoted 6 lines
then i get
sensord: creating round robin database
sensord: Error creating RRD:/var/log/sensors.rrd: No sensors detectedIs there something else I have to do to get the rrd part to work?
No, it should work. That being said, where do you put these values? We do not have such an setup script for sensord. So please tell us:
* What version of lm-sensors you're using.
* Which distribution you are using.
And attach (or point us to) a copy of the initialization script which is reading the variables you listed above.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 26 lines · Jean Delvare
Hi Mark,
Quoted 16 lines · Mark Nienberg
I have
lm_sensorsrunning and "servicelm_sensorsstatus" gives correct results.Now if I start sensord with
INTERVAL=0
LOG_INTERVAL0mthen it works just fine and logs to syslog just like I want it to.
If I start it with
INTERVAL=0
LOG_INTERVAL0m
RRD_LOGFILE=/var/log/sensors.rrdQuoted 6 lines
then i get
sensord: creating round robin database
sensord: Error creating RRD:/var/log/sensors.rrd: No sensors detectedIs there something else I have to do to get the rrd part to work?
Quoted 7 lines
No, it should work. That being said, where do you put these values? We do not have such an setup script for sensord. So please tell us:
* What version of lm-sensors you're using.
* Which distribution you are using.And attach (or point us to) a copy of the initialization script which is reading the variables you listed above.
[root@gecko ~]# rpm -q lm_sensors sensord
lm_sensors-2.10.6-55.el5
sensord-2.10.6-55.el5
installed from atrpms on CentOS 5.2 x86_64.
But I should add that the sensord init script in the rpm package seemed wrong to me so I replaced it with one I copied from a fedora 7 install. This one just checks that lm_sensors is already running, which should insure that the correct modules are loaded. The other one was very old (from redhat 7.2) and actually tried to load modules. Here is the one I am using:
#!/bin/sh
#
# sensord: Hardware sensors monitoring daemon
#
# chkconfig: - 27 73 # description: Starts and stops hardware sensors monitoring daemon. # config: /etc/sysconfig/sensord # author: Filip Kalinski <[email protected]> # adapted for fedora by Hans de Goede <[email protected]>
# Source function library.
. /etc/rc.d/init.d/functions
# Get service config
if [ -f /etc/sysconfig/sensord ]; then
. /etc/sysconfig/sensord
fi
prog="sensord"
start() {
echo -n $"Starting $prog: "
if [ ! -f /var/lock/subsys/lm_sensors ]; then
echo -n "error lm_sensors service not started"
echo_failure
echo
exit 6
fi
daemon sensord \
${INTERVAL:+-i $INTERVAL} \
${LOG_INTERVAL:+-l $LOG_INTERVAL} \
${RRD_LOGFILE:+-r $RRD_LOGFILE} \
${RRD_INTERVAL:+-t $RRD_INTERVAL} \
w83792d-* -f daemon
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sensord
}RETVAL=0
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status sensord
RETVAL=$?
sensors
;;
restart|force-reload)
stop
start
;; *)
echo $"Usage: $0 {start|stop|restart|force-reload|status}" exit 3
esac
exit $RETVAL
stop() {
echo -n $"Stopping $prog: "
killproc sensord
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/sensord
}And here is the file /etc/sysconfig/sensord, which is included into above:
# configuration for hardware sensors monitoring daemon # in intervals use suffix "m" for minutes, "s" for seconds, "h" for hours # 0 means turning facility off
# interval between scanning alarms INTERVAL=0
# interval between logging to syslog LOG_INTERVAL0m
# interval between RRD logging #RRD_INTERVAL0m
# RRD db location
#RRD_LOGFILE=/var/log/sensors.rrd
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Mark,
Quoted 6 lines · Mark Nienberg
Quoted 5 lines · Jean Delvare
No, it should work. That being said, where do you put these values? We do not have such an setup script for sensord. So please tell us:
* What version of lm-sensors you're using.
* Which distribution you are using.
Quoted 6 lines
Quoted 2 lines
And attach (or point us to) a copy of the initialization script which is reading the variables you listed above.
[root@gecko ~]# rpm -q
lm_sensorssensord
lm_sensors-2.10.6-55.el5
sensord-2.10.6-55.el5
This is somewhat old...
Quoted 17 lines
installed from atrpms on CentOS 5.2
x86_64.But I should add that the sensord init script in the rpm package seemed wrong to me so I replaced it with one I copied from a fedora 7 install. This one just checks that
lm_sensorsis already running, which should insure that the correct modules are loaded. The other one was very old (from redhat 7.2) and actually tried to load modules. Here is the one I am using:
(...)
And here is the file/etc/sysconfig/sensord, which is included into above:# configuration for hardware sensors monitoring daemon # in intervals use suffix "m" for minutes, "s" for seconds, "h" for hours # 0 means turning facility off# interval between scanning alarms INTERVAL=0
Quoted 8 lines
# interval between logging to syslog LOG_INTERVAL0m# interval between RRD logging #RRD_INTERVAL0m# RRD db location
#RRD_LOGFILE=/var/log/sensors.rrd
What hardware monitoring chip do you have? sensord in lm-sensors 2.10.x lacks support for many recent chips. Could be that logging works somewhat in generic mode but rrd supports need chip-specific support.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 5 lines · Jean Delvare
Quoted 3 lines
[root@gecko ~]# rpm -q
lm_sensorssensord
lm_sensors-2.10.6-55.el5
sensord-2.10.6-55.el5This is somewhat old...
Agreed, but it is the latest rpm I could find already built for centOS 5.2.
Quoted 3 lines
What hardware monitoring chip do you have? sensord in lm-sensors 2.10.x lacks support for many recent chips. Could be that logging works somewhat in generic mode but rrd supports need chip-specific support.
See my post from Jan 5 with subject "Asus KFN4-DRE board".
http://article.gmane.org/gmane.linux.drivers.sensors/18601
You can see that I have tried specifically setting the chip in the sensord init file, but it didn't help.
Mark
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 13 lines · Mark Nienberg
Quoted 5 lines · Jean Delvare
Quoted 3 lines
[root@gecko ~]# rpm -q
lm_sensorssensord
lm_sensors-2.10.6-55.el5
sensord-2.10.6-55.el5This is somewhat old...
Agreed, but it is the latest rpm I could find already built for centOS 5.2.
Quoted 3 lines
What hardware monitoring chip do you have? sensord in lm-sensors 2.10.x lacks support for many recent chips. Could be that logging works somewhat in generic mode but rrd supports need chip-specific support.
Quoted 6 lines
See my post from Jan 5 with subject "Asus KFN4-DRE board".
http://article.gmane.org/gmane.linux.drivers.sensors/18601
You can see that I have tried specifically setting the chip in the sensord init file, but it didn't help.
I confirm that sensord in lm-sensors 2.10 has no support for the w83792d. You need lm-sensors 3.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 16 lines · Jean Delvare
Quoted 15 lines · Mark Nienberg
Quoted 5 lines · Jean Delvare
Quoted 3 lines
[root@gecko ~]# rpm -q
lm_sensorssensord
lm_sensors-2.10.6-55.el5
sensord-2.10.6-55.el5This is somewhat old...
Agreed, but it is the latest rpm I could find already built for centOS 5.2.
Quoted 3 lines
What hardware monitoring chip do you have? sensord in lm-sensors 2.10.x lacks support for many recent chips. Could be that logging works somewhat in generic mode but rrd supports need chip-specific support.
See my post from Jan 5 with subject "Asus KFN4-DRE board".
Quoted 8 lines
Quoted 4 lines
http://article.gmane.org/gmane.linux.drivers.sensors/18601
You can see that I have tried specifically setting the chip in the sensord init file, but it didn't help.
I confirm that sensord in lm-sensors 2.10 has no support for the w83792d. You need lm-sensors 3.
FYI: I just installed CentOS 5.2 on a machine here and had to go back to lm-sensors 2.10.6, as the 3.0.3 version would not produce alarms in the sensors output, even when readings were beyond their configured limits. After moving back to 2.10.6, the alarms worked as expected. My motherboard and sensors chip is different than the OP's, so this may not apply to him.
Note: I did post a question to this list about this issue, but have yet to receive any responses.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Mark,
Quoted 6 lines · Mark E. Hansen
FYI: I just installed CentOS 5.2 on a machine here and had to go back to lm-sensors 2.10.6, as the 3.0.3 version would not produce alarms in the sensors output, even when readings were beyond their configured limits. After moving back to 2.10.6, the alarms worked as expected. My motherboard and sensors chip is different than the OP's, so this may not apply to him.
Nice thread hi-jacking ;)
Quoted 2 lines
Note: I did post a question to this list about this issue, but have yet to receive any responses.
That was during vacation, when not that many developers take the time to read the mailing list.
Alarms are the last piece that has been ported to the standard sysfs interface (which lm-sensors 3 builds on top of.) See
http://www.lm-sensors.org/ticket/2261
for a list of drivers that have been fixed in recent kernels. So basically for proper alarm support with lm-sensors 3.x you need a recent enough kernel.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 2 lines · Jean Delvare
I confirm that sensord in lm-sensors 2.10 has no support for the w83792d. You need lm-sensors 3.
Got it. Thanks for your help.
Mark Nienberg
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 11 lines · Jean Delvare
Hi Mark,
Quoted 6 lines · Mark E. Hansen
FYI: I just installed CentOS 5.2 on a machine here and had to go back to lm-sensors 2.10.6, as the 3.0.3 version would not produce alarms in the sensors output, even when readings were beyond their configured limits. After moving back to 2.10.6, the alarms worked as expected. My motherboard and sensors chip is different than the OP's, so this may not apply to him.
Nice thread hi-jacking ;)
Sorry, I wasn't trying to hijack. Just wanted to inform the OP of the issue before he went to the trouble of installing 3.0.3.
Quoted 6 lines
Quoted 3 lines
Note: I did post a question to this list about this issue, but have yet to receive any responses.
That was during vacation, when not that many developers take the time to read the mailing list.
Vacation? What's that? :-)
Quoted 7 lines
Alarms are the last piece that has been ported to the standard sysfs interface (which lm-sensors 3 builds on top of.) See
http://www.lm-sensors.org/ticket/2261
for a list of drivers that have been fixed in recent kernels. So basically for proper alarm support with lm-sensors 3.x you need a recent enough kernel.
To get the chip in my motherboard working (with either version or lm-sensors) I had to get an updated kernel module (the chip is ITE IT8716F). The kernel module is 'it87'.
Is this what you mean, or is there other kernel support (other than the it87 module, I mean) which is needed to get the alarms to work?
Thanks,
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 8 lines · Mark E. Hansen
Quoted 6 lines · Jean Delvare
Alarms are the last piece that has been ported to the standard sysfs interface (which lm-sensors 3 builds on top of.) See
http://www.lm-sensors.org/ticket/2261
for a list of drivers that have been fixed in recent kernels. So basically for proper alarm support with lm-sensors 3.x you need a recent enough kernel.
Quoted 6 lines
To get the chip in my motherboard working (with either version or lm-sensors) I had to get an updated kernel module (the chip is ITE IT8716F). The kernel module is 'it87'.
Is this what you mean, or is there other kernel support (other than the it87 module, I mean) which is needed to get the alarms to work?
I mean the it87 module, indeed. But each kernel version has a different version of that module, it gets improved over time. Alarm support suitable for lm-sensors 3 was added in kernel 2.6.25.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 13 lines · Jean Delvare
Quoted 12 lines · Mark E. Hansen
Quoted 6 lines · Jean Delvare
Alarms are the last piece that has been ported to the standard sysfs interface (which lm-sensors 3 builds on top of.) See
http://www.lm-sensors.org/ticket/2261
for a list of drivers that have been fixed in recent kernels. So basically for proper alarm support with lm-sensors 3.x you need a recent enough kernel.To get the chip in my motherboard working (with either version or lm-sensors) I had to get an updated kernel module (the chip is ITE IT8716F). The kernel module is 'it87'.
Quoted 7 lines
Quoted 2 lines
Is this what you mean, or is there other kernel support (other than the it87 module, I mean) which is needed to get the alarms to work?
I mean the it87 module, indeed. But each kernel version has a different version of that module, it gets improved over time. Alarm support suitable for lm-sensors 3 was added in kernel 2.6.25.
Well, one of the folks on the CentOS forum said that support for my particular chip was in the 'upstream' kernel, and he created a kernel module from that source (I don't know which kernel version it was, specifically). I'll go back and ask him, then post a new question to this list about whether Alarm support should be in there.
Thanks, and Sorry Mark for the thread-stepping.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors