Advertisement
Guest User

Untitled

a guest
Mar 14th, 2019
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.14 KB | None | 0 0
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": "-- Grafana --",
  7. "enable": true,
  8. "hide": true,
  9. "iconColor": "rgba(0, 211, 255, 1)",
  10. "limit": 100,
  11. "name": "Annotations & Alerts",
  12. "rawQuery": "SELECT\n UNIX_TIMESTAMP(<time_column>) as time_sec,\n <text_column> as text,\n <tags_column> as tags\n FROM <table name>\n WHERE $__timeFilter(time_column)\n ORDER BY <time_column> ASC\n LIMIT 100\n ",
  13. "showIn": 0,
  14. "type": "dashboard"
  15. }
  16. ]
  17. },
  18. "editable": true,
  19. "gnetId": null,
  20. "graphTooltip": 0,
  21. "id": 18,
  22. "links": [],
  23. "panels": [
  24. {
  25. "columns": [],
  26. "compactRowsEnabled": true,
  27. "datasource": "Automate",
  28. "datatablePagingType": "numbers",
  29. "datatableTheme": "basic_theme",
  30. "emptyData": false,
  31. "fontSize": "80%",
  32. "gridPos": {
  33. "h": 5,
  34. "w": 12,
  35. "x": 0,
  36. "y": 0
  37. },
  38. "hoverEnabled": true,
  39. "id": 28,
  40. "infoEnabled": true,
  41. "lengthChangeEnabled": true,
  42. "links": [],
  43. "orderColumnEnabled": true,
  44. "pagingTypes": [
  45. {
  46. "text": "Page number buttons only",
  47. "value": "numbers"
  48. },
  49. {
  50. "text": "'Previous' and 'Next' buttons only",
  51. "value": "simple"
  52. },
  53. {
  54. "text": "'Previous' and 'Next' buttons, plus page numbers",
  55. "value": "simple_numbers"
  56. },
  57. {
  58. "text": "'First', 'Previous', 'Next' and 'Last' buttons",
  59. "value": "full"
  60. },
  61. {
  62. "text": "'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers",
  63. "value": "full_numbers"
  64. },
  65. {
  66. "text": "'First' and 'Last' buttons, plus page numbers",
  67. "value": "first_last_numbers"
  68. }
  69. ],
  70. "panelHeight": 161,
  71. "rowNumbersEnabled": false,
  72. "rowsPerPage": 5,
  73. "scroll": true,
  74. "scrollHeight": "default",
  75. "searchEnabled": false,
  76. "showCellBorders": false,
  77. "showHeader": true,
  78. "showRowBorders": true,
  79. "sort": {
  80. "col": 0,
  81. "desc": true
  82. },
  83. "stripedRowsEnabled": true,
  84. "styles": [
  85. {
  86. "colorMode": "cell",
  87. "colors": [
  88. "rgba(245, 54, 54, 0.9)",
  89. "rgba(237, 129, 40, 0.89)",
  90. "rgba(50, 172, 45, 0.97)"
  91. ],
  92. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  93. "decimals": 1,
  94. "pattern": "DiskHealth",
  95. "thresholds": [
  96. "0",
  97. "74",
  98. "101"
  99. ],
  100. "type": "number",
  101. "unit": "short"
  102. },
  103. {
  104. "colorMode": "cell",
  105. "colors": [
  106. "rgba(245, 54, 54, 0.9)",
  107. "rgba(237, 129, 40, 0.89)",
  108. "rgba(50, 172, 45, 0.97)"
  109. ],
  110. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  111. "decimals": 2,
  112. "pattern": "IntrusionHealth",
  113. "thresholds": [
  114. "0",
  115. "74",
  116. "101"
  117. ],
  118. "type": "number",
  119. "unit": "short"
  120. },
  121. {
  122. "colorMode": "cell",
  123. "colors": [
  124. "rgba(245, 54, 54, 0.9)",
  125. "rgba(237, 129, 40, 0.89)",
  126. "rgba(50, 172, 45, 0.97)"
  127. ],
  128. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  129. "decimals": 2,
  130. "pattern": "UsabilityHealth",
  131. "thresholds": [
  132. "0",
  133. "74",
  134. "101"
  135. ],
  136. "type": "number",
  137. "unit": "short"
  138. },
  139. {
  140. "colorMode": "cell",
  141. "colors": [
  142. "rgba(245, 54, 54, 0.9)",
  143. "rgba(237, 129, 40, 0.89)",
  144. "rgba(50, 172, 45, 0.97)"
  145. ],
  146. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  147. "decimals": 2,
  148. "pattern": "ServiceHealth",
  149. "thresholds": [
  150. "0",
  151. "74",
  152. "101"
  153. ],
  154. "type": "number",
  155. "unit": "short"
  156. },
  157. {
  158. "colorMode": "cell",
  159. "colors": [
  160. "rgba(245, 54, 54, 0.9)",
  161. "rgba(237, 129, 40, 0.89)",
  162. "rgba(50, 172, 45, 0.97)"
  163. ],
  164. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  165. "decimals": 2,
  166. "pattern": "EventHealth",
  167. "thresholds": [
  168. "0",
  169. "74",
  170. "101"
  171. ],
  172. "type": "number",
  173. "unit": "short"
  174. },
  175. {
  176. "colorMode": "cell",
  177. "colors": [
  178. "rgba(245, 54, 54, 0.9)",
  179. "rgba(237, 129, 40, 0.89)",
  180. "rgba(50, 172, 45, 0.97)"
  181. ],
  182. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  183. "decimals": 2,
  184. "pattern": "Avg Score",
  185. "thresholds": [
  186. "0",
  187. "74",
  188. "101"
  189. ],
  190. "type": "number",
  191. "unit": "short"
  192. },
  193. {
  194. "colorMode": "cell",
  195. "colors": [
  196. "rgba(245, 54, 54, 0.9)",
  197. "rgba(237, 129, 40, 0.89)",
  198. "rgba(50, 172, 45, 0.97)"
  199. ],
  200. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  201. "decimals": 2,
  202. "pattern": "UpdateHealth",
  203. "thresholds": [
  204. "0",
  205. "50",
  206. "101"
  207. ],
  208. "type": "number",
  209. "unit": "short"
  210. }
  211. ],
  212. "targets": [
  213. {
  214. "alias": "",
  215. "format": "table",
  216. "rawSql": "SELECT\r\n clients.clientid AS 'ClientID',\r\n ROUND(AVG(IF((LENGTH(`Stat15`) < 1),NULL,ROUND((LEFT(`Stat15`,4) * 100),0))),1) AS `AVHealth`,\r\n ROUND(AVG(IF((LENGTH(`Stat16`) < 1),NULL,ROUND((LEFT(`Stat16`,4) * 100),0))),1) AS `DiskHealth`,\r\n ROUND(AVG(IF((LENGTH(`Stat17`) < 1),NULL,ROUND((LEFT(`Stat17`,4) * 100),0))),1) AS `IntrusionHealth`,\r\n ROUND(AVG(IF((LENGTH(`Stat18`) < 1),NULL,ROUND((LEFT(`Stat18`,4) * 100),0))),1) AS `UsabilityHealth`,\r\n ROUND(AVG(IF((LENGTH(`Stat19`) < 1),NULL,ROUND((LEFT(`Stat19`,4) * 100),0))),1) AS `ServiceHealth`,\r\n ROUND(AVG(IF((LENGTH(`Stat20`) < 1),NULL,ROUND((LEFT(`Stat20`,4) * 100),0))),1) AS `UpdateHealth`,\r\n ROUND(AVG(IF((LENGTH(`Stat14`) < 1),NULL,ROUND((LEFT(`Stat14`,4) * 100),0))),1) AS `EventHealth`,\r\n ROUND(((ROUND(AVG(IF((LENGTH(`Stat15`) < 1),NULL,ROUND((LEFT(`Stat15`,4) * 100),0))),1)+ROUND(AVG(IF((LENGTH(`Stat16`) < 1),NULL,ROUND((LEFT(`Stat16`,4) * 100),0))),1)+ROUND(AVG(IF((LENGTH(`Stat17`) < 1),NULL,ROUND((LEFT(`Stat17`,4) * 100),0))),1)+ROUND(AVG(IF((LENGTH(`Stat18`) < 1),NULL,ROUND((LEFT(`Stat18`,4) * 100),0))),1)+ROUND(AVG(IF((LENGTH(`Stat19`) < 1),NULL,ROUND((LEFT(`Stat19`,4) * 100),0))),1)+ROUND(AVG(IF((LENGTH(`Stat20`) < 1),NULL,ROUND((LEFT(`Stat20`,4) * 100),0))),1)+ROUND(AVG(IF((LENGTH(`Stat14`) < 1),NULL,ROUND((LEFT(`Stat14`,4) * 100),0))),1))/7),1) AS 'Avg Score'\r\nFROM v_ltcr_h_extrastats\r\n JOIN computers USING (computerid)\r\n LEFT JOIN clients USING (clientid) \r\n WHERE (`Stat14` <> '-1') AND eventdate > DATE_ADD(NOW(),INTERVAL -1 MONTH)\r\n GROUP BY clients.name\r\n ORDER BY 'Avg Score' DESC LIMIT 5;\r\n",
  217. "refId": "A"
  218. }
  219. ],
  220. "themeOptions": {
  221. "dark": "./css/datatable-dark.css",
  222. "light": "./css/datatable-light.css"
  223. },
  224. "themes": [
  225. {
  226. "disabled": false,
  227. "text": "Basic",
  228. "value": "basic_theme"
  229. },
  230. {
  231. "disabled": true,
  232. "text": "Bootstrap",
  233. "value": "bootstrap_theme"
  234. },
  235. {
  236. "disabled": true,
  237. "text": "Foundation",
  238. "value": "foundation_theme"
  239. },
  240. {
  241. "disabled": true,
  242. "text": "ThemeRoller",
  243. "value": "themeroller_theme"
  244. }
  245. ],
  246. "title": "Health Scores",
  247. "transform": "table",
  248. "type": "briangann-datatable-panel"
  249. },
  250. {
  251. "aliasColors": {},
  252. "bars": false,
  253. "dashLength": 10,
  254. "dashes": false,
  255. "datasource": "Automate",
  256. "fill": 1,
  257. "gridPos": {
  258. "h": 5,
  259. "w": 12,
  260. "x": 12,
  261. "y": 0
  262. },
  263. "hideTimeOverride": true,
  264. "id": 12,
  265. "legend": {
  266. "alignAsTable": false,
  267. "avg": true,
  268. "current": true,
  269. "max": false,
  270. "min": false,
  271. "rightSide": false,
  272. "show": true,
  273. "sort": null,
  274. "sortDesc": null,
  275. "total": false,
  276. "values": true
  277. },
  278. "lines": true,
  279. "linewidth": 2,
  280. "links": [],
  281. "nullPointMode": "null as zero",
  282. "percentage": false,
  283. "pointradius": 1,
  284. "points": false,
  285. "renderer": "flot",
  286. "seriesOverrides": [
  287. {
  288. "alias": "Brewdog OUT",
  289. "transform": "negative-Y"
  290. },
  291. {
  292. "alias": "Becks OUT",
  293. "transform": "negative-Y"
  294. },
  295. {
  296. "alias": "Lagunita OUT",
  297. "transform": "negative-Y"
  298. },
  299. {
  300. "alias": "Duvel OUT",
  301. "transform": "negative-Y"
  302. },
  303. {
  304. "alias": "VEEAM OUT",
  305. "transform": "negative-Y"
  306. },
  307. {
  308. "alias": "ObligoWDS OUT",
  309. "transform": "negative-Y"
  310. },
  311. {
  312. "alias": "Corona OUT",
  313. "transform": "negative-Y"
  314. }
  315. ],
  316. "spaceLength": 10,
  317. "stack": false,
  318. "steppedLine": false,
  319. "targets": [
  320. {
  321. "alias": "",
  322. "format": "time_series",
  323. "rawSql": "SELECT\r\n(h_computerstatshourly.Datain) AS value,\r\n (UNIX_TIMESTAMP(LastUpdate)) AS time_sec ,\r\n \r\n name AS metric\r\nFROM h_computerstatshourly \r\nINNER JOIN computers ON h_computerstatshourly.Computerid=computers.computerid\r\nWHERE $__timeFilter(LastUpdate) AND os LIKE '%server%' \r\nGROUP BY time_sec ASC\r\n",
  324. "refId": "A"
  325. }
  326. ],
  327. "thresholds": [],
  328. "timeFrom": "24h",
  329. "timeShift": null,
  330. "title": "Network traffic in",
  331. "tooltip": {
  332. "shared": true,
  333. "sort": 1,
  334. "value_type": "individual"
  335. },
  336. "transparent": false,
  337. "type": "graph",
  338. "xaxis": {
  339. "buckets": null,
  340. "mode": "time",
  341. "name": null,
  342. "show": true,
  343. "values": []
  344. },
  345. "yaxes": [
  346. {
  347. "format": "Bps",
  348. "label": null,
  349. "logBase": 1,
  350. "max": null,
  351. "min": null,
  352. "show": true
  353. },
  354. {
  355. "format": "short",
  356. "label": null,
  357. "logBase": 1,
  358. "max": null,
  359. "min": null,
  360. "show": false
  361. }
  362. ],
  363. "yaxis": {
  364. "align": false,
  365. "alignLevel": null
  366. }
  367. },
  368. {
  369. "columns": [],
  370. "datasource": "Automate",
  371. "description": "",
  372. "fontSize": "100%",
  373. "gridPos": {
  374. "h": 5,
  375. "w": 6,
  376. "x": 0,
  377. "y": 5
  378. },
  379. "height": "210",
  380. "hideTimeOverride": true,
  381. "id": 41,
  382. "links": [],
  383. "pageSize": null,
  384. "scroll": false,
  385. "showHeader": true,
  386. "sort": {
  387. "col": 2,
  388. "desc": true
  389. },
  390. "styles": [
  391. {
  392. "alias": "",
  393. "colorMode": null,
  394. "colors": [
  395. "rgba(245, 54, 54, 0.9)",
  396. "rgba(237, 129, 40, 0.89)",
  397. "rgba(50, 172, 45, 0.97)"
  398. ],
  399. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  400. "decimals": 2,
  401. "mappingType": 1,
  402. "pattern": "TestValue",
  403. "thresholds": [],
  404. "type": "hidden",
  405. "unit": "short"
  406. },
  407. {
  408. "alias": "",
  409. "colorMode": null,
  410. "colors": [
  411. "rgba(245, 54, 54, 0.9)",
  412. "rgba(237, 129, 40, 0.89)",
  413. "rgba(50, 172, 45, 0.97)"
  414. ],
  415. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  416. "decimals": 2,
  417. "mappingType": 1,
  418. "pattern": "LastContact",
  419. "thresholds": [],
  420. "type": "hidden",
  421. "unit": "short"
  422. },
  423. {
  424. "alias": "",
  425. "colorMode": null,
  426. "colors": [
  427. "rgba(245, 54, 54, 0.9)",
  428. "rgba(237, 129, 40, 0.89)",
  429. "rgba(50, 172, 45, 0.97)"
  430. ],
  431. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  432. "decimals": 2,
  433. "mappingType": 1,
  434. "pattern": "LastHeartbeatTime",
  435. "thresholds": [],
  436. "type": "hidden",
  437. "unit": "short"
  438. }
  439. ],
  440. "targets": [
  441. {
  442. "alias": "",
  443. "format": "table",
  444. "hide": false,
  445. "rawSql": "SELECT TIMESTAMPDIFF(MINUTE,c.LastContact, IFNULL(LastHeartbeatTime, \"0000-00-00 00:00:00\")) AS TestValue,\r\n c.name AS IdentityField, \r\n c.ComputerID AS ComputerID, \r\n c.LastContact, \r\n h.LastHeartbeatTime, \r\n acd.NoAlerts, \r\n acd.UpTimeStart, \r\n acd.UpTimeEnd \r\nFROM Computers AS c \r\nLEFT JOIN HeartBeatComputers AS h ON h.ComputerID = c.ComputerID\r\nLEFT JOIN AgentComputerData AS acd ON c.ComputerID = acd.ComputerID\r\nLEFT JOIN Clients ON Clients.ClientID = c.clientid\r\nWHERE (c.LastContact > NOW() - INTERVAL 30 MINUTE OR h.LastHeartbeatTime > NOW() - INTERVAL 30 MINUTE) AND (TIMESTAMPDIFF(MINUTE,c.LastContact, \r\nIFNULL(LastHeartbeatTime, \"0000-00-00 00:00:00\")) < -6 OR TIMESTAMPDIFF(MINUTE,c.LastContact, IFNULL(LastHeartbeatTime, \"0000-00-00 00:00:00\")) > 6)",
  446. "refId": "A"
  447. }
  448. ],
  449. "timeFrom": null,
  450. "title": "Missing Automate<>SC Sync",
  451. "transform": "table",
  452. "transparent": false,
  453. "type": "table"
  454. },
  455. {
  456. "columns": [],
  457. "datasource": "Automate",
  458. "description": "",
  459. "fontSize": "100%",
  460. "gridPos": {
  461. "h": 5,
  462. "w": 6,
  463. "x": 6,
  464. "y": 5
  465. },
  466. "height": "210",
  467. "id": 30,
  468. "links": [],
  469. "pageSize": null,
  470. "repeat": null,
  471. "scroll": true,
  472. "showHeader": true,
  473. "sort": {
  474. "col": 2,
  475. "desc": true
  476. },
  477. "styles": [
  478. {
  479. "alias": "",
  480. "colorMode": null,
  481. "colors": [
  482. "rgba(245, 54, 54, 0.9)",
  483. "rgba(237, 129, 40, 0.89)",
  484. "rgba(50, 172, 45, 0.97)"
  485. ],
  486. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  487. "decimals": 2,
  488. "mappingType": 1,
  489. "pattern": "Severity",
  490. "thresholds": [],
  491. "type": "hidden",
  492. "unit": "short"
  493. }
  494. ],
  495. "targets": [
  496. {
  497. "alias": "",
  498. "format": "table",
  499. "hide": false,
  500. "rawSql": "SELECT Severity, \r\nSource AS VALUE ,\r\nAlertdate as 'Date'\r\nFROM `alerts`\r\nWHERE (Alerts.Severity=3 OR Alerts.Severity=2 OR Alerts.Severity=4)\r\nORDER BY Alertdate DESC LIMIT 4",
  501. "refId": "A"
  502. }
  503. ],
  504. "timeFrom": null,
  505. "title": "Alerts",
  506. "transform": "table",
  507. "transparent": false,
  508. "type": "table"
  509. },
  510. {
  511. "aliasColors": {},
  512. "bars": false,
  513. "dashLength": 10,
  514. "dashes": false,
  515. "datasource": "Automate",
  516. "fill": 1,
  517. "gridPos": {
  518. "h": 5,
  519. "w": 12,
  520. "x": 12,
  521. "y": 5
  522. },
  523. "hideTimeOverride": true,
  524. "id": 16,
  525. "legend": {
  526. "alignAsTable": false,
  527. "avg": true,
  528. "current": true,
  529. "max": false,
  530. "min": false,
  531. "rightSide": false,
  532. "show": true,
  533. "sort": null,
  534. "sortDesc": null,
  535. "total": false,
  536. "values": true
  537. },
  538. "lines": true,
  539. "linewidth": 2,
  540. "links": [],
  541. "nullPointMode": "null as zero",
  542. "percentage": false,
  543. "pointradius": 1,
  544. "points": false,
  545. "renderer": "flot",
  546. "seriesOverrides": [
  547. {
  548. "alias": "Brewdog OUT",
  549. "transform": "negative-Y"
  550. },
  551. {
  552. "alias": "Becks OUT",
  553. "transform": "negative-Y"
  554. },
  555. {
  556. "alias": "Lagunita OUT",
  557. "transform": "negative-Y"
  558. },
  559. {
  560. "alias": "Duvel OUT",
  561. "transform": "negative-Y"
  562. },
  563. {
  564. "alias": "VEEAM OUT",
  565. "transform": "negative-Y"
  566. },
  567. {
  568. "alias": "ObligoWDS OUT",
  569. "transform": "negative-Y"
  570. },
  571. {
  572. "alias": "Corona OUT",
  573. "transform": "negative-Y"
  574. }
  575. ],
  576. "spaceLength": 10,
  577. "stack": false,
  578. "steppedLine": false,
  579. "targets": [
  580. {
  581. "alias": "",
  582. "format": "time_series",
  583. "rawSql": "SELECT\r\n(h_computerstatshourly.Dataout) AS value,\r\n (UNIX_TIMESTAMP(LastUpdate)) AS time_sec ,\r\n \r\n name AS metric\r\nFROM h_computerstatshourly \r\nINNER JOIN computers ON h_computerstatshourly.Computerid=computers.computerid\r\nWHERE $__timeFilter(LastUpdate) AND os LIKE '%server%' \r\nGROUP BY time_sec ASC\r\n",
  584. "refId": "A"
  585. }
  586. ],
  587. "thresholds": [],
  588. "timeFrom": "24h",
  589. "timeShift": null,
  590. "title": "Network traffic out",
  591. "tooltip": {
  592. "shared": true,
  593. "sort": 1,
  594. "value_type": "individual"
  595. },
  596. "transparent": false,
  597. "type": "graph",
  598. "xaxis": {
  599. "buckets": null,
  600. "mode": "time",
  601. "name": null,
  602. "show": true,
  603. "values": []
  604. },
  605. "yaxes": [
  606. {
  607. "format": "Bps",
  608. "label": null,
  609. "logBase": 1,
  610. "max": null,
  611. "min": null,
  612. "show": true
  613. },
  614. {
  615. "format": "short",
  616. "label": null,
  617. "logBase": 1,
  618. "max": null,
  619. "min": null,
  620. "show": false
  621. }
  622. ],
  623. "yaxis": {
  624. "align": false,
  625. "alignLevel": null
  626. }
  627. },
  628. {
  629. "columns": [],
  630. "datasource": "Automate",
  631. "description": "",
  632. "fontSize": "100%",
  633. "gridPos": {
  634. "h": 4,
  635. "w": 6,
  636. "x": 0,
  637. "y": 10
  638. },
  639. "height": "210",
  640. "id": 39,
  641. "links": [],
  642. "pageSize": null,
  643. "scroll": false,
  644. "showHeader": true,
  645. "sort": {
  646. "col": 2,
  647. "desc": true
  648. },
  649. "styles": [
  650. {
  651. "alias": "",
  652. "colorMode": null,
  653. "colors": [
  654. "rgba(245, 54, 54, 0.9)",
  655. "rgba(237, 129, 40, 0.89)",
  656. "rgba(50, 172, 45, 0.97)"
  657. ],
  658. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  659. "decimals": 2,
  660. "mappingType": 1,
  661. "pattern": "TestValue",
  662. "thresholds": [],
  663. "type": "hidden",
  664. "unit": "short"
  665. },
  666. {
  667. "alias": "",
  668. "colorMode": null,
  669. "colors": [
  670. "rgba(245, 54, 54, 0.9)",
  671. "rgba(237, 129, 40, 0.89)",
  672. "rgba(50, 172, 45, 0.97)"
  673. ],
  674. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  675. "decimals": 2,
  676. "mappingType": 1,
  677. "pattern": "Client",
  678. "thresholds": [],
  679. "type": "hidden",
  680. "unit": "short"
  681. },
  682. {
  683. "alias": "",
  684. "colorMode": null,
  685. "colors": [
  686. "rgba(245, 54, 54, 0.9)",
  687. "rgba(237, 129, 40, 0.89)",
  688. "rgba(50, 172, 45, 0.97)"
  689. ],
  690. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  691. "decimals": 2,
  692. "mappingType": 1,
  693. "pattern": "Location",
  694. "thresholds": [],
  695. "type": "hidden",
  696. "unit": "short"
  697. },
  698. {
  699. "alias": "",
  700. "colorMode": null,
  701. "colors": [
  702. "rgba(245, 54, 54, 0.9)",
  703. "rgba(237, 129, 40, 0.89)",
  704. "rgba(50, 172, 45, 0.97)"
  705. ],
  706. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  707. "decimals": 2,
  708. "mappingType": 1,
  709. "pattern": "Reboot Pending",
  710. "thresholds": [],
  711. "type": "hidden",
  712. "unit": "short"
  713. },
  714. {
  715. "alias": "",
  716. "colorMode": null,
  717. "colors": [
  718. "rgba(245, 54, 54, 0.9)",
  719. "rgba(237, 129, 40, 0.89)",
  720. "rgba(50, 172, 45, 0.97)"
  721. ],
  722. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  723. "decimals": 2,
  724. "mappingType": 1,
  725. "pattern": "Oldest Patch Missing",
  726. "thresholds": [],
  727. "type": "hidden",
  728. "unit": "short"
  729. },
  730. {
  731. "alias": "",
  732. "colorMode": null,
  733. "colors": [
  734. "rgba(245, 54, 54, 0.9)",
  735. "rgba(237, 129, 40, 0.89)",
  736. "rgba(50, 172, 45, 0.97)"
  737. ],
  738. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  739. "decimals": 2,
  740. "mappingType": 1,
  741. "pattern": "UpTimeStart",
  742. "thresholds": [],
  743. "type": "hidden",
  744. "unit": "short"
  745. },
  746. {
  747. "alias": "",
  748. "colorMode": null,
  749. "colors": [
  750. "rgba(245, 54, 54, 0.9)",
  751. "rgba(237, 129, 40, 0.89)",
  752. "rgba(50, 172, 45, 0.97)"
  753. ],
  754. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  755. "decimals": 2,
  756. "mappingType": 1,
  757. "pattern": "NoAlerts",
  758. "thresholds": [],
  759. "type": "hidden",
  760. "unit": "short"
  761. },
  762. {
  763. "alias": "",
  764. "colorMode": null,
  765. "colors": [
  766. "rgba(245, 54, 54, 0.9)",
  767. "rgba(237, 129, 40, 0.89)",
  768. "rgba(50, 172, 45, 0.97)"
  769. ],
  770. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  771. "decimals": 2,
  772. "mappingType": 1,
  773. "pattern": "Uptime in Days",
  774. "thresholds": [],
  775. "type": "hidden",
  776. "unit": "short"
  777. }
  778. ],
  779. "targets": [
  780. {
  781. "alias": "",
  782. "format": "table",
  783. "hide": false,
  784. "rawSql": "\nSELECT\n\tCOUNT(DISTINCT hfd.KBID) AS 'TestValue'\n\t,c.Name AS 'IdentityField'\n\t,hf.ComputerID AS 'ComputerID'\n\t,cl.Name AS 'Client'\n\t,l.Name AS 'Location'\n\t,CASE\n\t\tWHEN (c.flags & 1024) = 1024 THEN 'Reboot Pending'\n\t\tELSE 'No Reboot Pending'\n\t\tEND AS 'Reboot Pending'\n\t,(c.Uptime) DIV 1440 AS 'Uptime in Days'\n\t,CAST(MIN(hfd.Date_Added) AS DATE) AS 'Oldest Patch Missing'\n\t,acd.NoAlerts\n\t,acd.UpTimeStart\n\t,acd.UpTimeEnd\nFROM\n\thotfix hf\nJOIN\n\thotfixdata hfd\n\tON hf.HotFixID = hfd.HotFixID\nJOIN\n\tcomputers c\n\tON hf.ComputerID = c.ComputerID\nJOIN\n\tclients cl\n\tON cl.ClientID = c.ClientID\nJOIN\n\tlocations l\n\tON c.LocationID = l.LocationID\nJOIN\n\tAgentComputerData acd\n\tON acd.ComputerID = c.ComputerID\nWHERE\n\thfd.Date_Added < DATE_ADD(NOW(),INTERVAL -100 DAY)\n\tAND hfd.CategoryName <> 'Drivers'\n\tAND hf.Approved = 2\n\tAND hf.Installed <> 1\n\tAND c.LastContact > DATE_ADD(NOW(),INTERVAL -30 DAY)\n\tAND c.LocationID <> 1\nGROUP BY\n\tc.Name\nORDER BY\n\tcl.Name",
  785. "refId": "A"
  786. }
  787. ],
  788. "timeFrom": null,
  789. "title": "Missing Patches",
  790. "transform": "table",
  791. "transparent": false,
  792. "type": "table"
  793. },
  794. {
  795. "columns": [],
  796. "datasource": "Automate",
  797. "description": "",
  798. "fontSize": "100%",
  799. "gridPos": {
  800. "h": 4,
  801. "w": 6,
  802. "x": 6,
  803. "y": 10
  804. },
  805. "height": "210",
  806. "id": 40,
  807. "links": [],
  808. "pageSize": null,
  809. "scroll": false,
  810. "showHeader": true,
  811. "sort": {
  812. "col": 2,
  813. "desc": true
  814. },
  815. "styles": [
  816. {
  817. "alias": "Alert",
  818. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  819. "pattern": "VALUE",
  820. "sanitize": false,
  821. "type": "string"
  822. },
  823. {
  824. "alias": "",
  825. "colorMode": "cell",
  826. "colors": [
  827. "rgba(45, 45, 204, 0.9)",
  828. "rgba(194, 197, 33, 0.89)",
  829. "rgba(183, 44, 44, 0.97)"
  830. ],
  831. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  832. "decimals": 2,
  833. "pattern": "Severity",
  834. "preserveFormat": true,
  835. "thresholds": [
  836. "2.00",
  837. "4.00"
  838. ],
  839. "type": "number",
  840. "unit": "short"
  841. },
  842. {
  843. "alias": "",
  844. "colorMode": null,
  845. "colors": [
  846. "rgba(245, 54, 54, 0.9)",
  847. "rgba(237, 129, 40, 0.89)",
  848. "rgba(50, 172, 45, 0.97)"
  849. ],
  850. "dateFormat": "MMMM D, YYYY LT",
  851. "decimals": 2,
  852. "pattern": "Date",
  853. "thresholds": [],
  854. "type": "date",
  855. "unit": "short"
  856. }
  857. ],
  858. "targets": [
  859. {
  860. "alias": "",
  861. "format": "table",
  862. "hide": false,
  863. "rawSql": "SELECT computerid,Logname,COUNT(*) AS 'count'\n FROM eventlogs\n GROUP BY computerid, Logname\nORDER BY `count` DESC LIMIT 4",
  864. "refId": "A"
  865. }
  866. ],
  867. "timeFrom": null,
  868. "title": "Noisy Event Logs",
  869. "transform": "table",
  870. "transparent": false,
  871. "type": "table"
  872. },
  873. {
  874. "aliasColors": {},
  875. "bars": false,
  876. "dashLength": 10,
  877. "dashes": false,
  878. "datasource": "Automate",
  879. "decimals": null,
  880. "description": "",
  881. "fill": 0,
  882. "gridPos": {
  883. "h": 4,
  884. "w": 12,
  885. "x": 12,
  886. "y": 10
  887. },
  888. "hideTimeOverride": true,
  889. "id": 10,
  890. "legend": {
  891. "alignAsTable": false,
  892. "avg": true,
  893. "current": true,
  894. "hideEmpty": true,
  895. "hideZero": true,
  896. "max": false,
  897. "min": false,
  898. "rightSide": false,
  899. "show": true,
  900. "sort": "current",
  901. "sortDesc": true,
  902. "total": false,
  903. "values": true
  904. },
  905. "lines": true,
  906. "linewidth": 1,
  907. "links": [],
  908. "nullPointMode": "null as zero",
  909. "percentage": false,
  910. "pointradius": 1,
  911. "points": false,
  912. "renderer": "flot",
  913. "seriesOverrides": [],
  914. "spaceLength": 10,
  915. "stack": false,
  916. "steppedLine": false,
  917. "targets": [
  918. {
  919. "alias": "",
  920. "format": "time_series",
  921. "hide": false,
  922. "rawSql": "SELECT\r\n(cpu) AS value,\r\n (UNIX_TIMESTAMP(LastUpdate)) AS time_sec ,\r\n \r\n name AS metric\r\nFROM h_computerstatshourly \r\nINNER JOIN computers ON h_computerstatshourly.Computerid=computers.computerid\r\nWHERE $__timeFilter(LastUpdate) AND os LIKE '%server%' \r\nGROUP BY time_sec ASC\r\n",
  923. "refId": "A"
  924. }
  925. ],
  926. "thresholds": [
  927. {
  928. "colorMode": "ok",
  929. "fill": true,
  930. "line": true,
  931. "op": "lt",
  932. "value": 95
  933. },
  934. {
  935. "colorMode": "critical",
  936. "fill": true,
  937. "line": true,
  938. "op": "gt",
  939. "value": 95
  940. }
  941. ],
  942. "timeFrom": "24h",
  943. "timeShift": null,
  944. "title": "CPU Load",
  945. "tooltip": {
  946. "shared": true,
  947. "sort": 1,
  948. "value_type": "individual"
  949. },
  950. "transparent": false,
  951. "type": "graph",
  952. "xaxis": {
  953. "buckets": null,
  954. "mode": "time",
  955. "name": null,
  956. "show": true,
  957. "values": []
  958. },
  959. "yaxes": [
  960. {
  961. "format": "percent",
  962. "label": "Max Load",
  963. "logBase": 1,
  964. "max": "110",
  965. "min": "0",
  966. "show": true
  967. },
  968. {
  969. "decimals": null,
  970. "format": "percent",
  971. "label": "",
  972. "logBase": 1,
  973. "max": "110",
  974. "min": "0",
  975. "show": true
  976. }
  977. ],
  978. "yaxis": {
  979. "align": false,
  980. "alignLevel": null
  981. }
  982. },
  983. {
  984. "columns": [],
  985. "datasource": "Automate",
  986. "description": "",
  987. "fontSize": "100%",
  988. "gridPos": {
  989. "h": 4,
  990. "w": 6,
  991. "x": 0,
  992. "y": 14
  993. },
  994. "height": "210",
  995. "id": 38,
  996. "links": [],
  997. "pageSize": null,
  998. "scroll": false,
  999. "showHeader": true,
  1000. "sort": {
  1001. "col": 2,
  1002. "desc": true
  1003. },
  1004. "styles": [
  1005. {
  1006. "alias": "",
  1007. "colorMode": null,
  1008. "colors": [
  1009. "rgba(245, 54, 54, 0.9)",
  1010. "rgba(237, 129, 40, 0.89)",
  1011. "rgba(50, 172, 45, 0.97)"
  1012. ],
  1013. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1014. "decimals": 2,
  1015. "mappingType": 1,
  1016. "pattern": "locationid",
  1017. "thresholds": [],
  1018. "type": "hidden",
  1019. "unit": "short"
  1020. },
  1021. {
  1022. "alias": "",
  1023. "colorMode": null,
  1024. "colors": [
  1025. "rgba(245, 54, 54, 0.9)",
  1026. "rgba(237, 129, 40, 0.89)",
  1027. "rgba(50, 172, 45, 0.97)"
  1028. ],
  1029. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1030. "decimals": 2,
  1031. "mappingType": 1,
  1032. "pattern": "Computer Domain",
  1033. "thresholds": [],
  1034. "type": "hidden",
  1035. "unit": "short"
  1036. },
  1037. {
  1038. "alias": "",
  1039. "colorMode": null,
  1040. "colors": [
  1041. "rgba(245, 54, 54, 0.9)",
  1042. "rgba(237, 129, 40, 0.89)",
  1043. "rgba(50, 172, 45, 0.97)"
  1044. ],
  1045. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1046. "decimals": 2,
  1047. "mappingType": 1,
  1048. "pattern": "Computer User",
  1049. "thresholds": [],
  1050. "type": "hidden",
  1051. "unit": "short"
  1052. },
  1053. {
  1054. "alias": "",
  1055. "colorMode": null,
  1056. "colors": [
  1057. "rgba(245, 54, 54, 0.9)",
  1058. "rgba(237, 129, 40, 0.89)",
  1059. "rgba(50, 172, 45, 0.97)"
  1060. ],
  1061. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1062. "decimals": 2,
  1063. "mappingType": 1,
  1064. "pattern": "Volume Name",
  1065. "thresholds": [],
  1066. "type": "hidden",
  1067. "unit": "short"
  1068. },
  1069. {
  1070. "alias": "",
  1071. "colorMode": null,
  1072. "colors": [
  1073. "rgba(245, 54, 54, 0.9)",
  1074. "rgba(237, 129, 40, 0.89)",
  1075. "rgba(50, 172, 45, 0.97)"
  1076. ],
  1077. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1078. "decimals": 2,
  1079. "mappingType": 1,
  1080. "pattern": "capacity",
  1081. "thresholds": [],
  1082. "type": "hidden",
  1083. "unit": "short"
  1084. },
  1085. {
  1086. "alias": "",
  1087. "colorMode": null,
  1088. "colors": [
  1089. "rgba(245, 54, 54, 0.9)",
  1090. "rgba(237, 129, 40, 0.89)",
  1091. "rgba(50, 172, 45, 0.97)"
  1092. ],
  1093. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1094. "decimals": 2,
  1095. "mappingType": 1,
  1096. "pattern": "Computer.Drives.Type",
  1097. "thresholds": [],
  1098. "type": "string",
  1099. "unit": "short"
  1100. },
  1101. {
  1102. "alias": "",
  1103. "colorMode": null,
  1104. "colors": [
  1105. "rgba(245, 54, 54, 0.9)",
  1106. "rgba(237, 129, 40, 0.89)",
  1107. "rgba(50, 172, 45, 0.97)"
  1108. ],
  1109. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1110. "decimals": 2,
  1111. "mappingType": 1,
  1112. "pattern": "GB Free",
  1113. "thresholds": [],
  1114. "type": "hidden",
  1115. "unit": "short"
  1116. }
  1117. ],
  1118. "targets": [
  1119. {
  1120. "alias": "",
  1121. "format": "table",
  1122. "hide": false,
  1123. "rawSql": "SELECT \r\ncomputers.locationid,\r\n computers.computerid as 'Computer Id',\r\n computers.name as 'Computer Name',\r\n computers.domain as `Computer Domain`,\r\n computers.username as `Computer User`,\r\n drives.letter,\r\n drives.VolumeName as 'Volume Name' ,\r\n drives.Size/1024 as 'capacity' , \r\n Drives.Free/1024 as `GB Free`,\r\n \r\n CASE WHEN LEFT(Drives.SmartStatus, INSTR(Drives.SmartStatus, ':')-1) IN('CD', 'DVD') THEN 3 WHEN LEFT(Drives.SmartStatus, INSTR(Drives.SmartStatus, ':')-1) = 'USB' THEN 2 WHEN LEFT(Drives.SmartStatus, INSTR(Drives.SmartStatus, ':')-1) IN('IDE', 'SCSI') THEN 1 WHEN Drives.FileSystem IN('NTFS', 'FAT32', 'FAT', 'HFS', 'ext2', 'ext3', 'ext4', 'btrfs', 'jfs', 'xfs', 'reiser4', 'reiserfs') THEN IF(INSTR(LOWER(Drives.Model), 'usb')>0, 2, 1) ELSE 4 END as `Computer.Drives.Type`\r\nFROM Computers \r\nLEFT JOIN inv_operatingsystem ON (Computers.ComputerId=inv_operatingsystem.ComputerId)\r\nLEFT JOIN Clients ON (Computers.ClientId=Clients.ClientId)\r\nLEFT JOIN Locations ON (Computers.LocationId=Locations.LocationID)\r\nLEFT JOIN Drives ON (Drives.ComputerId=Computers.ComputerId)\r\n WHERE \r\n((((Drives.Free/1024 < 4) and (drives.Size/1024 > 10) and drives.VolumeName != 'backups' and drives.VolumeName != 'UNK' and drives.VolumeName != 'hp_recovery' and drives.VolumeName != 'recovery' And (CASE WHEN LEFT(Drives.SmartStatus, INSTR(Drives.SmartStatus, ':')-1) IN('CD', 'DVD') THEN 3 WHEN LEFT(Drives.SmartStatus, INSTR(Drives.SmartStatus, ':')-1) = 'USB' THEN 2 WHEN LEFT(Drives.SmartStatus, INSTR(Drives.SmartStatus, ':')-1) IN('IDE', 'SCSI') THEN 1 WHEN Drives.FileSystem IN('NTFS', 'FAT32', 'FAT', 'HFS', 'ext2', 'ext3', 'ext4', 'btrfs', 'jfs', 'xfs', 'reiser4', 'reiserfs') THEN IF(INSTR(LOWER(Drives.Model), 'usb')>0, 2, 1) ELSE 4 END = '1'))))\r\nORDER BY `GB Free` DESC LIMIT 5",
  1124. "refId": "A"
  1125. }
  1126. ],
  1127. "timeFrom": null,
  1128. "title": "Low HDD",
  1129. "transform": "table",
  1130. "transparent": false,
  1131. "type": "table"
  1132. },
  1133. {
  1134. "columns": [],
  1135. "datasource": "Automate",
  1136. "description": "",
  1137. "fontSize": "100%",
  1138. "gridPos": {
  1139. "h": 4,
  1140. "w": 6,
  1141. "x": 6,
  1142. "y": 14
  1143. },
  1144. "height": "210",
  1145. "id": 42,
  1146. "links": [],
  1147. "pageSize": null,
  1148. "scroll": false,
  1149. "showHeader": true,
  1150. "sort": {
  1151. "col": 2,
  1152. "desc": true
  1153. },
  1154. "styles": [
  1155. {
  1156. "alias": "",
  1157. "colorMode": null,
  1158. "colors": [
  1159. "rgba(245, 54, 54, 0.9)",
  1160. "rgba(237, 129, 40, 0.89)",
  1161. "rgba(50, 172, 45, 0.97)"
  1162. ],
  1163. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1164. "decimals": 2,
  1165. "mappingType": 1,
  1166. "pattern": "externalID",
  1167. "thresholds": [],
  1168. "type": "hidden",
  1169. "unit": "short"
  1170. },
  1171. {
  1172. "alias": "",
  1173. "colorMode": null,
  1174. "colors": [
  1175. "rgba(245, 54, 54, 0.9)",
  1176. "rgba(237, 129, 40, 0.89)",
  1177. "rgba(50, 172, 45, 0.97)"
  1178. ],
  1179. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1180. "decimals": 2,
  1181. "mappingType": 1,
  1182. "pattern": "StartedDate",
  1183. "thresholds": [],
  1184. "type": "hidden",
  1185. "unit": "short"
  1186. },
  1187. {
  1188. "alias": "",
  1189. "colorMode": null,
  1190. "colors": [
  1191. "rgba(245, 54, 54, 0.9)",
  1192. "rgba(237, 129, 40, 0.89)",
  1193. "rgba(50, 172, 45, 0.97)"
  1194. ],
  1195. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1196. "decimals": 2,
  1197. "mappingType": 1,
  1198. "pattern": "monitorID",
  1199. "thresholds": [],
  1200. "type": "hidden",
  1201. "unit": "short"
  1202. },
  1203. {
  1204. "alias": "",
  1205. "colorMode": null,
  1206. "colors": [
  1207. "rgba(245, 54, 54, 0.9)",
  1208. "rgba(237, 129, 40, 0.89)",
  1209. "rgba(50, 172, 45, 0.97)"
  1210. ],
  1211. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1212. "decimals": 2,
  1213. "mappingType": 1,
  1214. "pattern": "LocationID",
  1215. "thresholds": [],
  1216. "type": "hidden",
  1217. "unit": "short"
  1218. },
  1219. {
  1220. "alias": "",
  1221. "colorMode": null,
  1222. "colors": [
  1223. "rgba(245, 54, 54, 0.9)",
  1224. "rgba(237, 129, 40, 0.89)",
  1225. "rgba(50, 172, 45, 0.97)"
  1226. ],
  1227. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1228. "decimals": 2,
  1229. "mappingType": 1,
  1230. "pattern": "NoAlerts",
  1231. "thresholds": [],
  1232. "type": "hidden",
  1233. "unit": "short"
  1234. },
  1235. {
  1236. "alias": "",
  1237. "colorMode": null,
  1238. "colors": [
  1239. "rgba(245, 54, 54, 0.9)",
  1240. "rgba(237, 129, 40, 0.89)",
  1241. "rgba(50, 172, 45, 0.97)"
  1242. ],
  1243. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1244. "decimals": 2,
  1245. "mappingType": 1,
  1246. "pattern": "",
  1247. "thresholds": [],
  1248. "type": "hidden",
  1249. "unit": "short"
  1250. },
  1251. {
  1252. "alias": "",
  1253. "colorMode": null,
  1254. "colors": [
  1255. "rgba(245, 54, 54, 0.9)",
  1256. "rgba(237, 129, 40, 0.89)",
  1257. "rgba(50, 172, 45, 0.97)"
  1258. ],
  1259. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1260. "decimals": 2,
  1261. "mappingType": 1,
  1262. "pattern": "UpTimeEnd",
  1263. "thresholds": [],
  1264. "type": "hidden",
  1265. "unit": "short"
  1266. },
  1267. {
  1268. "alias": "",
  1269. "colorMode": null,
  1270. "colors": [
  1271. "rgba(245, 54, 54, 0.9)",
  1272. "rgba(237, 129, 40, 0.89)",
  1273. "rgba(50, 172, 45, 0.97)"
  1274. ],
  1275. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1276. "decimals": 2,
  1277. "mappingType": 1,
  1278. "pattern": "UpTimeStart",
  1279. "thresholds": [],
  1280. "type": "hidden",
  1281. "unit": "short"
  1282. },
  1283. {
  1284. "alias": "",
  1285. "colorMode": null,
  1286. "colors": [
  1287. "rgba(245, 54, 54, 0.9)",
  1288. "rgba(237, 129, 40, 0.89)",
  1289. "rgba(50, 172, 45, 0.97)"
  1290. ],
  1291. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1292. "decimals": 2,
  1293. "mappingType": 1,
  1294. "pattern": "status",
  1295. "thresholds": [],
  1296. "type": "hidden",
  1297. "unit": "short"
  1298. },
  1299. {
  1300. "alias": "",
  1301. "colorMode": null,
  1302. "colors": [
  1303. "rgba(245, 54, 54, 0.9)",
  1304. "rgba(237, 129, 40, 0.89)",
  1305. "rgba(50, 172, 45, 0.97)"
  1306. ],
  1307. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  1308. "decimals": 2,
  1309. "mappingType": 1,
  1310. "pattern": "computerID",
  1311. "thresholds": [],
  1312. "type": "hidden",
  1313. "unit": "short"
  1314. }
  1315. ],
  1316. "targets": [
  1317. {
  1318. "alias": "",
  1319. "format": "table",
  1320. "hide": false,
  1321. "rawSql": "Select tickets.ticketID as 'testValue', Computers.computerID, Computers.Name as 'IdentityField', tickets.externalID, tickets.status, tickets.StartedDate, tickets.Subject, tickets.monitorID, tickets.LocationID, agentComputerData.NoAlerts, agentComputerData.UpTimeStart, agentComputerData.UpTimeEnd from ((Tickets left join computers on tickets.computerID = computers.computerID) left join agentComputerData on computers.computerID = agentComputerData.computerID) where tickets.externalID = 0 and startedDate > date_sub(current_date(), interval 15 day);",
  1322. "refId": "A"
  1323. }
  1324. ],
  1325. "timeFrom": null,
  1326. "title": "Ghost Tickets",
  1327. "transform": "table",
  1328. "transparent": false,
  1329. "type": "table"
  1330. },
  1331. {
  1332. "aliasColors": {},
  1333. "bars": false,
  1334. "dashLength": 10,
  1335. "dashes": false,
  1336. "datasource": "Automate",
  1337. "decimals": null,
  1338. "description": "",
  1339. "fill": 0,
  1340. "gridPos": {
  1341. "h": 4,
  1342. "w": 12,
  1343. "x": 12,
  1344. "y": 14
  1345. },
  1346. "hideTimeOverride": true,
  1347. "id": 14,
  1348. "legend": {
  1349. "alignAsTable": false,
  1350. "avg": true,
  1351. "current": true,
  1352. "hideEmpty": true,
  1353. "hideZero": true,
  1354. "max": false,
  1355. "min": false,
  1356. "rightSide": false,
  1357. "show": true,
  1358. "sort": "current",
  1359. "sortDesc": true,
  1360. "total": false,
  1361. "values": true
  1362. },
  1363. "lines": true,
  1364. "linewidth": 1,
  1365. "links": [],
  1366. "nullPointMode": "null as zero",
  1367. "percentage": false,
  1368. "pointradius": 1,
  1369. "points": false,
  1370. "renderer": "flot",
  1371. "seriesOverrides": [
  1372. {
  1373. "alias": "Brewdog CPU",
  1374. "color": "#0A437C"
  1375. },
  1376. {
  1377. "alias": "Brewdog Memory",
  1378. "color": "#EF843C"
  1379. },
  1380. {
  1381. "alias": "Server CPU",
  1382. "yaxis": 2
  1383. },
  1384. {
  1385. "alias": "Server Memory",
  1386. "yaxis": 2
  1387. }
  1388. ],
  1389. "spaceLength": 10,
  1390. "stack": false,
  1391. "steppedLine": false,
  1392. "targets": [
  1393. {
  1394. "alias": "",
  1395. "format": "time_series",
  1396. "rawSql": "SELECT\r\n(100-mem) AS value,\r\n (UNIX_TIMESTAMP(LastUpdate)) AS time_sec ,\r\n \r\n name AS metric\r\nFROM h_computerstatshourly \r\nINNER JOIN computers ON h_computerstatshourly.Computerid=computers.computerid\r\nWHERE $__timeFilter(LastUpdate) AND os LIKE '%server%' \r\nGROUP BY time_sec ASC\r\n",
  1397. "refId": "H"
  1398. }
  1399. ],
  1400. "thresholds": [
  1401. {
  1402. "colorMode": "ok",
  1403. "fill": true,
  1404. "line": true,
  1405. "op": "lt",
  1406. "value": 95
  1407. },
  1408. {
  1409. "colorMode": "critical",
  1410. "fill": true,
  1411. "line": true,
  1412. "op": "gt",
  1413. "value": 95
  1414. }
  1415. ],
  1416. "timeFrom": "24h",
  1417. "timeShift": null,
  1418. "title": "Memory Load",
  1419. "tooltip": {
  1420. "shared": true,
  1421. "sort": 1,
  1422. "value_type": "individual"
  1423. },
  1424. "transparent": false,
  1425. "type": "graph",
  1426. "xaxis": {
  1427. "buckets": null,
  1428. "mode": "time",
  1429. "name": null,
  1430. "show": true,
  1431. "values": []
  1432. },
  1433. "yaxes": [
  1434. {
  1435. "format": "percent",
  1436. "label": "Max Load",
  1437. "logBase": 1,
  1438. "max": "110",
  1439. "min": "0",
  1440. "show": true
  1441. },
  1442. {
  1443. "decimals": null,
  1444. "format": "percent",
  1445. "label": "",
  1446. "logBase": 1,
  1447. "max": "110",
  1448. "min": "0",
  1449. "show": true
  1450. }
  1451. ],
  1452. "yaxis": {
  1453. "align": false,
  1454. "alignLevel": null
  1455. }
  1456. },
  1457. {
  1458. "cacheTimeout": null,
  1459. "colorBackground": true,
  1460. "colorValue": false,
  1461. "colors": [
  1462. "#508642",
  1463. "#508642",
  1464. "#508642"
  1465. ],
  1466. "datasource": "Automate",
  1467. "format": "none",
  1468. "gauge": {
  1469. "maxValue": 100,
  1470. "minValue": 0,
  1471. "show": false,
  1472. "thresholdLabels": false,
  1473. "thresholdMarkers": true
  1474. },
  1475. "gridPos": {
  1476. "h": 3,
  1477. "w": 2,
  1478. "x": 0,
  1479. "y": 18
  1480. },
  1481. "id": 26,
  1482. "interval": null,
  1483. "links": [],
  1484. "mappingType": 1,
  1485. "mappingTypes": [
  1486. {
  1487. "name": "value to text",
  1488. "value": 1
  1489. },
  1490. {
  1491. "name": "range to text",
  1492. "value": 2
  1493. }
  1494. ],
  1495. "maxDataPoints": 100,
  1496. "nullPointMode": "connected",
  1497. "nullText": null,
  1498. "postfix": "",
  1499. "postfixFontSize": "80%",
  1500. "prefix": "",
  1501. "prefixFontSize": "50%",
  1502. "rangeMaps": [
  1503. {
  1504. "from": "null",
  1505. "text": "N/A",
  1506. "to": "null"
  1507. }
  1508. ],
  1509. "sparkline": {
  1510. "fillColor": "rgba(31, 118, 189, 0.18)",
  1511. "full": false,
  1512. "lineColor": "rgb(31, 120, 193)",
  1513. "show": false
  1514. },
  1515. "tableColumn": "Servers",
  1516. "targets": [
  1517. {
  1518. "alias": "",
  1519. "format": "table",
  1520. "groupBy": [
  1521. {
  1522. "params": [
  1523. "$__interval"
  1524. ],
  1525. "type": "time"
  1526. },
  1527. {
  1528. "params": [
  1529. "null"
  1530. ],
  1531. "type": "fill"
  1532. }
  1533. ],
  1534. "orderByTime": "ASC",
  1535. "policy": "default",
  1536. "rawSql": "SELECT COUNT(*) 'Servers'\r\nFROM Computers \r\nWHERE Computers.OS NOT LIKE '%server%'",
  1537. "refId": "A",
  1538. "resultFormat": "time_series",
  1539. "select": [
  1540. [
  1541. {
  1542. "params": [
  1543. "value"
  1544. ],
  1545. "type": "field"
  1546. },
  1547. {
  1548. "params": [],
  1549. "type": "mean"
  1550. }
  1551. ]
  1552. ],
  1553. "tags": []
  1554. }
  1555. ],
  1556. "thresholds": "",
  1557. "title": "WS",
  1558. "type": "singlestat",
  1559. "valueFontSize": "100%",
  1560. "valueMaps": [
  1561. {
  1562. "op": "=",
  1563. "text": "N/A",
  1564. "value": "null"
  1565. }
  1566. ],
  1567. "valueName": "avg"
  1568. },
  1569. {
  1570. "cacheTimeout": null,
  1571. "colorBackground": true,
  1572. "colorValue": false,
  1573. "colors": [
  1574. "#508642",
  1575. "#508642",
  1576. "#508642"
  1577. ],
  1578. "datasource": "Automate",
  1579. "format": "none",
  1580. "gauge": {
  1581. "maxValue": 100,
  1582. "minValue": 0,
  1583. "show": false,
  1584. "thresholdLabels": false,
  1585. "thresholdMarkers": true
  1586. },
  1587. "gridPos": {
  1588. "h": 3,
  1589. "w": 2,
  1590. "x": 2,
  1591. "y": 18
  1592. },
  1593. "id": 24,
  1594. "interval": null,
  1595. "links": [],
  1596. "mappingType": 1,
  1597. "mappingTypes": [
  1598. {
  1599. "name": "value to text",
  1600. "value": 1
  1601. },
  1602. {
  1603. "name": "range to text",
  1604. "value": 2
  1605. }
  1606. ],
  1607. "maxDataPoints": 100,
  1608. "nullPointMode": "connected",
  1609. "nullText": null,
  1610. "postfix": "",
  1611. "postfixFontSize": "80%",
  1612. "prefix": "",
  1613. "prefixFontSize": "50%",
  1614. "rangeMaps": [
  1615. {
  1616. "from": "null",
  1617. "text": "N/A",
  1618. "to": "null"
  1619. }
  1620. ],
  1621. "sparkline": {
  1622. "fillColor": "rgba(31, 118, 189, 0.18)",
  1623. "full": false,
  1624. "lineColor": "rgb(31, 120, 193)",
  1625. "show": false
  1626. },
  1627. "tableColumn": "Servers",
  1628. "targets": [
  1629. {
  1630. "alias": "",
  1631. "format": "table",
  1632. "groupBy": [
  1633. {
  1634. "params": [
  1635. "$__interval"
  1636. ],
  1637. "type": "time"
  1638. },
  1639. {
  1640. "params": [
  1641. "null"
  1642. ],
  1643. "type": "fill"
  1644. }
  1645. ],
  1646. "orderByTime": "ASC",
  1647. "policy": "default",
  1648. "rawSql": "SELECT COUNT(*) 'Servers'\r\nFROM Computers \r\nWHERE Computers.OS LIKE '%server%'",
  1649. "refId": "A",
  1650. "resultFormat": "time_series",
  1651. "select": [
  1652. [
  1653. {
  1654. "params": [
  1655. "value"
  1656. ],
  1657. "type": "field"
  1658. },
  1659. {
  1660. "params": [],
  1661. "type": "mean"
  1662. }
  1663. ]
  1664. ],
  1665. "tags": []
  1666. }
  1667. ],
  1668. "thresholds": "",
  1669. "title": "SRV",
  1670. "type": "singlestat",
  1671. "valueFontSize": "100%",
  1672. "valueMaps": [
  1673. {
  1674. "op": "=",
  1675. "text": "N/A",
  1676. "value": "null"
  1677. }
  1678. ],
  1679. "valueName": "avg"
  1680. },
  1681. {
  1682. "cacheTimeout": null,
  1683. "colorBackground": true,
  1684. "colorValue": false,
  1685. "colors": [
  1686. "#508642",
  1687. "#508642",
  1688. "#508642"
  1689. ],
  1690. "datasource": "Automate",
  1691. "format": "none",
  1692. "gauge": {
  1693. "maxValue": 100,
  1694. "minValue": 0,
  1695. "show": false,
  1696. "thresholdLabels": false,
  1697. "thresholdMarkers": true
  1698. },
  1699. "gridPos": {
  1700. "h": 3,
  1701. "w": 2,
  1702. "x": 4,
  1703. "y": 18
  1704. },
  1705. "id": 8,
  1706. "interval": null,
  1707. "links": [],
  1708. "mappingType": 1,
  1709. "mappingTypes": [
  1710. {
  1711. "name": "value to text",
  1712. "value": 1
  1713. },
  1714. {
  1715. "name": "range to text",
  1716. "value": 2
  1717. }
  1718. ],
  1719. "maxDataPoints": 100,
  1720. "nullPointMode": "connected",
  1721. "nullText": null,
  1722. "postfix": "",
  1723. "postfixFontSize": "50%",
  1724. "prefix": "",
  1725. "prefixFontSize": "50%",
  1726. "rangeMaps": [
  1727. {
  1728. "from": "null",
  1729. "text": "N/A",
  1730. "to": "null"
  1731. }
  1732. ],
  1733. "sparkline": {
  1734. "fillColor": "rgba(31, 118, 189, 0.18)",
  1735. "full": false,
  1736. "lineColor": "rgb(31, 120, 193)",
  1737. "show": false
  1738. },
  1739. "tableColumn": "New Computers last 30 days",
  1740. "targets": [
  1741. {
  1742. "alias": "",
  1743. "format": "table",
  1744. "groupBy": [
  1745. {
  1746. "params": [
  1747. "$__interval"
  1748. ],
  1749. "type": "time"
  1750. },
  1751. {
  1752. "params": [
  1753. "null"
  1754. ],
  1755. "type": "fill"
  1756. }
  1757. ],
  1758. "orderByTime": "ASC",
  1759. "policy": "default",
  1760. "rawSql": "SELECT \r\n COUNT(computers.name) AS 'New Computers last 30 days' \r\n \r\nFROM Computers \r\nLEFT JOIN inv_operatingsystem ON (Computers.ComputerId=inv_operatingsystem.ComputerId)\r\nLEFT JOIN Clients ON (Computers.ClientId=Clients.ClientId)\r\nLEFT JOIN Locations ON (Computers.LocationId=Locations.LocationID)\r\n WHERE \r\n((DATEDIFF(NOW(), Computers.DateAdded) < 30))\r\n",
  1761. "refId": "A",
  1762. "resultFormat": "time_series",
  1763. "select": [
  1764. [
  1765. {
  1766. "params": [
  1767. "value"
  1768. ],
  1769. "type": "field"
  1770. },
  1771. {
  1772. "params": [],
  1773. "type": "mean"
  1774. }
  1775. ]
  1776. ],
  1777. "tags": []
  1778. }
  1779. ],
  1780. "thresholds": "",
  1781. "title": "New Last 30 days",
  1782. "type": "singlestat",
  1783. "valueFontSize": "100%",
  1784. "valueMaps": [
  1785. {
  1786. "op": "=",
  1787. "text": "N/A",
  1788. "value": "null"
  1789. }
  1790. ],
  1791. "valueName": "avg"
  1792. },
  1793. {
  1794. "cacheTimeout": null,
  1795. "colorBackground": true,
  1796. "colorValue": false,
  1797. "colors": [
  1798. "#508642",
  1799. "#508642",
  1800. "#508642"
  1801. ],
  1802. "datasource": "Automate",
  1803. "decimals": null,
  1804. "format": "none",
  1805. "gauge": {
  1806. "maxValue": 200,
  1807. "minValue": 0,
  1808. "show": false,
  1809. "thresholdLabels": false,
  1810. "thresholdMarkers": true
  1811. },
  1812. "gridPos": {
  1813. "h": 3,
  1814. "w": 2,
  1815. "x": 6,
  1816. "y": 18
  1817. },
  1818. "id": 22,
  1819. "interval": null,
  1820. "links": [],
  1821. "mappingType": 2,
  1822. "mappingTypes": [
  1823. {
  1824. "name": "value to text",
  1825. "value": 1
  1826. },
  1827. {
  1828. "name": "range to text",
  1829. "value": 2
  1830. }
  1831. ],
  1832. "maxDataPoints": 100,
  1833. "nullPointMode": "connected",
  1834. "nullText": null,
  1835. "postfix": " ",
  1836. "postfixFontSize": "70%",
  1837. "prefix": "",
  1838. "prefixFontSize": "70%",
  1839. "rangeMaps": [],
  1840. "sparkline": {
  1841. "fillColor": "rgba(31, 118, 189, 0.18)",
  1842. "full": false,
  1843. "lineColor": "rgb(31, 120, 193)",
  1844. "show": false
  1845. },
  1846. "tableColumn": "%Sophos Endpoint Agent%",
  1847. "targets": [
  1848. {
  1849. "alias": "",
  1850. "format": "table",
  1851. "rawSql": "SELECT count(*) as '%Sophos Endpoint Agent%'\r\n\r\nFROM Computers \r\nLEFT JOIN inv_operatingsystem ON (Computers.ComputerId=inv_operatingsystem.ComputerId)\r\nLEFT JOIN Clients ON (Computers.ClientId=Clients.ClientId)\r\nLEFT JOIN Locations ON (Computers.LocationId=Locations.LocationID)\r\nLEFT JOIN Software ON (Software.ComputerId = Computers.ComputerId)\r\n WHERE \r\n((Software.Name LIKE '%Sophos Endpoint Agent%'))\r\n",
  1852. "refId": "A"
  1853. }
  1854. ],
  1855. "thresholds": "",
  1856. "title": "Sophos",
  1857. "type": "singlestat",
  1858. "valueFontSize": "100%",
  1859. "valueMaps": [],
  1860. "valueName": "avg"
  1861. },
  1862. {
  1863. "cacheTimeout": null,
  1864. "colorBackground": true,
  1865. "colorValue": false,
  1866. "colors": [
  1867. "#508642",
  1868. "#508642",
  1869. "#508642"
  1870. ],
  1871. "datasource": "Automate",
  1872. "format": "none",
  1873. "gauge": {
  1874. "maxValue": 100,
  1875. "minValue": 0,
  1876. "show": false,
  1877. "thresholdLabels": false,
  1878. "thresholdMarkers": true
  1879. },
  1880. "gridPos": {
  1881. "h": 3,
  1882. "w": 2,
  1883. "x": 8,
  1884. "y": 18
  1885. },
  1886. "id": 20,
  1887. "interval": null,
  1888. "links": [],
  1889. "mappingType": 1,
  1890. "mappingTypes": [
  1891. {
  1892. "name": "value to text",
  1893. "value": 1
  1894. },
  1895. {
  1896. "name": "range to text",
  1897. "value": 2
  1898. }
  1899. ],
  1900. "maxDataPoints": 100,
  1901. "nullPointMode": "connected",
  1902. "nullText": null,
  1903. "postfix": " ",
  1904. "postfixFontSize": "80%",
  1905. "prefix": "",
  1906. "prefixFontSize": "80%",
  1907. "rangeMaps": [
  1908. {
  1909. "from": "null",
  1910. "text": "N/A",
  1911. "to": "null"
  1912. }
  1913. ],
  1914. "sparkline": {
  1915. "fillColor": "rgba(31, 118, 189, 0.18)",
  1916. "full": false,
  1917. "lineColor": "rgb(31, 120, 193)",
  1918. "show": false
  1919. },
  1920. "tableColumn": "%bitdefender%",
  1921. "targets": [
  1922. {
  1923. "alias": "",
  1924. "format": "table",
  1925. "groupBy": [
  1926. {
  1927. "params": [
  1928. "$__interval"
  1929. ],
  1930. "type": "time"
  1931. },
  1932. {
  1933. "params": [
  1934. "null"
  1935. ],
  1936. "type": "fill"
  1937. }
  1938. ],
  1939. "orderByTime": "ASC",
  1940. "policy": "default",
  1941. "rawSql": "SELECT count(*) as '%bitdefender%'\r\n\r\nFROM Computers \r\nLEFT JOIN inv_operatingsystem ON (Computers.ComputerId=inv_operatingsystem.ComputerId)\r\nLEFT JOIN Clients ON (Computers.ClientId=Clients.ClientId)\r\nLEFT JOIN Locations ON (Computers.LocationId=Locations.LocationID)\r\nLEFT JOIN Software ON (Software.ComputerId = Computers.ComputerId)\r\n WHERE \r\n((Software.Name LIKE '%bitdefender%'))\r\n",
  1942. "refId": "A",
  1943. "resultFormat": "time_series",
  1944. "select": [
  1945. [
  1946. {
  1947. "params": [
  1948. "value"
  1949. ],
  1950. "type": "field"
  1951. },
  1952. {
  1953. "params": [],
  1954. "type": "mean"
  1955. }
  1956. ]
  1957. ],
  1958. "tags": []
  1959. }
  1960. ],
  1961. "thresholds": "",
  1962. "title": "Bitdefender",
  1963. "type": "singlestat",
  1964. "valueFontSize": "100%",
  1965. "valueMaps": [
  1966. {
  1967. "op": "=",
  1968. "text": "N/A",
  1969. "value": "null"
  1970. }
  1971. ],
  1972. "valueName": "avg"
  1973. },
  1974. {
  1975. "cacheTimeout": null,
  1976. "colorBackground": true,
  1977. "colorValue": false,
  1978. "colors": [
  1979. "#508642",
  1980. "#508642",
  1981. "#508642"
  1982. ],
  1983. "datasource": "Automate",
  1984. "format": "none",
  1985. "gauge": {
  1986. "maxValue": 100,
  1987. "minValue": 0,
  1988. "show": false,
  1989. "thresholdLabels": false,
  1990. "thresholdMarkers": true
  1991. },
  1992. "gridPos": {
  1993. "h": 3,
  1994. "w": 2,
  1995. "x": 10,
  1996. "y": 18
  1997. },
  1998. "id": 32,
  1999. "interval": null,
  2000. "links": [],
  2001. "mappingType": 1,
  2002. "mappingTypes": [
  2003. {
  2004. "name": "value to text",
  2005. "value": 1
  2006. },
  2007. {
  2008. "name": "range to text",
  2009. "value": 2
  2010. }
  2011. ],
  2012. "maxDataPoints": 100,
  2013. "nullPointMode": "connected",
  2014. "nullText": null,
  2015. "postfix": " ",
  2016. "postfixFontSize": "80%",
  2017. "prefix": "",
  2018. "prefixFontSize": "80%",
  2019. "rangeMaps": [
  2020. {
  2021. "from": "null",
  2022. "text": "N/A",
  2023. "to": "null"
  2024. }
  2025. ],
  2026. "sparkline": {
  2027. "fillColor": "rgba(31, 118, 189, 0.18)",
  2028. "full": false,
  2029. "lineColor": "rgb(31, 120, 193)",
  2030. "show": false
  2031. },
  2032. "tableColumn": "%bitdefender%",
  2033. "targets": [
  2034. {
  2035. "alias": "",
  2036. "format": "table",
  2037. "groupBy": [
  2038. {
  2039. "params": [
  2040. "$__interval"
  2041. ],
  2042. "type": "time"
  2043. },
  2044. {
  2045. "params": [
  2046. "null"
  2047. ],
  2048. "type": "fill"
  2049. }
  2050. ],
  2051. "orderByTime": "ASC",
  2052. "policy": "default",
  2053. "rawSql": "SELECT count(*) as '%bitdefender%'\r\n\r\nFROM Computers \r\nLEFT JOIN inv_operatingsystem ON (Computers.ComputerId=inv_operatingsystem.ComputerId)\r\nLEFT JOIN Clients ON (Computers.ClientId=Clients.ClientId)\r\nLEFT JOIN Locations ON (Computers.LocationId=Locations.LocationID)\r\nLEFT JOIN Software ON (Software.ComputerId = Computers.ComputerId)\r\n WHERE \r\n((Software.Name LIKE '%ninite%'))\r\n",
  2054. "refId": "A",
  2055. "resultFormat": "time_series",
  2056. "select": [
  2057. [
  2058. {
  2059. "params": [
  2060. "value"
  2061. ],
  2062. "type": "field"
  2063. },
  2064. {
  2065. "params": [],
  2066. "type": "mean"
  2067. }
  2068. ]
  2069. ],
  2070. "tags": []
  2071. }
  2072. ],
  2073. "thresholds": "",
  2074. "title": "Ninite",
  2075. "type": "singlestat",
  2076. "valueFontSize": "100%",
  2077. "valueMaps": [
  2078. {
  2079. "op": "=",
  2080. "text": "N/A",
  2081. "value": "null"
  2082. }
  2083. ],
  2084. "valueName": "avg"
  2085. },
  2086. {
  2087. "cacheTimeout": null,
  2088. "colorBackground": false,
  2089. "colorValue": false,
  2090. "colors": [
  2091. "#508642",
  2092. "#cca300",
  2093. "#890f02"
  2094. ],
  2095. "datasource": "Automate",
  2096. "format": "short",
  2097. "gauge": {
  2098. "maxValue": 100,
  2099. "minValue": 0,
  2100. "show": true,
  2101. "thresholdLabels": false,
  2102. "thresholdMarkers": false
  2103. },
  2104. "gridPos": {
  2105. "h": 3,
  2106. "w": 2,
  2107. "x": 12,
  2108. "y": 18
  2109. },
  2110. "id": 2,
  2111. "interval": null,
  2112. "links": [],
  2113. "mappingType": 1,
  2114. "mappingTypes": [
  2115. {
  2116. "name": "value to text",
  2117. "value": 1
  2118. },
  2119. {
  2120. "name": "range to text",
  2121. "value": 2
  2122. }
  2123. ],
  2124. "maxDataPoints": 100,
  2125. "nullPointMode": "connected",
  2126. "nullText": null,
  2127. "postfix": "",
  2128. "postfixFontSize": "50%",
  2129. "prefix": "",
  2130. "prefixFontSize": "80%",
  2131. "rangeMaps": [
  2132. {
  2133. "from": "0",
  2134. "text": "N/A",
  2135. "to": "200"
  2136. }
  2137. ],
  2138. "sparkline": {
  2139. "fillColor": "rgba(63, 189, 31, 0.18)",
  2140. "full": false,
  2141. "lineColor": "rgb(31, 193, 102)",
  2142. "show": false
  2143. },
  2144. "tableColumn": "count(*)",
  2145. "targets": [
  2146. {
  2147. "alias": "",
  2148. "format": "table",
  2149. "rawSql": "SELECT count(*) FROM labtech.computers\r\n",
  2150. "refId": "A"
  2151. }
  2152. ],
  2153. "thresholds": "80,95",
  2154. "title": "Deployed Agents",
  2155. "transparent": false,
  2156. "type": "singlestat",
  2157. "valueFontSize": "100%",
  2158. "valueMaps": [
  2159. {
  2160. "op": "=",
  2161. "text": "N/A",
  2162. "value": "0"
  2163. }
  2164. ],
  2165. "valueName": "avg"
  2166. },
  2167. {
  2168. "cacheTimeout": null,
  2169. "colorBackground": false,
  2170. "colorValue": false,
  2171. "colors": [
  2172. "#508642",
  2173. "rgba(237, 129, 40, 0.89)",
  2174. "rgba(245, 54, 54, 0.9)"
  2175. ],
  2176. "datasource": "Automate",
  2177. "format": "percent",
  2178. "gauge": {
  2179. "maxValue": 99,
  2180. "minValue": 0,
  2181. "show": true,
  2182. "thresholdLabels": false,
  2183. "thresholdMarkers": false
  2184. },
  2185. "gridPos": {
  2186. "h": 3,
  2187. "w": 2,
  2188. "x": 20,
  2189. "y": 18
  2190. },
  2191. "id": 6,
  2192. "interval": null,
  2193. "links": [],
  2194. "mappingType": 1,
  2195. "mappingTypes": [
  2196. {
  2197. "name": "value to text",
  2198. "value": 1
  2199. },
  2200. {
  2201. "name": "range to text",
  2202. "value": 2
  2203. }
  2204. ],
  2205. "maxDataPoints": 100,
  2206. "minSpan": null,
  2207. "nullPointMode": "connected",
  2208. "nullText": null,
  2209. "postfix": "",
  2210. "postfixFontSize": "50%",
  2211. "prefix": "",
  2212. "prefixFontSize": "80%",
  2213. "rangeMaps": [
  2214. {
  2215. "from": "null",
  2216. "text": "N/A",
  2217. "to": "null"
  2218. }
  2219. ],
  2220. "sparkline": {
  2221. "fillColor": "rgba(31, 118, 189, 0.18)",
  2222. "full": false,
  2223. "lineColor": "rgb(31, 120, 193)",
  2224. "show": false
  2225. },
  2226. "tableColumn": "value",
  2227. "targets": [
  2228. {
  2229. "alias": "",
  2230. "format": "table",
  2231. "groupBy": [
  2232. {
  2233. "params": [
  2234. "$__interval"
  2235. ],
  2236. "type": "time"
  2237. },
  2238. {
  2239. "params": [
  2240. "null"
  2241. ],
  2242. "type": "fill"
  2243. }
  2244. ],
  2245. "orderByTime": "ASC",
  2246. "policy": "default",
  2247. "rawSql": "SELECT ROUND((SUM(IF(hf.approved=2 AND hf.installed=1,1,0)))/SUM(IF(hf.approved=2,1,0))*100) AS `value` \r\nFROM Hotfix AS hf JOIN Computers AS c ON hf.Computerid = c.ComputerId \r\nWHERE (hf.Last_Date >= '0001-01-01 00:00:00') ",
  2248. "refId": "A",
  2249. "resultFormat": "time_series",
  2250. "select": [
  2251. [
  2252. {
  2253. "params": [
  2254. "value"
  2255. ],
  2256. "type": "field"
  2257. },
  2258. {
  2259. "params": [],
  2260. "type": "mean"
  2261. }
  2262. ]
  2263. ],
  2264. "tags": []
  2265. }
  2266. ],
  2267. "thresholds": "100,90,80",
  2268. "title": "Patch Deployment",
  2269. "type": "singlestat",
  2270. "valueFontSize": "100%",
  2271. "valueMaps": [
  2272. {
  2273. "op": "=",
  2274. "text": "N/A",
  2275. "value": "null"
  2276. }
  2277. ],
  2278. "valueName": "avg"
  2279. },
  2280. {
  2281. "cacheTimeout": null,
  2282. "colorBackground": false,
  2283. "colorValue": false,
  2284. "colors": [
  2285. "#508642",
  2286. "rgba(196, 159, 11, 0.89)",
  2287. "rgba(245, 54, 54, 0.9)"
  2288. ],
  2289. "datasource": "Automate",
  2290. "decimals": null,
  2291. "format": "percent",
  2292. "gauge": {
  2293. "maxValue": 99,
  2294. "minValue": 0,
  2295. "show": true,
  2296. "thresholdLabels": false,
  2297. "thresholdMarkers": false
  2298. },
  2299. "gridPos": {
  2300. "h": 3,
  2301. "w": 2,
  2302. "x": 22,
  2303. "y": 18
  2304. },
  2305. "id": 4,
  2306. "interval": null,
  2307. "links": [],
  2308. "mappingType": 1,
  2309. "mappingTypes": [
  2310. {
  2311. "name": "value to text",
  2312. "value": 1
  2313. },
  2314. {
  2315. "name": "range to text",
  2316. "value": 2
  2317. }
  2318. ],
  2319. "maxDataPoints": 100,
  2320. "nullPointMode": "connected",
  2321. "nullText": null,
  2322. "postfix": "",
  2323. "postfixFontSize": "50%",
  2324. "prefix": "",
  2325. "prefixFontSize": "80%",
  2326. "rangeMaps": [
  2327. {
  2328. "from": "null",
  2329. "text": "N/A",
  2330. "to": "null"
  2331. }
  2332. ],
  2333. "sparkline": {
  2334. "fillColor": "rgba(31, 118, 189, 0.18)",
  2335. "full": false,
  2336. "lineColor": "rgb(31, 120, 193)",
  2337. "show": false
  2338. },
  2339. "tableColumn": "value",
  2340. "targets": [
  2341. {
  2342. "alias": "",
  2343. "format": "table",
  2344. "groupBy": [
  2345. {
  2346. "params": [
  2347. "$__interval"
  2348. ],
  2349. "type": "time"
  2350. },
  2351. {
  2352. "params": [
  2353. "null"
  2354. ],
  2355. "type": "fill"
  2356. }
  2357. ],
  2358. "orderByTime": "ASC",
  2359. "policy": "default",
  2360. "rawSql": "SELECT ROUND(AVG(TargetWeightedScore)) AS `value` \nFROM v_xr_sap_clienthealthchecks \nWHERE clientid=(1 OR 1=0) AND (Checkname LIKE 'Drive Fragmentation' OR Checkname LIKE 'Drive Stability' OR Checkname LIKE 'Drive Performance')",
  2361. "refId": "A",
  2362. "resultFormat": "time_series",
  2363. "select": [
  2364. [
  2365. {
  2366. "params": [
  2367. "value"
  2368. ],
  2369. "type": "field"
  2370. },
  2371. {
  2372. "params": [],
  2373. "type": "mean"
  2374. }
  2375. ]
  2376. ],
  2377. "tags": []
  2378. }
  2379. ],
  2380. "thresholds": "95,80,40",
  2381. "title": "Disk Health",
  2382. "transparent": false,
  2383. "type": "singlestat",
  2384. "valueFontSize": "100%",
  2385. "valueMaps": [
  2386. {
  2387. "op": "=",
  2388. "text": "N/A",
  2389. "value": "null"
  2390. }
  2391. ],
  2392. "valueName": "avg"
  2393. },
  2394. {
  2395. "cacheTimeout": null,
  2396. "colorBackground": true,
  2397. "colorValue": false,
  2398. "colors": [
  2399. "#508642",
  2400. "#508642",
  2401. "#508642"
  2402. ],
  2403. "datasource": "Automate",
  2404. "format": "none",
  2405. "gauge": {
  2406. "maxValue": 100,
  2407. "minValue": 0,
  2408. "show": false,
  2409. "thresholdLabels": false,
  2410. "thresholdMarkers": true
  2411. },
  2412. "gridPos": {
  2413. "h": 3,
  2414. "w": 2,
  2415. "x": 0,
  2416. "y": 21
  2417. },
  2418. "id": 35,
  2419. "interval": null,
  2420. "links": [],
  2421. "mappingType": 1,
  2422. "mappingTypes": [
  2423. {
  2424. "name": "value to text",
  2425. "value": 1
  2426. },
  2427. {
  2428. "name": "range to text",
  2429. "value": 2
  2430. }
  2431. ],
  2432. "maxDataPoints": 100,
  2433. "nullPointMode": "connected",
  2434. "nullText": null,
  2435. "postfix": " ",
  2436. "postfixFontSize": "80%",
  2437. "prefix": "",
  2438. "prefixFontSize": "80%",
  2439. "rangeMaps": [
  2440. {
  2441. "from": "null",
  2442. "text": "N/A",
  2443. "to": "null"
  2444. }
  2445. ],
  2446. "sparkline": {
  2447. "fillColor": "rgba(31, 118, 189, 0.18)",
  2448. "full": false,
  2449. "lineColor": "rgb(31, 120, 193)",
  2450. "show": false
  2451. },
  2452. "tableColumn": "%java%",
  2453. "targets": [
  2454. {
  2455. "alias": "",
  2456. "format": "table",
  2457. "groupBy": [
  2458. {
  2459. "params": [
  2460. "$__interval"
  2461. ],
  2462. "type": "time"
  2463. },
  2464. {
  2465. "params": [
  2466. "null"
  2467. ],
  2468. "type": "fill"
  2469. }
  2470. ],
  2471. "orderByTime": "ASC",
  2472. "policy": "default",
  2473. "rawSql": "SELECT count(*) as '%java%'\r\n\r\nFROM Computers \r\nLEFT JOIN inv_operatingsystem ON (Computers.ComputerId=inv_operatingsystem.ComputerId)\r\nLEFT JOIN Clients ON (Computers.ClientId=Clients.ClientId)\r\nLEFT JOIN Locations ON (Computers.LocationId=Locations.LocationID)\r\nLEFT JOIN Software ON (Software.ComputerId = Computers.ComputerId)\r\n WHERE \r\n((Software.Name LIKE '%java%'))\r\n",
  2474. "refId": "A",
  2475. "resultFormat": "time_series",
  2476. "select": [
  2477. [
  2478. {
  2479. "params": [
  2480. "value"
  2481. ],
  2482. "type": "field"
  2483. },
  2484. {
  2485. "params": [],
  2486. "type": "mean"
  2487. }
  2488. ]
  2489. ],
  2490. "tags": []
  2491. }
  2492. ],
  2493. "thresholds": "",
  2494. "title": "Java",
  2495. "type": "singlestat",
  2496. "valueFontSize": "100%",
  2497. "valueMaps": [
  2498. {
  2499. "op": "=",
  2500. "text": "N/A",
  2501. "value": "null"
  2502. }
  2503. ],
  2504. "valueName": "avg"
  2505. },
  2506. {
  2507. "cacheTimeout": null,
  2508. "colorBackground": true,
  2509. "colorValue": false,
  2510. "colors": [
  2511. "#508642",
  2512. "#508642",
  2513. "#508642"
  2514. ],
  2515. "datasource": "Automate",
  2516. "format": "none",
  2517. "gauge": {
  2518. "maxValue": 100,
  2519. "minValue": 0,
  2520. "show": false,
  2521. "thresholdLabels": false,
  2522. "thresholdMarkers": true
  2523. },
  2524. "gridPos": {
  2525. "h": 3,
  2526. "w": 2,
  2527. "x": 2,
  2528. "y": 21
  2529. },
  2530. "id": 34,
  2531. "interval": null,
  2532. "links": [],
  2533. "mappingType": 1,
  2534. "mappingTypes": [
  2535. {
  2536. "name": "value to text",
  2537. "value": 1
  2538. },
  2539. {
  2540. "name": "range to text",
  2541. "value": 2
  2542. }
  2543. ],
  2544. "maxDataPoints": 100,
  2545. "nullPointMode": "connected",
  2546. "nullText": null,
  2547. "postfix": " ",
  2548. "postfixFontSize": "80%",
  2549. "prefix": "",
  2550. "prefixFontSize": "80%",
  2551. "rangeMaps": [
  2552. {
  2553. "from": "null",
  2554. "text": "N/A",
  2555. "to": "null"
  2556. }
  2557. ],
  2558. "sparkline": {
  2559. "fillColor": "rgba(31, 118, 189, 0.18)",
  2560. "full": false,
  2561. "lineColor": "rgb(31, 120, 193)",
  2562. "show": false
  2563. },
  2564. "tableColumn": "%microsoft office%",
  2565. "targets": [
  2566. {
  2567. "alias": "",
  2568. "format": "table",
  2569. "groupBy": [
  2570. {
  2571. "params": [
  2572. "$__interval"
  2573. ],
  2574. "type": "time"
  2575. },
  2576. {
  2577. "params": [
  2578. "null"
  2579. ],
  2580. "type": "fill"
  2581. }
  2582. ],
  2583. "orderByTime": "ASC",
  2584. "policy": "default",
  2585. "rawSql": "SELECT count(*) as '%microsoft office%'\r\n\r\nFROM Computers \r\nLEFT JOIN inv_operatingsystem ON (Computers.ComputerId=inv_operatingsystem.ComputerId)\r\nLEFT JOIN Clients ON (Computers.ClientId=Clients.ClientId)\r\nLEFT JOIN Locations ON (Computers.LocationId=Locations.LocationID)\r\nLEFT JOIN Software ON (Software.ComputerId = Computers.ComputerId)\r\n WHERE \r\n((Software.Name LIKE '%microsoft office%'))\r\n",
  2586. "refId": "A",
  2587. "resultFormat": "time_series",
  2588. "select": [
  2589. [
  2590. {
  2591. "params": [
  2592. "value"
  2593. ],
  2594. "type": "field"
  2595. },
  2596. {
  2597. "params": [],
  2598. "type": "mean"
  2599. }
  2600. ]
  2601. ],
  2602. "tags": []
  2603. }
  2604. ],
  2605. "thresholds": "",
  2606. "title": "Microsoft Office",
  2607. "type": "singlestat",
  2608. "valueFontSize": "100%",
  2609. "valueMaps": [
  2610. {
  2611. "op": "=",
  2612. "text": "N/A",
  2613. "value": "null"
  2614. }
  2615. ],
  2616. "valueName": "avg"
  2617. },
  2618. {
  2619. "cacheTimeout": null,
  2620. "colorBackground": true,
  2621. "colorValue": false,
  2622. "colors": [
  2623. "#508642",
  2624. "#508642",
  2625. "#890f02"
  2626. ],
  2627. "datasource": "Automate",
  2628. "format": "none",
  2629. "gauge": {
  2630. "maxValue": 100,
  2631. "minValue": 0,
  2632. "show": false,
  2633. "thresholdLabels": false,
  2634. "thresholdMarkers": true
  2635. },
  2636. "gridPos": {
  2637. "h": 3,
  2638. "w": 2,
  2639. "x": 0,
  2640. "y": 24
  2641. },
  2642. "id": 36,
  2643. "interval": null,
  2644. "links": [],
  2645. "mappingType": 1,
  2646. "mappingTypes": [
  2647. {
  2648. "name": "value to text",
  2649. "value": 1
  2650. },
  2651. {
  2652. "name": "range to text",
  2653. "value": 2
  2654. }
  2655. ],
  2656. "maxDataPoints": 100,
  2657. "nullPointMode": "connected",
  2658. "nullText": null,
  2659. "postfix": " ",
  2660. "postfixFontSize": "80%",
  2661. "prefix": "",
  2662. "prefixFontSize": "80%",
  2663. "rangeMaps": [
  2664. {
  2665. "from": "null",
  2666. "text": "N/A",
  2667. "to": "null"
  2668. }
  2669. ],
  2670. "sparkline": {
  2671. "fillColor": "rgba(31, 118, 189, 0.18)",
  2672. "full": false,
  2673. "lineColor": "rgb(31, 120, 193)",
  2674. "show": false
  2675. },
  2676. "tableColumn": "%Mcafee%",
  2677. "targets": [
  2678. {
  2679. "alias": "",
  2680. "format": "table",
  2681. "groupBy": [
  2682. {
  2683. "params": [
  2684. "$__interval"
  2685. ],
  2686. "type": "time"
  2687. },
  2688. {
  2689. "params": [
  2690. "null"
  2691. ],
  2692. "type": "fill"
  2693. }
  2694. ],
  2695. "orderByTime": "ASC",
  2696. "policy": "default",
  2697. "rawSql": "SELECT count(*) as '%Mcafee%'\r\n\r\nFROM Computers \r\nLEFT JOIN inv_operatingsystem ON (Computers.ComputerId=inv_operatingsystem.ComputerId)\r\nLEFT JOIN Clients ON (Computers.ClientId=Clients.ClientId)\r\nLEFT JOIN Locations ON (Computers.LocationId=Locations.LocationID)\r\nLEFT JOIN Software ON (Software.ComputerId = Computers.ComputerId)\r\n WHERE \r\n((Software.Name LIKE '%Mcafee%'))\r\n",
  2698. "refId": "A",
  2699. "resultFormat": "time_series",
  2700. "select": [
  2701. [
  2702. {
  2703. "params": [
  2704. "value"
  2705. ],
  2706. "type": "field"
  2707. },
  2708. {
  2709. "params": [],
  2710. "type": "mean"
  2711. }
  2712. ]
  2713. ],
  2714. "tags": []
  2715. }
  2716. ],
  2717. "thresholds": "0,1",
  2718. "title": "McAfee",
  2719. "type": "singlestat",
  2720. "valueFontSize": "100%",
  2721. "valueMaps": [
  2722. {
  2723. "op": "=",
  2724. "text": "N/A",
  2725. "value": "null"
  2726. }
  2727. ],
  2728. "valueName": "avg"
  2729. },
  2730. {
  2731. "cacheTimeout": null,
  2732. "colorBackground": true,
  2733. "colorValue": false,
  2734. "colors": [
  2735. "#508642",
  2736. "#508642",
  2737. "#890f02"
  2738. ],
  2739. "datasource": "Automate",
  2740. "format": "none",
  2741. "gauge": {
  2742. "maxValue": 100,
  2743. "minValue": 0,
  2744. "show": false,
  2745. "thresholdLabels": false,
  2746. "thresholdMarkers": true
  2747. },
  2748. "gridPos": {
  2749. "h": 3,
  2750. "w": 2,
  2751. "x": 2,
  2752. "y": 24
  2753. },
  2754. "id": 37,
  2755. "interval": null,
  2756. "links": [],
  2757. "mappingType": 1,
  2758. "mappingTypes": [
  2759. {
  2760. "name": "value to text",
  2761. "value": 1
  2762. },
  2763. {
  2764. "name": "range to text",
  2765. "value": 2
  2766. }
  2767. ],
  2768. "maxDataPoints": 100,
  2769. "nullPointMode": "connected",
  2770. "nullText": null,
  2771. "postfix": " ",
  2772. "postfixFontSize": "80%",
  2773. "prefix": "",
  2774. "prefixFontSize": "80%",
  2775. "rangeMaps": [
  2776. {
  2777. "from": "null",
  2778. "text": "N/A",
  2779. "to": "null"
  2780. }
  2781. ],
  2782. "sparkline": {
  2783. "fillColor": "rgba(31, 118, 189, 0.18)",
  2784. "full": false,
  2785. "lineColor": "rgb(31, 120, 193)",
  2786. "show": false
  2787. },
  2788. "tableColumn": "count(*)",
  2789. "targets": [
  2790. {
  2791. "alias": "",
  2792. "format": "table",
  2793. "groupBy": [
  2794. {
  2795. "params": [
  2796. "$__interval"
  2797. ],
  2798. "type": "time"
  2799. },
  2800. {
  2801. "params": [
  2802. "null"
  2803. ],
  2804. "type": "fill"
  2805. }
  2806. ],
  2807. "orderByTime": "ASC",
  2808. "policy": "default",
  2809. "rawSql": "SELECT count(*) \r\nFROM `alerts`\r\nWHERE (Alerts.Severity=3 OR Alerts.Severity=2 OR Alerts.Severity=4 OR Alerts.Severity=1)\r\n",
  2810. "refId": "A",
  2811. "resultFormat": "time_series",
  2812. "select": [
  2813. [
  2814. {
  2815. "params": [
  2816. "value"
  2817. ],
  2818. "type": "field"
  2819. },
  2820. {
  2821. "params": [],
  2822. "type": "mean"
  2823. }
  2824. ]
  2825. ],
  2826. "tags": []
  2827. }
  2828. ],
  2829. "thresholds": "0,1",
  2830. "title": "Open Alerts",
  2831. "type": "singlestat",
  2832. "valueFontSize": "100%",
  2833. "valueMaps": [
  2834. {
  2835. "op": "=",
  2836. "text": "N/A",
  2837. "value": "null"
  2838. }
  2839. ],
  2840. "valueName": "avg"
  2841. }
  2842. ],
  2843. "refresh": false,
  2844. "schemaVersion": 16,
  2845. "style": "dark",
  2846. "tags": [],
  2847. "templating": {
  2848. "list": []
  2849. },
  2850. "time": {
  2851. "from": "now-7d",
  2852. "to": "now"
  2853. },
  2854. "timepicker": {
  2855. "hidden": false,
  2856. "refresh_intervals": [
  2857. "30s"
  2858. ],
  2859. "time_options": [
  2860. "5m",
  2861. "15m",
  2862. "1h",
  2863. "6h",
  2864. "12h",
  2865. "24h",
  2866. "2d",
  2867. "7d",
  2868. "30d"
  2869. ]
  2870. },
  2871. "timezone": "browser",
  2872. "title": "FOP_Automate",
  2873. "uid": "5UrMHmzgk",
  2874. "version": 112
  2875. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement