Use proper UPS identifier in Reporting

Description

UPS reporting page is displaying a blank screen in FreeNAS 11.3-BETA1. The UPS service is up and configured. The "upsc" command displays the status of the UPS without issue.

root@freenas[~]# upsc cp1350
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 20
battery.mfr.date: CPS
battery.runtime: 2234
battery.runtime.low: 300
battery.type: PbAcid
battery.voltage: 27.3
battery.voltage.nominal: 24
device.mfr: CPS
device.model: CP1350AVRLCDa
device.serial: CDNHY2007167
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ugen0.5
driver.parameter.synchronous: no
driver.version: 2.7.4
driver.version.data: CyberPower HID 0.4
driver.version.internal: 0.41
input.voltage: 118.0
input.voltage.nominal: 120
output.voltage: 142.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.load: 22
ups.mfr: CPS
ups.model: CP1350AVRLCDa
ups.productid: 0501
ups.realpower.nominal: 815
ups.serial: CDNHY20071

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Vladimir Vinogradenko November 15, 2019 at 11:25 AM

 yes, that what the issue that has been addressed. Thank you.

Erik Moe November 15, 2019 at 3:15 AM

Just to confirm, after looking at the PR, I changed the identifier of my UPS from "cp1350" to "ups" and the report page for the UPS loaded as expected.

Bug Clerk November 14, 2019 at 1:54 PM

Erik Moe November 13, 2019 at 1:34 AM

Providing output as requested.  I did notice there are rrd files in /var/db/collectd/rrd/localhost/nut-cp1350.

