Collectd-mod-nut can't gather UPS statistics

I have BananaPi BPI-R3 router with ups connected to it via usb. Router has configured NUT and nut-web-cgi. But I want to gather some statistics from my ups. So I installed Collectd and collectd-mod-nut. Version of collectd: 5.12.0-41

But collectd-mod-nut doesn't show any statistics. However I can see these entries in system log:

Sun Jan 22 14:05:29 2023 daemon.err collectd[2691]: nut plugin: nut_read: upscli_list_start (ups) failed: Write error: Broken pipe
Sun Jan 22 14:05:29 2023 daemon.err collectd[2691]: read-function of plugin `nut/ups@127.0.0.1:3494' failed. Will suspend it for 120.000 seconds.
Sun Jan 22 14:06:10 2023 daemon.err collectd[2691]: nut plugin: Connection to (127.0.0.1, 3494) established.
Sun Jan 22 14:06:10 2023 daemon.err collectd[2691]: nut plugin: Connection is unsecured (no SSL).

So collectd-mod-nut actually connects to the UPS. But I can't see any statistics from it.

In same time nut-web-cgi application properly shows UPS current status, power levels etc. Tried to create different port for nut-server (3493 for nut-web-cgi and 3494 for collectd-mod-nut) - no effect.

Current nut-web-cgi info:

No UPS statistics:

What is the meaning of "broken pipe" error?

Or just point me, where I can ask about my problem. Collectd github?

UPD. It seems, collectd-mod-nut write some info to /tmp/rrd/127.0.0.1 folder. But no graph in Luci.

It seems, other collectd modules write info to /tmp/rrd/OpenWrt folder. Why?

To the left of the "Display host" button there's a drop down menu with .. hosts, if you select 127.0.0.1 (which you've set in the NUT plugin, as the .. host) your data will be there.
Also you can omit the @host part from the nut plugin config if the ups server is on localhost.

Ok, thank you. I see statistics now.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.