I want to monitor some hardware-related data on a headless CentOS6 server. More specifically, things like voltages, fan speeds, thermal data...
Since the server is headless, the best way I found to do this is through a php script that would format results from
ipmitool in a nice manner.
Of course, the webserver user is not root, that would be bad. Sadly, it seems a non-root user has no rights to access
/dev/ipmi*, which also makes sense.
ipmitool -U "someUser" -P "somePassword" sdr gives me the expected readings as root, but returns
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory Get Device ID command failed Unable to open SDR for reading
when I'm logged in as the webserver.
I searched a bit here and there, and was interested in
devfs.rules, but it seems it's not present on CentOS6, and I'm not familiar with mounting
/dev-related things anyway.
Could anyone point me in the right direction ?