Temat: Collectd i modbus
Co może być przyczyną tego błędu ?
service_name_to_port_number: getaddrinfo failed: Servname not supported for ai_socktype
Przed zrestartowaniem usługi pobrałem aktualny czas
rdate ntp.task.gda.pl
Konfigurację modbusa w /etc/collectd.conf mam taką
<Plugin modbus>
<Data "voltage-input-1">
RegisterBase 0
RegisterType float
Type voltage
Instance "input-1"
</Data>
<Data "voltage-input-2">
RegisterBase 2
RegisterType float
Type voltage
Instance "input-2"
</Data>
<Host "User-Komputer">
Address "192.168.0.162"
Port "502"
Interval 10
<Slave 1>
Instance "power-supply"
Collect "voltage-input-1"
Collect "voltage-input-2"
</Slave>
</Host>
</Plugin>
i oczywiście załadowany plugin modbus'a