Error using NetworkUpsToolsBinding

Hey all,

my openhab began posting many errors from my networkupstoolsbinding… and the strangest thing is: the binding seems to work - all data of my usv is available.
But it spams my log and … i really would like to understand where this keeps coming from.

first of all the error:

2017-09-14 21:41:25.169 [ERROR] [ools.internal.NetworkUpsToolsBinding] - Nut processing error
[NutException]DRIVER-NOT-CONNECTED : 
	at org.networkupstools.jnut.Client.detectError(Client.java:407)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.networkupstools.jnut.Client.get(Client.java:503)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.networkupstools.jnut.Device.getVariable(Device.java:236)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.openhab.binding.networkupstools.internal.NetworkUpsToolsBinding.execute(NetworkUpsToolsBinding.java:102)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:157)[205:org.openhab.core.compat1x:2.1.0]
	at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:169)[205:org.openhab.core.compat1x:2.1.0] 

and

017-09-14 21:27:34.732 [ERROR] [ools.internal.NetworkUpsToolsBinding] - Nut processing error
java.net.ConnectException: Verbindungsaufbau abgelehnt (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method)[:1.8.0_144]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)[:1.8.0_144]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)[:1.8.0_144]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)[:1.8.0_144]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[:1.8.0_144]
	at java.net.Socket.connect(Socket.java:589)[:1.8.0_144]
	at java.net.Socket.connect(Socket.java:538)[:1.8.0_144]
	at java.net.Socket.<init>(Socket.java:434)[:1.8.0_144]
	at java.net.Socket.<init>(Socket.java:211)[:1.8.0_144]
	at org.networkupstools.jnut.StringLineSocket.connect(StringLineSocket.java:77)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.networkupstools.jnut.StringLineSocket.<init>(StringLineSocket.java:66)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.networkupstools.jnut.Client.connect(Client.java:208)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.networkupstools.jnut.Client.connect(Client.java:182)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.networkupstools.jnut.Client.<init>(Client.java:165)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.openhab.binding.networkupstools.internal.NetworkUpsToolsBinding.execute(NetworkUpsToolsBinding.java:98)[204:org.openhab.binding.networkupstools:1.10.0]
	at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:157)[205:org.openhab.core.compat1x:2.1.0]
	at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:169)[205:org.openhab.core.compat1x:2.1.0] 

Most config is done on the nut inside my ubuntu-server and the binding connects there. The code of the service is:

# Refresh interval for state updates in milliseconds (optional)
refresh=10000

# UPS device name
ups1.device=APCX750
ups2.device=APC10K

# UPS server hostname (optional)
ups1.host=127.0.0.1
ups2.host=127.0.0.1

# UPS server port (optional)
ups1.port=3493
ups2.port=3493

# UPS server login (optional)
ups1.login=admin
ups2.login=admin

# UPS server pass (optional)
ups1.pass=[...]
ups2.pass=[...]

items file is:

/* APC in Erbstadt */
Number UpsErbstadt_BatteryRuntime     "Batterie Laufzeit"        { networkupstools="ups1:battery.runtime" }
Number UpsErbstadt_InputVoltage       "Input Voltage"            { networkupstools="ups1:input.voltage" }
Number UpsErbstadt_BatteryRuntimeLow  "Batterie Laufzeit Low"    { networkupstools="ups1:battery.runtime.low" }
Number UpsErbstadt_Temperature        "Temperatur"               { networkupstools="ups1:ups.temperature" }
Number UpsErbstadt_BatteryCharge      "Battery Charge"           { networkupstools="ups1:battery.charge" }
Number UpsErbstadt_Load               "output voltage [%.1f V]"  { networkupstools="ups1:ups.load" }
String UPS_APC_Erbstadt_Status        "Status [%s]"              { networkupstools="ups1:ups.status" }
String UPS_APC_Erbstadt_TestDatum     "Testdatum"                { networkupstools="ups1:ups.test.date" }
String UPS_APC_Erbstadt_TestErgebnis  "Testergebnis"             { networkupstools="ups1:ups.test.result" }

/* APC im Büro */
Number UpsRobertBosch_Temperature        "Temperatur"               { networkupstools="ups2:ups.temperature" }
Number UpsRobertBosch_BatteryRuntime     "Batterie Laufzeit"        { networkupstools="ups2:battery.runtime" }
Number UpsRobertBosch_InputVoltage       "Input Voltage"            { networkupstools="ups2:input.voltage" }
Number UpsRobertBosch_BatteryRuntimeLow  "Batterie Laufzeit Low"    { networkupstools="ups2:battery.runtime.low" }
Number UpsRobertBosch_BatteryCharge      "Battery Charge"           { networkupstools="ups2:battery.charge" }
Number UpsRobertBosch_Load               "output voltage [%.1f V]"  { networkupstools="ups2:ups.load" }
String UPS_APC_RobertBosch_Status        "Status [%s]"              { networkupstools="ups2:ups.status" }

´
and the nut-code is:

[APCX750]
        driver = snmp-ups
        mibs = apcc
        desc = "APC AP9630"
        port = [ip goes here]
        snmp_version = v1
        community = [community]
        pollfreq = 30

[APC10K]
        driver = snmp-ups
        mibs = apcc
        desc = "APC 10K"
        port = [ip goes here]
        snmp_version = v1
        community = [community]
        pollfreq = 30

Log-File events looks like:

2017-09-14 21:27:05.024 [ItemStateChangedEvent     ] - UpsRobertBosch_Temperature changed from NULL to 29.0
2017-09-14 21:27:05.030 [ItemStateChangedEvent     ] - UpsRobertBosch_BatteryRuntime changed from NULL to 2640.0
2017-09-14 21:27:05.034 [ItemStateChangedEvent     ] - UpsRobertBosch_InputVoltage changed from NULL to 228.0
2017-09-14 21:27:05.036 [ItemStateChangedEvent     ] - UpsRobertBosch_BatteryRuntimeLow changed from NULL to 120.0
2017-09-14 21:27:05.039 [ItemStateChangedEvent     ] - UpsRobertBosch_BatteryCharge changed from NULL to 100.0
2017-09-14 21:27:05.041 [ItemStateChangedEvent     ] - UpsRobertBosch_Load changed from NULL to 32.0
2017-09-14 21:27:05.043 [ItemStateChangedEvent     ] - UPS_APC_RobertBosch_Status changed from NULL to OL

(that was right after reboot…)

So… everything works… but openhab-binding tells nothing works. And that is not nice :frowning:

Any idea for me??

Thanks,
Patrick