* [lm-sensors] sensord with rrd
@ 2009-01-13 18:26 Mark Nienberg
2009-01-14 10:32 ` Jean Delvare
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: Mark Nienberg @ 2009-01-13 18:26 UTC (permalink / raw)
To: lm-sensors
I have lm_sensors running and "service lm_sensors status" gives correct results.
Now if I start sensord with
INTERVAL=0
LOG_INTERVAL0m
then 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
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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
@ 2009-01-14 10:32 ` Jean Delvare
2009-01-14 17:57 ` Mark Nienberg
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Jean Delvare @ 2009-01-14 10:32 UTC (permalink / raw)
To: lm-sensors
Hi Mark,
On Tue, 13 Jan 2009 10:26:23 -0800, Mark Nienberg wrote:
> I have lm_sensors running and "service lm_sensors status" gives
> correct results.
>
> Now if I start sensord with
>
> INTERVAL=0
> LOG_INTERVAL0m
>
> then 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
>
> 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?
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.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
2009-01-14 10:32 ` Jean Delvare
@ 2009-01-14 17:57 ` Mark Nienberg
2009-01-14 18:44 ` Jean Delvare
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Mark Nienberg @ 2009-01-14 17:57 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
> Hi Mark,
>
> On Tue, 13 Jan 2009 10:26:23 -0800, Mark Nienberg wrote:
>> I have lm_sensors running and "service lm_sensors status" gives
>> correct results.
>>
>> Now if I start sensord with
>>
>> INTERVAL=0
>> LOG_INTERVAL0m
>>
>> then 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
>>
>> 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?
>
> 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 <filon@pld.org.pl>
# adapted for fedora by Hans de Goede <j.w.r.degoede@hhs.nl>
# 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
2009-01-14 10:32 ` Jean Delvare
2009-01-14 17:57 ` Mark Nienberg
@ 2009-01-14 18:44 ` Jean Delvare
2009-01-14 19:01 ` Mark Nienberg
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Jean Delvare @ 2009-01-14 18:44 UTC (permalink / raw)
To: lm-sensors
Hi Mark,
On Wed, 14 Jan 2009 09:57:00 -0800, Mark Nienberg wrote:
> Jean Delvare wrote:
> > 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
This is somewhat old...
> 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:
> (...)
> 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
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.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
` (2 preceding siblings ...)
2009-01-14 18:44 ` Jean Delvare
@ 2009-01-14 19:01 ` Mark Nienberg
2009-01-14 20:03 ` Jean Delvare
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Mark Nienberg @ 2009-01-14 19:01 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
>> [root@gecko ~]# rpm -q lm_sensors sensord
>> lm_sensors-2.10.6-55.el5
>> sensord-2.10.6-55.el5
>
> This is somewhat old...
Agreed, but it is the latest rpm I could find already built for centOS 5.2.
> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
` (3 preceding siblings ...)
2009-01-14 19:01 ` Mark Nienberg
@ 2009-01-14 20:03 ` Jean Delvare
2009-01-14 20:26 ` Mark E. Hansen
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Jean Delvare @ 2009-01-14 20:03 UTC (permalink / raw)
To: lm-sensors
On Wed, 14 Jan 2009 11:01:22 -0800, Mark Nienberg wrote:
> Jean Delvare wrote:
> >> [root@gecko ~]# rpm -q lm_sensors sensord
> >> lm_sensors-2.10.6-55.el5
> >> sensord-2.10.6-55.el5
> >
> > This is somewhat old...
>
> Agreed, but it is the latest rpm I could find already built for centOS 5.2.
>
> > 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.
I confirm that sensord in lm-sensors 2.10 has no support for the
w83792d. You need lm-sensors 3.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
` (4 preceding siblings ...)
2009-01-14 20:03 ` Jean Delvare
@ 2009-01-14 20:26 ` Mark E. Hansen
2009-01-14 20:39 ` Jean Delvare
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Mark E. Hansen @ 2009-01-14 20:26 UTC (permalink / raw)
To: lm-sensors
On 01/14/09 12:03, Jean Delvare wrote:
> On Wed, 14 Jan 2009 11:01:22 -0800, Mark Nienberg wrote:
>> Jean Delvare wrote:
>> >> [root@gecko ~]# rpm -q lm_sensors sensord
>> >> lm_sensors-2.10.6-55.el5
>> >> sensord-2.10.6-55.el5
>> >
>> > This is somewhat old...
>>
>> Agreed, but it is the latest rpm I could find already built for centOS 5.2.
>>
>> > 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.
>
> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
` (5 preceding siblings ...)
2009-01-14 20:26 ` Mark E. Hansen
@ 2009-01-14 20:39 ` Jean Delvare
2009-01-14 20:54 ` Mark Nienberg
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Jean Delvare @ 2009-01-14 20:39 UTC (permalink / raw)
To: lm-sensors
Hi Mark,
On Wed, 14 Jan 2009 12:26:45 -0800, Mark E. Hansen wrote:
> 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 ;)
> 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.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
` (6 preceding siblings ...)
2009-01-14 20:39 ` Jean Delvare
@ 2009-01-14 20:54 ` Mark Nienberg
2009-01-14 21:08 ` Mark E. Hansen
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Mark Nienberg @ 2009-01-14 20:54 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
` (7 preceding siblings ...)
2009-01-14 20:54 ` Mark Nienberg
@ 2009-01-14 21:08 ` Mark E. Hansen
2009-01-14 21:58 ` Jean Delvare
2009-01-14 22:12 ` Mark E. Hansen
10 siblings, 0 replies; 12+ messages in thread
From: Mark E. Hansen @ 2009-01-14 21:08 UTC (permalink / raw)
To: lm-sensors
On 01/14/09 12:39, Jean Delvare wrote:
> Hi Mark,
>
> On Wed, 14 Jan 2009 12:26:45 -0800, Mark E. Hansen wrote:
>> 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.
>
>> 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? :-)
>
> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
` (8 preceding siblings ...)
2009-01-14 21:08 ` Mark E. Hansen
@ 2009-01-14 21:58 ` Jean Delvare
2009-01-14 22:12 ` Mark E. Hansen
10 siblings, 0 replies; 12+ messages in thread
From: Jean Delvare @ 2009-01-14 21:58 UTC (permalink / raw)
To: lm-sensors
On Wed, 14 Jan 2009 13:08:27 -0800, Mark E. Hansen wrote:
> On 01/14/09 12:39, Jean Delvare wrote:
> > 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?
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.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [lm-sensors] sensord with rrd
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
` (9 preceding siblings ...)
2009-01-14 21:58 ` Jean Delvare
@ 2009-01-14 22:12 ` Mark E. Hansen
10 siblings, 0 replies; 12+ messages in thread
From: Mark E. Hansen @ 2009-01-14 22:12 UTC (permalink / raw)
To: lm-sensors
On 01/14/09 13:58, Jean Delvare wrote:
> On Wed, 14 Jan 2009 13:08:27 -0800, Mark E. Hansen wrote:
>> On 01/14/09 12:39, Jean Delvare wrote:
>> > 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?
>
> 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
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-01-14 22:12 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 18:26 [lm-sensors] sensord with rrd Mark Nienberg
2009-01-14 10:32 ` Jean Delvare
2009-01-14 17:57 ` Mark Nienberg
2009-01-14 18:44 ` Jean Delvare
2009-01-14 19:01 ` Mark Nienberg
2009-01-14 20:03 ` Jean Delvare
2009-01-14 20:26 ` Mark E. Hansen
2009-01-14 20:39 ` Jean Delvare
2009-01-14 20:54 ` Mark Nienberg
2009-01-14 21:08 ` Mark E. Hansen
2009-01-14 21:58 ` Jean Delvare
2009-01-14 22:12 ` Mark E. Hansen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.