Commits

Peter Ward committed a4b70f6

Add apcups definitions.

  • Participants
  • Parent commits 05b8e13

Comments (0)

Files changed (1)

File definitions.json

 {
     "types": {
+        "apcups-frequency": [
+            "DEF:<var>=<file>:frequency:AVERAGE",
+            "XPORT:<var>:<var>"
+        ],
+
+        "apcups-timeleft": [
+            "DEF:timeleft=<file>:timeleft:AVERAGE",
+            "XPORT:timeleft:time"
+        ],
+
+        "apcups-voltage": [
+            "DEF:input=<input>:value:AVERAGE",
+            "DEF:output=<output>:value:AVERAGE",
+            "XPORT:input:input",
+            "XPORT:output:output"
+        ],
+
         "cpu-summary": [
             "DEF:idle-<num>=<idle>:value:AVERAGE",
             "DEF:nice-<num>=<nice>:value:AVERAGE",
     },
 
     "graphs": {
+        "ups": [
+            {
+                "graph": {
+                    "min": 110,
+                    "title": "Voltage"
+                },
+                "type": "apcups-voltage",
+                "files": {
+                    "input": "apcups/voltage-input.rrd",
+                    "output": "apcups/voltage-output.rrd"
+                }
+            },
+            {
+                "graph": {
+                    "title": "Time left",
+                    "y-label": "minutes"
+                },
+                "type": "apcups-timeleft",
+                "files": {"file": "apcups/timeleft.rrd"}
+            },
+            {
+                "graph": {"title": "Battery Voltage"},
+                "type": "value",
+                "files": {"file": "apcups/voltage-battery.rrd"},
+                "variables": {"var": "battery"}
+            },
+            {
+                "graph": {"title": "Input Frequency"},
+                "type": "apcups-frequency",
+                "files": {"file": "apcups/frequency-input.rrd"},
+                "variables": {"var": "frequency"}
+            }
+        ],
+
         "cpu": [{
             "graph": {"max": 100},
             "type": "cpu-summary",