From: Michael Poetters Date: Thu, 9 Nov 2017 05:14:54 +0000 (+0100) Subject: nut: add readout of power X-Git-Tag: collectd-5.11.0~25^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e41676f7a5aebf2c6b64416d1122eb16d8f14ea;p=thirdparty%2Fcollectd.git nut: add readout of power --- diff --git a/src/nut.c b/src/nut.c index ae48692b8..ead149d7d 100644 --- a/src/nut.c +++ b/src/nut.c @@ -315,6 +315,8 @@ static int nut_read(user_data_t *user_data) { nut_submit(ups, "frequency", "output", value); else if (strcmp("output.voltage", key) == 0) nut_submit(ups, "voltage", "output", value); + else if (strcmp("output.realpower", key) == 0) + nut_submit(ups, "power", "output", value); } else if (strncmp("ups.", key, 4) == 0) { if (strcmp("ups.load", key) == 0) nut_submit(ups, "percent", "load", value);