pymouse
04-06-2007, 14:38
I am on RHEL4, and i want to have information on temperature of CPU and MotherBoard, but sensor isn't supported...
i see in source code (sensors.c) :
dir=opendir("/proc/sys/dev/sensors");
if(NULL == dir)
{
return SYSINFO_RET_FAIL;
}
while((entries=readdir(dir))!=NULL)
{
strscpy(filename,"/proc/sys/dev/sensors/");
zbx_strlcat(filename,entries->d_name,MAX_STRING_LEN);
zbx_strlcat(filename,name,MAX_STRING_LEN);
...
...
...
But with the kernel 2.6, the sensors interface has moved from /proc/sys/dev/sensors to /sys/bus/i2c
It's normal ?
i see in source code (sensors.c) :
dir=opendir("/proc/sys/dev/sensors");
if(NULL == dir)
{
return SYSINFO_RET_FAIL;
}
while((entries=readdir(dir))!=NULL)
{
strscpy(filename,"/proc/sys/dev/sensors/");
zbx_strlcat(filename,entries->d_name,MAX_STRING_LEN);
zbx_strlcat(filename,name,MAX_STRING_LEN);
...
...
...
But with the kernel 2.6, the sensors interface has moved from /proc/sys/dev/sensors to /sys/bus/i2c
It's normal ?