root@freenas[~]# midclt call reporting.graphs | jq .
[
{
"name": "cpu",
"title": "CPU Usage",
"vertical_label": "%CPU",
"identifiers": null
},
{
"name": "cputemp",
"title": "CPU Temperature",
"vertical_label": "°C",
"identifiers": null
},
{
"name": "disktemp",
"title": "Disk Temperature {identifier}",
"vertical_label": "°C",
"identifiers": [
"ada0",
"ada1",
"ada2",
"ada3",
"ada4",
"ada5",
"ada6",
"ada7"
]
},
{
"name": "interface",
"title": "Interface Traffic ({identifier})",
"vertical_label": "Bits/s",
"identifiers": [
"ixl0",
"ixl1"
]
},
{
"name": "memory",
"title": "Physical memory utilization",
"vertical_label": "Bytes",
"identifiers": null
},
{
"name": "load",
"title": "System Load",
"vertical_label": "Processes",
"identifiers": null
},
{
"name": "processes",
"title": "Processes",
"vertical_label": "Processes",
"identifiers": null
},
{
"name": "swap",
"title": "Swap Utilization",
"vertical_label": "Bytes",
"identifiers": null
},
{
"name": "df",
"title": "Disk space ({identifier})",
"vertical_label": "Bytes",
"identifiers": [
"/",
"/mnt/tank",
"/mnt/tank/iocage",
"/mnt/tank/dvr_share",
"/mnt/tank/iocage/log",
"/mnt/tank/iocage/jails",
"/mnt/tank/iocage/download",
"/mnt/tank/iocage/releases",
"/mnt/tank/freenas_share",
"/mnt/tank/iocage/jails/channels_dvr",
"/mnt/tank/iocage/download/11.3-RELEASE",
"/mnt/tank/iocage/download/11.2-RELEASE",
"/mnt/tank/iso_lib",
"/mnt/tank/iocage/releases/11.2-RELEASE",
"/mnt/tank/photo_share",
"/mnt/tank/iocage/jails/channels_dvr/root",
"/mnt/tank/iocage/releases/11.3-RELEASE",
"/mnt/tank/iocage/releases/11.2-RELEASE/root",
"/mnt/tank/iocage/templates",
"/mnt/tank/iocage/images",
"/mnt/tank/iocage/releases/11.3-RELEASE/root"
]
},
{
"name": "uptime",
"title": "Uptime",
"vertical_label": "Days",
"identifiers": null
},
{
"name": "ctl",
"title": "SCSI target port ({identifier})",
"vertical_label": "Bytes/s",
"identifiers": [
"iscsi",
"tpc"
]
},
{
"name": "disk",
"title": "Disk I/O ({identifier})",
"vertical_label": "Bytes/s",
"identifiers": [
"ada0",
"ada1",
"ada2",
"ada3",
"ada4",
"ada5",
"ada6",
"ada7"
]
},
{
"name": "diskgeombusy",
"title": "Disk Busy ({identifier})",
"vertical_label": "Percent",
"identifiers": [
"ada0",
"ada1",
"ada2",
"ada3",
"ada4",
"ada5",
"ada6",
"ada7"
]
},
{
"name": "diskgeomlatency",
"title": "Disk Latency ({identifier})",
"vertical_label": "Time,msec",
"identifiers": [
"ada0",
"ada1",
"ada2",
"ada3",
"ada4",
"ada5",
"ada6",
"ada7"
]
},
{
"name": "diskgeomopsrwd",
"title": "Disk Operations detailed ({identifier})",
"vertical_label": "Operations/s",
"identifiers": [
"ada0",
"ada1",
"ada2",
"ada3",
"ada4",
"ada5",
"ada6",
"ada7"
]
},
{
"name": "diskgeomqueue",
"title": "Pending I/O requests on ({identifier})",
"vertical_label": "Requests",
"identifiers": [
"ada0",
"ada1",
"ada2",
"ada3",
"ada4",
"ada5",
"ada6",
"ada7"
]
},
{
"name": "arcsize",
"title": "ARC Size",
"vertical_label": "Bytes",
"identifiers": null
},
{
"name": "arcratio",
"title": "ARC Hit Ratio",
"vertical_label": "Hits (%)",
"identifiers": null
},
{
"name": "arcresult",
"title": "ARC Requests ({identifier})",
"vertical_label": "Requests",
"identifiers": [
"demand_data",
"demand_metadata",
"prefetch_data",
"prefetch_metadata"
]
},
{

}
]
root@freenas[~]# ls -l /var/db/collectd/rrd/localhost/
total 487
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 aggregation-cpu-average
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 aggregation-cpu-max
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 aggregation-cpu-min
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 aggregation-cpu-num
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 aggregation-cpu-stddev
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 aggregation-cpu-sum
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 cpu-0
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 cpu-1
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 cpu-2
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 cpu-3
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 cpu-4
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 cpu-5
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 cpu-6
drwxr-xr-x 2 root wheel 7 Oct 19 14:32 cpu-7
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 cputemp-0
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 cputemp-1
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 cputemp-2
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 cputemp-3
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 cputemp-4
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 cputemp-5
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 cputemp-6
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 cputemp-7
drwxr-xr-x 2 root wheel 8 Oct 19 14:31 ctl-ioctl
drwxr-xr-x 2 root wheel 8 Nov 9 08:05 ctl-iscsi
drwxr-xr-x 2 root wheel 8 Oct 19 14:31 ctl-tpc
drwxr-xr-x 2 root wheel 5 Oct 19 14:31 df-mnt-tank
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-dvr_share
drwxr-xr-x 2 root wheel 5 Oct 19 14:53 df-mnt-tank-freenas_share
drwxr-xr-x 2 root wheel 5 Oct 19 20:00 df-mnt-tank-iocage
drwxr-xr-x 2 root wheel 5 Oct 19 20:00 df-mnt-tank-iocage-download
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-iocage-download-11.2-RELEASE
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-iocage-download-11.3-RELEASE
drwxr-xr-x 2 root wheel 5 Oct 19 20:00 df-mnt-tank-iocage-images
drwxr-xr-x 2 root wheel 5 Oct 19 20:00 df-mnt-tank-iocage-jails
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-iocage-jails-channels_dvr
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-iocage-jails-channels_dvr-root
drwxr-xr-x 2 root wheel 5 Oct 19 20:00 df-mnt-tank-iocage-log
drwxr-xr-x 2 root wheel 5 Oct 19 20:00 df-mnt-tank-iocage-releases
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-iocage-releases-11.2-RELEASE
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-iocage-releases-11.2-RELEASE-root
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-iocage-releases-11.3-RELEASE
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-iocage-releases-11.3-RELEASE-root
drwxr-xr-x 2 root wheel 5 Oct 19 20:00 df-mnt-tank-iocage-templates
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-iso_lib
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 df-mnt-tank-photo_share
drwxr-xr-x 2 root wheel 5 Oct 19 14:31 df-root
drwxr-xr-x 2 root wheel 6 Oct 19 14:31 disk-ada0
drwxr-xr-x 2 root wheel 6 Oct 19 14:31 disk-ada1
drwxr-xr-x 2 root wheel 6 Oct 19 14:31 disk-ada2
drwxr-xr-x 2 root wheel 6 Oct 19 14:31 disk-ada3
drwxr-xr-x 2 root wheel 6 Oct 19 14:31 disk-ada4
drwxr-xr-x 2 root wheel 6 Oct 19 14:31 disk-ada5
drwxr-xr-x 2 root wheel 6 Oct 19 14:31 disk-ada6
drwxr-xr-x 2 root wheel 6 Oct 19 14:31 disk-ada7
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 disktemp-ada0
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 disktemp-ada1
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 disktemp-ada2
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 disktemp-ada3
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 disktemp-ada4
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 disktemp-ada5
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 disktemp-ada6
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 disktemp-ada7
drwxr-xr-x 2 root wheel 50 Oct 19 14:31 geom_stat
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 interface-bridge0
drwxr-xr-x 2 root wheel 5 Oct 19 14:31 interface-ixl0
drwxr-xr-x 2 root wheel 5 Oct 19 14:31 interface-ixl1
drwxr-xr-x 2 root wheel 5 Nov 9 07:57 interface-vnet0.1
drwxr-xr-x 2 root wheel 5 Nov 10 15:41 interface-vnet0.2
drwxr-xr-x 2 root wheel 3 Oct 19 14:31 load
drwxr-xr-x 2 root wheel 8 Oct 19 14:31 memory
drwxr-xr-x 2 root wheel 23 Nov 9 07:57 nfsstat-client
drwxr-xr-x 2 root wheel 8 Nov 9 07:57 nut-cp1350
drwxr-xr-x 2 root wheel 9 Oct 19 14:31 processes

 

root@freenas[~]# ls -l /var/db/collectd/rrd/localhost/nut-cp1350
total 235
rw-rr- 1 root wheel 148648 Nov 12 19:32 percent-charge.rrd
rw-rr- 1 root wheel 148648 Nov 12 19:32 percent-load.rrd
rw-rr- 1 root wheel 148648 Nov 12 19:32 timeleft-battery.rrd
rw-rr- 1 root wheel 148648 Nov 12 19:32 voltage-battery.rrd
rw-rr- 1 root wheel 148648 Nov 12 19:32 voltage-input.rrd
rw-rr- 1 root wheel 148648 Nov 12 19:32 voltage-output.rrd
root@freenas[~]#

William Gryzbowski November 12, 2019 at 6:17 PM

Please paste the output of 

 

midclt call reporting.graphs | jq .

ls -l /var/db/collectd/rrd/localhost/

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

More fields

Katalon Platform

Created November 9, 2019 at 2:37 PM
Updated July 1, 2022 at 4:43 PM
Resolved November 14, 2019 at 1:54 PM