Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "395c496f.c322de",
- "type": "tab",
- "label": "Server Monitoring",
- "disabled": false,
- "info": ""
- },
- {
- "id": "96321a23.5dc9b8",
- "type": "Uptime",
- "z": "395c496f.c322de",
- "name": "Uptime",
- "x": 380,
- "y": 120,
- "wires": [
- [
- "4a3e6e5d.651858"
- ]
- ]
- },
- {
- "id": "dec002c7.61e48",
- "type": "inject",
- "z": "395c496f.c322de",
- "name": "Trigger Update",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "repeat": "3",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "x": 190,
- "y": 120,
- "wires": [
- [
- "96321a23.5dc9b8",
- "a60cf48b.b45c88"
- ]
- ]
- },
- {
- "id": "4a3e6e5d.651858",
- "type": "function",
- "z": "395c496f.c322de",
- "name": "Seconds to uptime",
- "func": " var secs = msg.payload.uptime\n var days = Math.floor(secs/86400)\n secs = secs - days*86400\n var hours = Math.floor(secs/3600)\n secs = secs - hours * 3600\n var minutes = Math.floor(secs/60)\n secs = secs - minutes *60\n var seconds = secs\n var uptime = days + \" days \" + hours + \" hours \" + minutes + \" minutes \" //+ seconds + \" seconds\"\n var msg2 = {\"payload\": uptime};\n return msg2;\n ",
- "outputs": 1,
- "noerr": 0,
- "x": 580,
- "y": 120,
- "wires": [
- [
- "d1b700af.445498"
- ]
- ]
- },
- {
- "id": "d1b700af.445498",
- "type": "ui_text",
- "z": "395c496f.c322de",
- "group": "815e9031.b7878",
- "order": 0,
- "width": 0,
- "height": 0,
- "name": "",
- "label": "System Uptime:",
- "format": "{{msg.payload}}",
- "layout": "col-center",
- "x": 800,
- "y": 120,
- "wires": []
- },
- {
- "id": "a60cf48b.b45c88",
- "type": "Loadavg",
- "z": "395c496f.c322de",
- "name": "",
- "x": 380,
- "y": 180,
- "wires": [
- [
- "95c5a3e1.2bf8",
- "34295250.162cc6",
- "9f8b69fa.c14c"
- ]
- ]
- },
- {
- "id": "cf213221.24b41",
- "type": "ui_gauge",
- "z": "395c496f.c322de",
- "name": "1 min",
- "group": "4946fa25.f1a9e4",
- "order": 0,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "1 min load average",
- "label": "",
- "format": "{{value | number:2}}",
- "min": 0,
- "max": "4",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "1",
- "seg2": "2",
- "x": 770,
- "y": 180,
- "wires": []
- },
- {
- "id": "95c5a3e1.2bf8",
- "type": "change",
- "z": "395c496f.c322de",
- "name": "1 minute",
- "rules": [
- {
- "t": "move",
- "p": "payload.loadavg[0]",
- "pt": "msg",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 540,
- "y": 200,
- "wires": [
- [
- "cf213221.24b41",
- "b80cd2ec.074f58"
- ]
- ]
- },
- {
- "id": "34295250.162cc6",
- "type": "change",
- "z": "395c496f.c322de",
- "name": "5 minute",
- "rules": [
- {
- "t": "move",
- "p": "payload.loadavg[1]",
- "pt": "msg",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 540,
- "y": 280,
- "wires": [
- [
- "871a2205.9ef978",
- "f8e4952e.415398"
- ]
- ]
- },
- {
- "id": "9f8b69fa.c14c",
- "type": "change",
- "z": "395c496f.c322de",
- "name": "15 minute",
- "rules": [
- {
- "t": "move",
- "p": "payload.loadavg[2]",
- "pt": "msg",
- "to": "payload",
- "tot": "msg"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 540,
- "y": 360,
- "wires": [
- [
- "4ff81332.98b6fc",
- "3fc2db5e.bd346c"
- ]
- ]
- },
- {
- "id": "871a2205.9ef978",
- "type": "ui_gauge",
- "z": "395c496f.c322de",
- "name": "5 min",
- "group": "852890eb.5a8288",
- "order": 0,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "5 min load average",
- "label": "",
- "format": "{{value | number:2}}",
- "min": 0,
- "max": "4",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "1",
- "seg2": "2",
- "x": 770,
- "y": 260,
- "wires": []
- },
- {
- "id": "4ff81332.98b6fc",
- "type": "ui_gauge",
- "z": "395c496f.c322de",
- "name": "15 min",
- "group": "e6b0673c.beb1e",
- "order": 0,
- "width": 0,
- "height": 0,
- "gtype": "gage",
- "title": "15 min load average",
- "label": "",
- "format": "{{value | number:2}}",
- "min": 0,
- "max": "4",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "seg1": "1",
- "seg2": "2",
- "x": 770,
- "y": 340,
- "wires": []
- },
- {
- "id": "d38172bf.5aba2",
- "type": "ui_button",
- "z": "395c496f.c322de",
- "name": "",
- "group": "b8f40afe.f8aca",
- "order": 1,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "Refresh",
- "tooltip": "Click to refresh stats",
- "color": "",
- "bgcolor": "",
- "icon": "refresh",
- "payload": "",
- "payloadType": "date",
- "topic": "",
- "x": 160,
- "y": 180,
- "wires": [
- [
- "96321a23.5dc9b8",
- "a60cf48b.b45c88"
- ]
- ]
- },
- {
- "id": "b80cd2ec.074f58",
- "type": "ui_chart",
- "z": "395c496f.c322de",
- "name": "1 min chart",
- "group": "4946fa25.f1a9e4",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "",
- "chartType": "line",
- "legend": "false",
- "xformat": "HH:mm:ss",
- "interpolate": "linear",
- "nodata": "Waiting for data",
- "dot": false,
- "ymin": "",
- "ymax": "",
- "removeOlder": "3",
- "removeOlderPoints": "",
- "removeOlderUnit": "3600",
- "cutout": 0,
- "useOneColor": false,
- "colors": [
- "#1f77b4",
- "#aec7e8",
- "#ff7f0e",
- "#2ca02c",
- "#98df8a",
- "#d62728",
- "#ff9896",
- "#9467bd",
- "#c5b0d5"
- ],
- "useOldStyle": false,
- "outputs": 1,
- "x": 790,
- "y": 220,
- "wires": [
- []
- ]
- },
- {
- "id": "f8e4952e.415398",
- "type": "ui_chart",
- "z": "395c496f.c322de",
- "name": "5 min chart",
- "group": "852890eb.5a8288",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "",
- "chartType": "line",
- "legend": "false",
- "xformat": "HH:mm:ss",
- "interpolate": "linear",
- "nodata": "Waiting for data",
- "dot": false,
- "ymin": "",
- "ymax": "",
- "removeOlder": "3",
- "removeOlderPoints": "",
- "removeOlderUnit": "3600",
- "cutout": 0,
- "useOneColor": false,
- "colors": [
- "#1f77b4",
- "#aec7e8",
- "#ff7f0e",
- "#2ca02c",
- "#98df8a",
- "#d62728",
- "#ff9896",
- "#9467bd",
- "#c5b0d5"
- ],
- "useOldStyle": false,
- "outputs": 1,
- "x": 790,
- "y": 300,
- "wires": [
- []
- ]
- },
- {
- "id": "3fc2db5e.bd346c",
- "type": "ui_chart",
- "z": "395c496f.c322de",
- "name": "15 min chart",
- "group": "e6b0673c.beb1e",
- "order": 1,
- "width": 0,
- "height": 0,
- "label": "",
- "chartType": "line",
- "legend": "false",
- "xformat": "HH:mm:ss",
- "interpolate": "linear",
- "nodata": "Waiting for data",
- "dot": false,
- "ymin": "",
- "ymax": "",
- "removeOlder": "3",
- "removeOlderPoints": "",
- "removeOlderUnit": "3600",
- "cutout": 0,
- "useOneColor": false,
- "colors": [
- "#1f77b4",
- "#aec7e8",
- "#ff7f0e",
- "#2ca02c",
- "#98df8a",
- "#d62728",
- "#ff9896",
- "#9467bd",
- "#c5b0d5"
- ],
- "useOldStyle": false,
- "outputs": 1,
- "x": 790,
- "y": 380,
- "wires": [
- []
- ]
- },
- {
- "id": "815e9031.b7878",
- "type": "ui_group",
- "z": "",
- "name": "Uptime",
- "tab": "2ae9c4b8.e30c6c",
- "order": 2,
- "disp": false,
- "width": "7",
- "collapse": false
- },
- {
- "id": "4946fa25.f1a9e4",
- "type": "ui_group",
- "z": "",
- "name": "1 minute",
- "tab": "2ae9c4b8.e30c6c",
- "order": 3,
- "disp": false,
- "width": "12",
- "collapse": false
- },
- {
- "id": "852890eb.5a8288",
- "type": "ui_group",
- "z": "",
- "name": "5 minute",
- "tab": "2ae9c4b8.e30c6c",
- "order": 4,
- "disp": false,
- "width": "12",
- "collapse": false
- },
- {
- "id": "e6b0673c.beb1e",
- "type": "ui_group",
- "z": "",
- "name": "15 minute",
- "tab": "2ae9c4b8.e30c6c",
- "order": 5,
- "disp": false,
- "width": "12",
- "collapse": false
- },
- {
- "id": "b8f40afe.f8aca",
- "type": "ui_group",
- "z": "",
- "name": "Refresh",
- "tab": "2ae9c4b8.e30c6c",
- "order": 1,
- "disp": false,
- "width": "6",
- "collapse": false
- },
- {
- "id": "2ae9c4b8.e30c6c",
- "type": "ui_tab",
- "z": "",
- "name": "Stats",
- "icon": "dashboard",
- "disabled": false,
- "hidden": false
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement