From 748de1077a1476026fc86cef9fe4c6c096136453 Mon Sep 17 00:00:00 2001 From: mmahacek Date: Tue, 5 Mar 2019 13:45:14 -0800 Subject: [PATCH 1/5] Create README.md --- ups-stats/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ups-stats/README.md diff --git a/ups-stats/README.md b/ups-stats/README.md new file mode 100644 index 0000000..61481a8 --- /dev/null +++ b/ups-stats/README.md @@ -0,0 +1,22 @@ +# UPS Stats + +This board provides stats for monitoring UPS units. It is designed around APC, and does use data that requires adding in some additional data collection as per https://wiki.opennms.org/wiki/APC_UPS#Additional_data_collection. + +## Details + +Provides metrics on UPS status. +For example: + +* Battery charge level +* Time Remaining +* Load +* Status of units +* Temperature +* In/out Voltage +* Battery pack health (if applicable) +... + +## Installation + +Modify SNMP collection to the additional OIDs listed at https://wiki.opennms.org/wiki/APC_UPS#Additional_data_collection +The board can be found here: https://grafana.com/dashboards/5090/ From 414fe5c724275ef525cafc4cb63a115c9dc0bbe4 Mon Sep 17 00:00:00 2001 From: mmahacek Date: Tue, 5 Mar 2019 13:48:52 -0800 Subject: [PATCH 2/5] Add files via upload --- ups-stats/UPS Stats-1551821920736.json | 1553 ++++++++++++++++++++++++ 1 file changed, 1553 insertions(+) create mode 100644 ups-stats/UPS Stats-1551821920736.json diff --git a/ups-stats/UPS Stats-1551821920736.json b/ups-stats/UPS Stats-1551821920736.json new file mode 100644 index 0000000..7178930 --- /dev/null +++ b/ups-stats/UPS Stats-1551821920736.json @@ -0,0 +1,1553 @@ +{ + "__inputs": [ + { + "name": "DS_OPENNMS_FAULTS", + "label": "OpenNMS Faults", + "description": "", + "type": "datasource", + "pluginId": "opennms-helm-fault-datasource", + "pluginName": "OpenNMS Faults" + }, + { + "name": "DS_OpenNMS-PM", + "label": "OpenNMS-PM", + "description": "", + "type": "datasource", + "pluginId": "opennms-helm-performance-datasource", + "pluginName": "OpenNMS Performance" + } + ], + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "5.4.3" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph", + "version": "5.0.0" + }, + { + "type": "panel", + "id": "natel-discrete-panel", + "name": "Discrete", + "version": "0.0.9" + }, + { + "type": "panel", + "id": "opennms-helm-alarm-table-panel", + "name": "Alarm Table", + "version": "" + }, + { + "type": "datasource", + "id": "opennms-helm-fault-datasource", + "name": "OpenNMS Faults", + "version": "1.0.0" + }, + { + "type": "datasource", + "id": "opennms-helm-performance-datasource", + "name": "OpenNMS Performance", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "singlestat", + "name": "Singlestat", + "version": "5.0.0" + }, + { + "type": "panel", + "id": "vonage-status-panel", + "name": "Status Panel", + "version": "1.0.9" + } + ], + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- Grafana --", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "description": "", + "editable": true, + "gnetId": null, + "graphTooltip": 1, + "id": null, + "iteration": 1551821480290, + "links": [], + "panels": [ + { + "columns": [ + { + "hidden": false, + "sort": false, + "style": { + "displayAs": "icon", + "pattern": "Severity", + "type": "severity" + }, + "text": "Severity", + "title": "Severity" + }, + { + "hidden": false, + "sort": false, + "style": { + "alias": "", + "colorMode": null, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "number", + "unit": "short" + }, + "text": "Node Label", + "title": "Node Label" + }, + { + "desc": true, + "hidden": false, + "sort": true, + "style": { + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "/.*Time/", + "type": "date" + }, + "text": "Last Event Time", + "title": "Last Event Time" + }, + { + "desc": true, + "hidden": false, + "sort": false, + "style": { + "alias": "", + "colorMode": null, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "number", + "unit": "short" + }, + "text": "Log Message", + "title": "Log Message" + }, + { + "hidden": false, + "sort": false, + "style": { + "decimals": 0, + "pattern": "Count", + "type": "number", + "unit": "short" + }, + "text": "Count", + "title": "Count" + }, + { + "desc": true, + "hidden": false, + "sort": false, + "style": { + "alias": "", + "colorMode": null, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "number", + "unit": "short" + }, + "text": "Acked By", + "title": "Acked By" + } + ], + "datasource": "${DS_OPENNMS_FAULTS}", + "fontSize": "90%", + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 26, + "links": [], + "pageSize": 20, + "scroll": true, + "severity": "row", + "showHeader": true, + "sort": { + "col": 2, + "desc": true + }, + "styles": [ + { + "displayAs": "icon", + "pattern": "Severity", + "type": "severity" + }, + { + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "/.*Time/", + "type": "date" + }, + { + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "Suppressed Until", + "type": "date" + }, + { + "pattern": "/.*ID/", + "type": "string" + }, + { + "pattern": "Description", + "sanitize": true, + "type": "string" + }, + { + "decimals": 0, + "pattern": "Count", + "type": "number", + "unit": "short" + }, + { + "alias": "", + "colorMode": null, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "decimals": 2, + "pattern": "/.*/", + "thresholds": [], + "type": "number", + "unit": "short" + } + ], + "targets": [ + { + "filter": { + "clauses": [ + { + "restriction": { + "attribute": "uei", + "comparator": { + "id": 2, + "label": "NE" + }, + "value": "uei.opennms.org/provisioner/provisioningAdapterFailed" + }, + "operator": { + "id": 1, + "label": "AND" + } + }, + { + "restriction": { + "clauses": [ + { + "restriction": { + "attribute": "uei", + "comparator": { + "id": 2, + "label": "NE" + }, + "value": "uei.opennms.org/nodes/dataCollectionFailed" + }, + "operator": { + "id": 1, + "label": "AND" + } + } + ] + }, + "operator": { + "id": 1, + "label": "AND" + } + }, + { + "restriction": { + "clauses": [ + { + "restriction": { + "attribute": "category.name", + "comparator": { + "id": 1, + "label": "EQ" + }, + "value": "Power" + }, + "operator": { + "id": 1, + "label": "AND" + } + }, + { + "restriction": { + "attribute": "category.name", + "comparator": { + "id": 1, + "label": "EQ" + }, + "value": "UPS" + }, + "operator": { + "id": 2, + "label": "OR" + } + } + ] + }, + "operator": { + "id": 1, + "label": "AND" + } + } + ], + "limit": 0 + }, + "limit": 0, + "refId": "A", + "type": "attribute" + } + ], + "title": "Recent Power Events", + "transform": "table", + "type": "opennms-helm-alarm-table-panel" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 13, + "panels": [], + "repeat": "UPS", + "title": "$UPS", + "type": "row" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": true, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "datasource": "${OpenNMS-PM}", + "decimals": null, + "format": "percent", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 0, + "y": 6 + }, + "id": 5, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "minSpan": 4, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "repeat": null, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "attribute": "apcpercent", + "hide": false, + "label": "", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "type": "attribute" + } + ], + "thresholds": "50,99", + "title": "Battery Status", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": true, + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(23, 212, 16, 0.97)" + ], + "datasource": "${OpenNMS-PM}", + "decimals": null, + "format": "s", + "gauge": { + "maxValue": 5400, + "minValue": 0, + "show": false, + "thresholdLabels": true, + "thresholdMarkers": true + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 2, + "y": 6 + }, + "hideTimeOverride": false, + "id": 1, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "minSpan": 6, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "repeat": null, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "aggregation": "AVERAGE", + "attribute": "apctime", + "hide": true, + "label": "raw", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "subattribute": "", + "type": "attribute" + }, + { + "expression": "raw / 100", + "label": "Time", + "refId": "B", + "type": "expression" + } + ], + "thresholds": "1800,3600", + "timeFrom": null, + "timeShift": null, + "title": "Time Remaining", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(50, 172, 45, 0.97)", + "rgba(237, 129, 40, 0.89)", + "rgba(245, 54, 54, 0.9)" + ], + "datasource": "${OpenNMS-PM}", + "decimals": 1, + "format": "percent", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 4, + "y": 6 + }, + "id": 2, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "minSpan": 6, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "repeat": null, + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": true + }, + "tableColumn": "", + "targets": [ + { + "attribute": "apcload", + "hide": false, + "label": "", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "type": "attribute" + } + ], + "thresholds": "50,75", + "title": "Load", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "backgroundColor": "rgba(128, 128, 128, 0.1)", + "colorMaps": [ + { + "color": "#CCC", + "text": "N/A" + }, + { + "color": "#CCC", + "text": "No Data" + }, + { + "color": "rgb(53, 210, 14)", + "text": "Online" + } + ], + "crosshairColor": "#8F070C", + "datasource": "${OpenNMS-PM}", + "display": "timeline", + "expandFromQueryS": 0, + "extendLastValue": true, + "gridPos": { + "h": 4, + "w": 3, + "x": 7, + "y": 6 + }, + "highlightOnMouseover": true, + "id": 7, + "legendSortBy": "-ms", + "lineColor": "rgba(128, 128, 128, 1.0)", + "links": [], + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "metricNameColor": "#000000", + "minSpan": 8, + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + }, + { + "from": "2.9", + "text": "On Battery", + "to": "3.1" + }, + { + "from": "3.9", + "text": "On Smart Battery", + "to": "4.1" + }, + { + "from": "4.9", + "text": "Sleeping", + "to": "5.1" + }, + { + "from": "5.9", + "text": "Software Bypass", + "to": "6.1" + }, + { + "from": "6.9", + "text": "Off", + "to": "7.1" + }, + { + "from": "7.9", + "text": "Rebooting", + "to": "8.1" + }, + { + "from": "8.9", + "text": "Switched Bypass", + "to": "9.1" + }, + { + "from": "9.9", + "text": "Hardware Failure Bypass", + "to": "10.1" + }, + { + "from": "10.9", + "text": "Sleeping Until Power Return", + "to": "11.1" + }, + { + "from": "11.9", + "text": "On Smart Trim", + "to": "12.2" + }, + { + "from": ".9", + "text": "Unknown", + "to": "1.1" + }, + { + "from": "1.9", + "text": "Online", + "to": "2.1" + } + ], + "repeat": null, + "rowHeight": 50, + "showLegend": true, + "showLegendNames": true, + "showLegendPercent": true, + "showLegendValues": true, + "showTimeAxis": true, + "targets": [ + { + "aggregation": "MAX", + "attribute": "apcstatus", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "type": "attribute" + } + ], + "textSize": 24, + "textSizeTime": 12, + "timeOptions": [ + { + "name": "Years", + "value": "years" + }, + { + "name": "Months", + "value": "months" + }, + { + "name": "Weeks", + "value": "weeks" + }, + { + "name": "Days", + "value": "days" + }, + { + "name": "Hours", + "value": "hours" + }, + { + "name": "Minutes", + "value": "minutes" + }, + { + "name": "Seconds", + "value": "seconds" + }, + { + "name": "Milliseconds", + "value": "milliseconds" + } + ], + "timePrecision": { + "name": "Minutes", + "value": "minutes" + }, + "timeTextColor": "#d8d9da", + "title": "UPS Status", + "type": "natel-discrete-panel", + "units": "short", + "useTimePrecision": false, + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + }, + { + "op": "=", + "text": "Unknown", + "value": "1" + }, + { + "op": "=", + "text": "Online", + "value": "2" + }, + { + "op": "=", + "text": "On Battery", + "value": "3" + }, + { + "op": "=", + "text": "On Smart Boost", + "value": "4" + }, + { + "op": "=", + "text": "Sleeping", + "value": "5" + }, + { + "op": "=", + "text": "Software Bypass", + "value": "6" + }, + { + "op": "=", + "text": "Off", + "value": "7" + }, + { + "op": "=", + "text": "Rebooting", + "value": "8" + }, + { + "op": "=", + "text": "Switched Bypass", + "value": "9" + }, + { + "op": "=", + "text": "Hardware Failure Bypass", + "value": "10" + }, + { + "op": "=", + "text": "Sleeping Until Power Return", + "value": "11" + }, + { + "op": "=", + "text": "On Smart Trim", + "value": "12" + }, + { + "op": "=", + "text": "No Data", + "value": "NaN" + }, + { + "op": "=", + "text": "No Data", + "value": "5e-324" + } + ], + "valueTextColor": "#000000", + "writeAllValues": false, + "writeLastValue": true, + "writeMetricNames": false + }, + { + "backgroundColor": "rgba(128, 128, 128, 0.1)", + "colorMaps": [ + { + "color": "#CCC", + "text": "N/A" + }, + { + "color": "rgb(53, 210, 14)", + "text": "Normal" + }, + { + "color": "rgb(221, 140, 0)", + "text": "Low" + }, + { + "color": "#CCC", + "text": "No Data" + } + ], + "crosshairColor": "#8F070C", + "datasource": "${OpenNMS-PM}", + "display": "timeline", + "expandFromQueryS": 0, + "extendLastValue": true, + "gridPos": { + "h": 4, + "w": 3, + "x": 10, + "y": 6 + }, + "highlightOnMouseover": true, + "id": 8, + "legendSortBy": "-ms", + "lineColor": "rgba(128, 128, 128, 1.0)", + "links": [], + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "metricNameColor": "#000000", + "minSpan": 8, + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + }, + { + "from": "0.9", + "text": "Unknown", + "to": "1.1" + }, + { + "from": "1.9", + "text": "Normal", + "to": "2.1" + }, + { + "from": "2.9", + "text": "Low", + "to": "3.1" + } + ], + "repeat": null, + "rowHeight": 50, + "showLegend": true, + "showLegendNames": true, + "showLegendPercent": true, + "showLegendValues": true, + "showTimeAxis": true, + "targets": [ + { + "attribute": "apcbattstat", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "type": "attribute" + } + ], + "textSize": 24, + "textSizeTime": 12, + "timeOptions": [ + { + "name": "Years", + "value": "years" + }, + { + "name": "Months", + "value": "months" + }, + { + "name": "Weeks", + "value": "weeks" + }, + { + "name": "Days", + "value": "days" + }, + { + "name": "Hours", + "value": "hours" + }, + { + "name": "Minutes", + "value": "minutes" + }, + { + "name": "Seconds", + "value": "seconds" + }, + { + "name": "Milliseconds", + "value": "milliseconds" + } + ], + "timePrecision": { + "name": "Minutes", + "value": "minutes" + }, + "timeTextColor": "#d8d9da", + "title": "Battery Status", + "type": "natel-discrete-panel", + "units": "short", + "useTimePrecision": false, + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + }, + { + "op": "=", + "text": "Unknown", + "value": "1" + }, + { + "op": "=", + "text": "Normal", + "value": "2" + }, + { + "op": "=", + "text": "Low", + "value": "3" + }, + { + "op": "=", + "text": "No Data", + "value": "NaN" + } + ], + "valueTextColor": "#000000", + "writeAllValues": false, + "writeLastValue": true, + "writeMetricNames": false + }, + { + "clusterName": "", + "colorMode": "Panel", + "colors": { + "crit": "rgba(245, 54, 54, 0.9)", + "disable": "rgba(128, 128, 128, 0.9)", + "ok": "rgba(50, 128, 45, 0.9)", + "warn": "rgba(237, 129, 40, 0.9)" + }, + "cornerRadius": 0, + "datasource": "${OpenNMS-PM}", + "displayName": "", + "flipCard": false, + "flipTime": 5, + "gridPos": { + "h": 4, + "w": 2, + "x": 13, + "y": 6 + }, + "hideTimeOverride": true, + "id": 12, + "isAutoScrollOnOverflow": false, + "isGrayOnNoData": true, + "isHideAlertsOnDisable": false, + "isIgnoreOKColors": false, + "links": [], + "targets": [ + { + "aggregation": "Avg", + "alias": "C", + "attribute": "apctemp", + "crit": 55, + "decimals": 2, + "displayAliasType": "Always", + "displayType": "Regular", + "displayValueWithAlias": "When Alias Displayed", + "label": "C", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "type": "attribute", + "units": "none", + "valueHandler": "Number Threshold", + "warn": 50 + }, + { + "aggregation": "Avg", + "alias": "F", + "displayAliasType": "Always", + "displayType": "Regular", + "displayValueWithAlias": "When Alias Displayed", + "expression": "((C * 9)/5)+ 32", + "label": "F", + "refId": "B", + "type": "expression", + "valueHandler": "String Threshold" + } + ], + "timeFrom": "5m", + "timeShift": null, + "title": "Temp", + "type": "vonage-status-panel" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "${OpenNMS-PM}", + "fill": 1, + "gridPos": { + "h": 4, + "w": 5, + "x": 15, + "y": 6 + }, + "id": 4, + "legend": { + "alignAsTable": false, + "avg": false, + "current": true, + "max": false, + "min": false, + "rightSide": false, + "show": false, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "minSpan": 6, + "nullPointMode": "null", + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": null, + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "attribute": "apcinvac", + "label": "", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "type": "attribute" + }, + { + "attribute": "apcoutvac", + "label": "", + "nodeId": "$UPS", + "refId": "B", + "resourceId": "nodeSnmp[]", + "type": "attribute" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "In/Out Voltage", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [ + "current" + ] + }, + "yaxes": [ + { + "format": "volt", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "amp", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": true, + "colors": [ + "rgba(50, 172, 45, 0.97)", + "rgba(237, 129, 40, 0.89)", + "rgba(245, 54, 54, 0.9)" + ], + "datasource": "${OpenNMS-PM}", + "decimals": 1, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 20, + "y": 6 + }, + "hideTimeOverride": true, + "id": 9, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "minSpan": 4, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "tableColumn": "", + "targets": [ + { + "attribute": "apcbattrepl", + "hide": false, + "label": "", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "type": "attribute" + } + ], + "thresholds": "2", + "timeFrom": "5m", + "timeShift": null, + "title": "Battery Health", + "type": "singlestat", + "valueFontSize": "50%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + }, + { + "op": "=", + "text": "All Battery Packs Normal", + "value": "1" + }, + { + "op": "=", + "text": "Needs Replacement", + "value": "2" + } + ], + "valueName": "current" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": false, + "colors": [ + "rgba(50, 172, 45, 0.97)", + "rgba(237, 129, 40, 0.89)", + "rgba(245, 54, 54, 0.9)" + ], + "datasource": "${OpenNMS-PM}", + "decimals": 0, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 22, + "y": 6 + }, + "hideTimeOverride": true, + "id": 11, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "minSpan": 2, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "tableColumn": "", + "targets": [ + { + "attribute": "apcbattcount", + "hide": false, + "label": "", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "type": "attribute" + } + ], + "thresholds": "", + "timeFrom": "5m", + "timeShift": null, + "title": "Battery Packs", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + }, + { + "cacheTimeout": null, + "colorBackground": false, + "colorValue": true, + "colors": [ + "rgba(50, 172, 45, 0.97)", + "rgba(237, 129, 40, 0.89)", + "rgba(245, 54, 54, 0.9)" + ], + "datasource": "${OpenNMS-PM}", + "decimals": 1, + "format": "none", + "gauge": { + "maxValue": 100, + "minValue": 0, + "show": false, + "thresholdLabels": false, + "thresholdMarkers": true + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 22, + "y": 8 + }, + "hideTimeOverride": true, + "id": 10, + "interval": null, + "links": [], + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "maxDataPoints": 100, + "minSpan": 2, + "nullPointMode": "connected", + "nullText": null, + "postfix": "", + "postfixFontSize": "50%", + "prefix": "", + "prefixFontSize": "50%", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "sparkline": { + "fillColor": "rgba(31, 118, 189, 0.18)", + "full": true, + "lineColor": "rgb(31, 120, 193)", + "show": false + }, + "tableColumn": "", + "targets": [ + { + "attribute": "apcbadbatt", + "hide": false, + "label": "", + "nodeId": "$UPS", + "refId": "A", + "resourceId": "nodeSnmp[]", + "type": "attribute" + } + ], + "thresholds": "1,2", + "timeFrom": "5m", + "timeShift": null, + "title": "Bad Packs", + "type": "singlestat", + "valueFontSize": "80%", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ], + "valueName": "current" + } + ], + "refresh": "5m", + "schemaVersion": 16, + "style": "dark", + "tags": [ + "OpenNMS", + "ups" + ], + "templating": { + "list": [ + { + "allValue": null, + "current": {}, + "datasource": "${OpenNMS-PM}", + "definition": "", + "hide": 0, + "includeAll": false, + "label": null, + "multi": true, + "name": "UPS", + "options": [], + "query": "nodeFilter(catincUPS or catincPower)", + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "tagValuesQuery": "", + "tags": [], + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-24h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "UPS Stats", + "uid": "000000016", + "version": 68 +} \ No newline at end of file From 66a305b681c9c9fe1d88fa55e1c8678d5ebaa5e2 Mon Sep 17 00:00:00 2001 From: mmahacek Date: Wed, 6 Mar 2019 08:17:34 -0800 Subject: [PATCH 3/5] Rename ups-stats/README.md to apc-ups-stats/README.md --- {ups-stats => apc-ups-stats}/README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ups-stats => apc-ups-stats}/README.md (100%) diff --git a/ups-stats/README.md b/apc-ups-stats/README.md similarity index 100% rename from ups-stats/README.md rename to apc-ups-stats/README.md From 661db0736138885877b879884af0ee87c5f72086 Mon Sep 17 00:00:00 2001 From: mmahacek Date: Wed, 6 Mar 2019 08:17:57 -0800 Subject: [PATCH 4/5] Rename apc-ups-stats/README.md to APC-UPS-Stats/README.md --- {apc-ups-stats => APC-UPS-Stats}/README.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {apc-ups-stats => APC-UPS-Stats}/README.md (100%) diff --git a/apc-ups-stats/README.md b/APC-UPS-Stats/README.md similarity index 100% rename from apc-ups-stats/README.md rename to APC-UPS-Stats/README.md From df584a07331b70772db7d3c8ecc4db26c2b86cce Mon Sep 17 00:00:00 2001 From: mmahacek Date: Wed, 6 Mar 2019 08:18:42 -0800 Subject: [PATCH 5/5] Update and rename ups-stats/UPS Stats-1551821920736.json to APC-UPS-Stats/APC-UPS Stats-1551821920736.json --- .../APC-UPS Stats-1551821920736.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename ups-stats/UPS Stats-1551821920736.json => APC-UPS-Stats/APC-UPS Stats-1551821920736.json (99%) diff --git a/ups-stats/UPS Stats-1551821920736.json b/APC-UPS-Stats/APC-UPS Stats-1551821920736.json similarity index 99% rename from ups-stats/UPS Stats-1551821920736.json rename to APC-UPS-Stats/APC-UPS Stats-1551821920736.json index 7178930..2cfc466 100644 --- a/ups-stats/UPS Stats-1551821920736.json +++ b/APC-UPS-Stats/APC-UPS Stats-1551821920736.json @@ -1547,7 +1547,7 @@ ] }, "timezone": "browser", - "title": "UPS Stats", + "title": "APC UPS Stats", "uid": "000000016", "version": 68 -} \ No newline at end of file +}