Ad Widget

Collapse

1.4 : Sensors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pymouse
    Junior Member
    • May 2007
    • 19

    #1

    1.4 : Sensors

    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) :

    Code:
    dir=opendir("[B]/proc/sys/dev/sensors[/B]");
    	if(NULL == dir)
    	{
    		return SYSINFO_RET_FAIL;
    	}
    
    	while((entries=readdir(dir))!=NULL)
    	{
    		strscpy(filename,"[B]/proc/sys/dev/sensors/[/B]");	
    		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 ?
Working...