Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.74 KB | None | 0 0
  1. [
  2. {
  3. "id": "395c496f.c322de",
  4. "type": "tab",
  5. "label": "Server Monitoring",
  6. "disabled": false,
  7. "info": ""
  8. },
  9. {
  10. "id": "96321a23.5dc9b8",
  11. "type": "Uptime",
  12. "z": "395c496f.c322de",
  13. "name": "Uptime",
  14. "x": 380,
  15. "y": 120,
  16. "wires": [
  17. [
  18. "4a3e6e5d.651858"
  19. ]
  20. ]
  21. },
  22. {
  23. "id": "dec002c7.61e48",
  24. "type": "inject",
  25. "z": "395c496f.c322de",
  26. "name": "Trigger Update",
  27. "topic": "",
  28. "payload": "",
  29. "payloadType": "date",
  30. "repeat": "3",
  31. "crontab": "",
  32. "once": false,
  33. "onceDelay": 0.1,
  34. "x": 190,
  35. "y": 120,
  36. "wires": [
  37. [
  38. "96321a23.5dc9b8",
  39. "a60cf48b.b45c88"
  40. ]
  41. ]
  42. },
  43. {
  44. "id": "4a3e6e5d.651858",
  45. "type": "function",
  46. "z": "395c496f.c322de",
  47. "name": "Seconds to uptime",
  48. "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 ",
  49. "outputs": 1,
  50. "noerr": 0,
  51. "x": 580,
  52. "y": 120,
  53. "wires": [
  54. [
  55. "d1b700af.445498"
  56. ]
  57. ]
  58. },
  59. {
  60. "id": "d1b700af.445498",
  61. "type": "ui_text",
  62. "z": "395c496f.c322de",
  63. "group": "815e9031.b7878",
  64. "order": 0,
  65. "width": 0,
  66. "height": 0,
  67. "name": "",
  68. "label": "System Uptime:",
  69. "format": "{{msg.payload}}",
  70. "layout": "col-center",
  71. "x": 800,
  72. "y": 120,
  73. "wires": []
  74. },
  75. {
  76. "id": "a60cf48b.b45c88",
  77. "type": "Loadavg",
  78. "z": "395c496f.c322de",
  79. "name": "",
  80. "x": 380,
  81. "y": 180,
  82. "wires": [
  83. [
  84. "95c5a3e1.2bf8",
  85. "34295250.162cc6",
  86. "9f8b69fa.c14c"
  87. ]
  88. ]
  89. },
  90. {
  91. "id": "cf213221.24b41",
  92. "type": "ui_gauge",
  93. "z": "395c496f.c322de",
  94. "name": "1 min",
  95. "group": "4946fa25.f1a9e4",
  96. "order": 0,
  97. "width": 0,
  98. "height": 0,
  99. "gtype": "gage",
  100. "title": "1 min load average",
  101. "label": "",
  102. "format": "{{value | number:2}}",
  103. "min": 0,
  104. "max": "4",
  105. "colors": [
  106. "#00b500",
  107. "#e6e600",
  108. "#ca3838"
  109. ],
  110. "seg1": "1",
  111. "seg2": "2",
  112. "x": 770,
  113. "y": 180,
  114. "wires": []
  115. },
  116. {
  117. "id": "95c5a3e1.2bf8",
  118. "type": "change",
  119. "z": "395c496f.c322de",
  120. "name": "1 minute",
  121. "rules": [
  122. {
  123. "t": "move",
  124. "p": "payload.loadavg[0]",
  125. "pt": "msg",
  126. "to": "payload",
  127. "tot": "msg"
  128. }
  129. ],
  130. "action": "",
  131. "property": "",
  132. "from": "",
  133. "to": "",
  134. "reg": false,
  135. "x": 540,
  136. "y": 200,
  137. "wires": [
  138. [
  139. "cf213221.24b41",
  140. "b80cd2ec.074f58"
  141. ]
  142. ]
  143. },
  144. {
  145. "id": "34295250.162cc6",
  146. "type": "change",
  147. "z": "395c496f.c322de",
  148. "name": "5 minute",
  149. "rules": [
  150. {
  151. "t": "move",
  152. "p": "payload.loadavg[1]",
  153. "pt": "msg",
  154. "to": "payload",
  155. "tot": "msg"
  156. }
  157. ],
  158. "action": "",
  159. "property": "",
  160. "from": "",
  161. "to": "",
  162. "reg": false,
  163. "x": 540,
  164. "y": 280,
  165. "wires": [
  166. [
  167. "871a2205.9ef978",
  168. "f8e4952e.415398"
  169. ]
  170. ]
  171. },
  172. {
  173. "id": "9f8b69fa.c14c",
  174. "type": "change",
  175. "z": "395c496f.c322de",
  176. "name": "15 minute",
  177. "rules": [
  178. {
  179. "t": "move",
  180. "p": "payload.loadavg[2]",
  181. "pt": "msg",
  182. "to": "payload",
  183. "tot": "msg"
  184. }
  185. ],
  186. "action": "",
  187. "property": "",
  188. "from": "",
  189. "to": "",
  190. "reg": false,
  191. "x": 540,
  192. "y": 360,
  193. "wires": [
  194. [
  195. "4ff81332.98b6fc",
  196. "3fc2db5e.bd346c"
  197. ]
  198. ]
  199. },
  200. {
  201. "id": "871a2205.9ef978",
  202. "type": "ui_gauge",
  203. "z": "395c496f.c322de",
  204. "name": "5 min",
  205. "group": "852890eb.5a8288",
  206. "order": 0,
  207. "width": 0,
  208. "height": 0,
  209. "gtype": "gage",
  210. "title": "5 min load average",
  211. "label": "",
  212. "format": "{{value | number:2}}",
  213. "min": 0,
  214. "max": "4",
  215. "colors": [
  216. "#00b500",
  217. "#e6e600",
  218. "#ca3838"
  219. ],
  220. "seg1": "1",
  221. "seg2": "2",
  222. "x": 770,
  223. "y": 260,
  224. "wires": []
  225. },
  226. {
  227. "id": "4ff81332.98b6fc",
  228. "type": "ui_gauge",
  229. "z": "395c496f.c322de",
  230. "name": "15 min",
  231. "group": "e6b0673c.beb1e",
  232. "order": 0,
  233. "width": 0,
  234. "height": 0,
  235. "gtype": "gage",
  236. "title": "15 min load average",
  237. "label": "",
  238. "format": "{{value | number:2}}",
  239. "min": 0,
  240. "max": "4",
  241. "colors": [
  242. "#00b500",
  243. "#e6e600",
  244. "#ca3838"
  245. ],
  246. "seg1": "1",
  247. "seg2": "2",
  248. "x": 770,
  249. "y": 340,
  250. "wires": []
  251. },
  252. {
  253. "id": "d38172bf.5aba2",
  254. "type": "ui_button",
  255. "z": "395c496f.c322de",
  256. "name": "",
  257. "group": "b8f40afe.f8aca",
  258. "order": 1,
  259. "width": 0,
  260. "height": 0,
  261. "passthru": false,
  262. "label": "Refresh",
  263. "tooltip": "Click to refresh stats",
  264. "color": "",
  265. "bgcolor": "",
  266. "icon": "refresh",
  267. "payload": "",
  268. "payloadType": "date",
  269. "topic": "",
  270. "x": 160,
  271. "y": 180,
  272. "wires": [
  273. [
  274. "96321a23.5dc9b8",
  275. "a60cf48b.b45c88"
  276. ]
  277. ]
  278. },
  279. {
  280. "id": "b80cd2ec.074f58",
  281. "type": "ui_chart",
  282. "z": "395c496f.c322de",
  283. "name": "1 min chart",
  284. "group": "4946fa25.f1a9e4",
  285. "order": 1,
  286. "width": 0,
  287. "height": 0,
  288. "label": "",
  289. "chartType": "line",
  290. "legend": "false",
  291. "xformat": "HH:mm:ss",
  292. "interpolate": "linear",
  293. "nodata": "Waiting for data",
  294. "dot": false,
  295. "ymin": "",
  296. "ymax": "",
  297. "removeOlder": "3",
  298. "removeOlderPoints": "",
  299. "removeOlderUnit": "3600",
  300. "cutout": 0,
  301. "useOneColor": false,
  302. "colors": [
  303. "#1f77b4",
  304. "#aec7e8",
  305. "#ff7f0e",
  306. "#2ca02c",
  307. "#98df8a",
  308. "#d62728",
  309. "#ff9896",
  310. "#9467bd",
  311. "#c5b0d5"
  312. ],
  313. "useOldStyle": false,
  314. "outputs": 1,
  315. "x": 790,
  316. "y": 220,
  317. "wires": [
  318. []
  319. ]
  320. },
  321. {
  322. "id": "f8e4952e.415398",
  323. "type": "ui_chart",
  324. "z": "395c496f.c322de",
  325. "name": "5 min chart",
  326. "group": "852890eb.5a8288",
  327. "order": 1,
  328. "width": 0,
  329. "height": 0,
  330. "label": "",
  331. "chartType": "line",
  332. "legend": "false",
  333. "xformat": "HH:mm:ss",
  334. "interpolate": "linear",
  335. "nodata": "Waiting for data",
  336. "dot": false,
  337. "ymin": "",
  338. "ymax": "",
  339. "removeOlder": "3",
  340. "removeOlderPoints": "",
  341. "removeOlderUnit": "3600",
  342. "cutout": 0,
  343. "useOneColor": false,
  344. "colors": [
  345. "#1f77b4",
  346. "#aec7e8",
  347. "#ff7f0e",
  348. "#2ca02c",
  349. "#98df8a",
  350. "#d62728",
  351. "#ff9896",
  352. "#9467bd",
  353. "#c5b0d5"
  354. ],
  355. "useOldStyle": false,
  356. "outputs": 1,
  357. "x": 790,
  358. "y": 300,
  359. "wires": [
  360. []
  361. ]
  362. },
  363. {
  364. "id": "3fc2db5e.bd346c",
  365. "type": "ui_chart",
  366. "z": "395c496f.c322de",
  367. "name": "15 min chart",
  368. "group": "e6b0673c.beb1e",
  369. "order": 1,
  370. "width": 0,
  371. "height": 0,
  372. "label": "",
  373. "chartType": "line",
  374. "legend": "false",
  375. "xformat": "HH:mm:ss",
  376. "interpolate": "linear",
  377. "nodata": "Waiting for data",
  378. "dot": false,
  379. "ymin": "",
  380. "ymax": "",
  381. "removeOlder": "3",
  382. "removeOlderPoints": "",
  383. "removeOlderUnit": "3600",
  384. "cutout": 0,
  385. "useOneColor": false,
  386. "colors": [
  387. "#1f77b4",
  388. "#aec7e8",
  389. "#ff7f0e",
  390. "#2ca02c",
  391. "#98df8a",
  392. "#d62728",
  393. "#ff9896",
  394. "#9467bd",
  395. "#c5b0d5"
  396. ],
  397. "useOldStyle": false,
  398. "outputs": 1,
  399. "x": 790,
  400. "y": 380,
  401. "wires": [
  402. []
  403. ]
  404. },
  405. {
  406. "id": "815e9031.b7878",
  407. "type": "ui_group",
  408. "z": "",
  409. "name": "Uptime",
  410. "tab": "2ae9c4b8.e30c6c",
  411. "order": 2,
  412. "disp": false,
  413. "width": "7",
  414. "collapse": false
  415. },
  416. {
  417. "id": "4946fa25.f1a9e4",
  418. "type": "ui_group",
  419. "z": "",
  420. "name": "1 minute",
  421. "tab": "2ae9c4b8.e30c6c",
  422. "order": 3,
  423. "disp": false,
  424. "width": "12",
  425. "collapse": false
  426. },
  427. {
  428. "id": "852890eb.5a8288",
  429. "type": "ui_group",
  430. "z": "",
  431. "name": "5 minute",
  432. "tab": "2ae9c4b8.e30c6c",
  433. "order": 4,
  434. "disp": false,
  435. "width": "12",
  436. "collapse": false
  437. },
  438. {
  439. "id": "e6b0673c.beb1e",
  440. "type": "ui_group",
  441. "z": "",
  442. "name": "15 minute",
  443. "tab": "2ae9c4b8.e30c6c",
  444. "order": 5,
  445. "disp": false,
  446. "width": "12",
  447. "collapse": false
  448. },
  449. {
  450. "id": "b8f40afe.f8aca",
  451. "type": "ui_group",
  452. "z": "",
  453. "name": "Refresh",
  454. "tab": "2ae9c4b8.e30c6c",
  455. "order": 1,
  456. "disp": false,
  457. "width": "6",
  458. "collapse": false
  459. },
  460. {
  461. "id": "2ae9c4b8.e30c6c",
  462. "type": "ui_tab",
  463. "z": "",
  464. "name": "Stats",
  465. "icon": "dashboard",
  466. "disabled": false,
  467. "hidden": false
  468. }
  469. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement