I’m testing out the Systeminfo Binding on my Raspberry Pi 3 with OH 1.8.3.
Followed the instructions on the wiki about the binding. so at first i DIDN’T download the raspbian library into /usr/share/openhab/lib. But didnt work.
so i tried downloading the library the same way its written in the wiki for pre 1.9 build.
i still dont get values for my items.
Well, it seems ready for use, with the main difference being it tries to handle the native libraries internally instead of requiring you to locate, download and deploy the correct one.
It seems as if both the built-in native library resolver in SIGAR (in the 1.8.3 binding), as well as the OSGi Bundle-NativeCode instruction (1.9 binding), are getting tripped up by 64-bit ARM in some way. It’s possible that the native library is trying to load, but it can’t because it can’t resolve some lower dependency shared library (just a hypothesis). I recommend researching people’s experiences with SIGAR on RPi3 (without openHAB), just to see if there are any tricks to it.
I know you are running openHAB 1.8.3, but there is a completely new SystemInfo binding in openHAB 2 (beta) that might have better success on RPi3. Ultimately, a solution that does not rely on native libraries at all will be much easier to maintain as new architectures and OS’s come into use.
So I’m having the System Info binding raising many errors and warnings from the monent it is installed.
e.g.
==> /var/log/openhab2/openhab.log <==
2017-02-20 21:16:12.346 [ERROR] [systeminfo.handler.SysteminfoHandler] - No information for channel process#used0
org.openhab.binding.systeminfo.model.DeviceNotFoundException: Error while getting information for process with PID 0
at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcess(OshiSysteminfo.java:83)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcessMemoryUsage(OshiSysteminfo.java:523)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler.getInfoForChannel(SysteminfoHandler.java:410)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishDataForChannel(SysteminfoHandler.java:250)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishData(SysteminfoHandler.java:243)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler.access$1(SysteminfoHandler.java:237)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler$1.run(SysteminfoHandler.java:215)[188:org.openhab.binding.systeminfo:2.0.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_112]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_112]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_112]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_112]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_112]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_112]
2017-02-20 21:16:12.349 [WARN ] [systeminfo.handler.SysteminfoHandler] - Channel with ID process#used can not be updated! No information available for the selected device.
==> /var/log/openhab2/events.log <==
I am running Zulu java which is now default in OpenHABian:
Still got the same issue. Just did a fresh OH2 install and installed the binding via PaperUI. Immediately the logs are filled with the error as follows:
==> /var/log/openhab2/events.log <==
2017-03-23 19:19:31.839 [ItemStateChangedEvent ] - systeminfo_computer_91778559_cpu_load changed from 2.8 to 8.0
==> /var/log/openhab2/openhab.log <==
2017-03-23 19:19:32.384 [ERROR] [systeminfo.handler.SysteminfoHandler] - No information for channel process#used0
org.openhab.binding.systeminfo.model.DeviceNotFoundException: Error while getting information for process with PID 0
at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcess(OshiSysteminfo.java:83)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.model.OshiSysteminfo.getProcessMemoryUsage(OshiSysteminfo.java:523)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler.getInfoForChannel(SysteminfoHandler.java:410)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishDataForChannel(SysteminfoHandler.java:250)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler.publishData(SysteminfoHandler.java:243)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler.access$1(SysteminfoHandler.java:237)[188:org.openhab.binding.systeminfo:2.0.0]
at org.openhab.binding.systeminfo.handler.SysteminfoHandler$1.run(SysteminfoHandler.java:215)[188:org.openhab.binding.systeminfo:2.0.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_121]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0_121]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0_121]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_121]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
2017-03-23 19:19:32.386 [WARN ] [systeminfo.handler.SysteminfoHandler] - Channel with ID process#used can not be updated! No information available for the selected device.
==> /var/log/openhab2/events.log <==
I had a look in the oshi issues page but I couldn’t find any clue.