Coverage for tests/routers/template_resp.py: 100%
21 statements
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-25 05:47 +0000
« prev ^ index » next coverage.py v7.9.1, created at 2025-06-25 05:47 +0000
1success = {
2 "uuid": "8bf7e570-67cd-4670-a37c-0999fd07f9bf",
3 "action": "TemplateRouter",
4 "result": {
5 "success": True
6 },
7 "tid": 1,
8 "type": "rpc",
9 "method": "detail"
10}
12fail = {
13 "uuid": "89844ab9-b400-443b-8881-ad1be210f5ed",
14 "action": "TemplateRouter",
15 "result": {
16 "msg": "ObjectNotFoundException",
17 "type": "exception",
18 "success": False
19 },
20 "tid": 1,
21 "type": "rpc",
22 "method": "getDataPointDetails"
23}
25no_points = {
26 "uuid": "40558c6f-2d2d-4f80-9b9e-68215d7ad9a8",
27 "action": "TemplateRouter",
28 "result": {
29 "data": [],
30 "success": True
31 },
32 "tid": 1,
33 "type": "rpc",
34 "method": "getDataPoints"
35}
37list_templates = {
38 "uuid": "48b423d1-377d-489f-8cbf-b8b6008941e0",
39 "action": "TemplateRouter",
40 "result": [
41 {
42 "isOrganizer": True,
43 "qtip": "",
44 "leaf": False,
45 "uid": "/zport/dmd/Devices/Server/TEST",
46 "text": "Linux",
47 "id": ".zport.dmd.Devices.Server.TEST",
48 "iconCls": "",
49 "path": "Devices/Server/TEST",
50 "hidden": False,
51 "children": [
52 {
53 "isOrganizer": False,
54 "qtip": "",
55 "hidden": False,
56 "leaf": True,
57 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/MySQLServer",
58 "text": "MySQLServer (Locally Defined)",
59 "id": "Devices.Server.TEST.rrdTemplates.MySQLServer",
60 "path": "Devices/Server/TEST/rrdTemplates/MySQLServer",
61 "iconCls": "tree-template-icon-component",
62 "children": [],
63 "uuid": None
64 },
65 {
66 "isOrganizer": False,
67 "qtip": "Linux file system monitoring via SSH.",
68 "hidden": False,
69 "leaf": True,
70 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem_NFS_Client",
71 "text": "FileSystem_NFS_Client (Locally Defined)",
72 "id": "Devices.Server.TEST.rrdTemplates.FileSystem_NFS_Client",
73 "path": "Devices/Server/TEST/rrdTemplates/FileSystem_NFS_Client",
74 "iconCls": "tree-template-icon-component",
75 "children": [],
76 "uuid": None
77 },
78 {
79 "isOrganizer": False,
80 "qtip": "Ethernet (and default) network interface monitoring for Linux via SSH.",
81 "hidden": False,
82 "leaf": True,
83 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/ethernetCsmacd",
84 "text": "ethernetCsmacd (Locally Defined)",
85 "id": "Devices.Server.TEST.rrdTemplates.ethernetCsmacd",
86 "path": "Devices/Server/TEST/rrdTemplates/ethernetCsmacd",
87 "iconCls": "tree-template-icon-component",
88 "children": [],
89 "uuid": None
90 },
91 {
92 "isOrganizer": False,
93 "qtip": "Linux hard disk (block device) monitoring via SSH.",
94 "hidden": False,
95 "leaf": True,
96 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/HardDisk",
97 "text": "HardDisk (Locally Defined)",
98 "id": "Devices.Server.TEST.rrdTemplates.HardDisk",
99 "path": "Devices/Server/TEST/rrdTemplates/HardDisk",
100 "iconCls": "tree-template-icon-component",
101 "children": [],
102 "uuid": None
103 },
104 {
105 "isOrganizer": False,
106 "qtip": "Linux LVM logical volume monitoring via SSH.",
107 "hidden": False,
108 "leaf": True,
109 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume",
110 "text": "LogicalVolume (Locally Defined)",
111 "id": "Devices.Server.TEST.rrdTemplates.LogicalVolume",
112 "path": "Devices/Server/TEST/rrdTemplates/LogicalVolume",
113 "iconCls": "tree-template-icon-component",
114 "children": [],
115 "uuid": None
116 },
117 {
118 "isOrganizer": False,
119 "qtip": "Linux LVM volume group monitoring via SSH.",
120 "hidden": False,
121 "leaf": True,
122 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/VolumeGroup",
123 "text": "VolumeGroup (Locally Defined)",
124 "id": "Devices.Server.TEST.rrdTemplates.VolumeGroup",
125 "path": "Devices/Server/TEST/rrdTemplates/VolumeGroup",
126 "iconCls": "tree-template-icon-component",
127 "children": [],
128 "uuid": None
129 },
130 {
131 "isOrganizer": False,
132 "qtip": "Linux process monitoring via SSH.",
133 "hidden": False,
134 "leaf": True,
135 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/OSProcess",
136 "text": "OSProcess (Locally Defined)",
137 "id": "Devices.Server.TEST.rrdTemplates.OSProcess",
138 "path": "Devices/Server/TEST/rrdTemplates/OSProcess",
139 "iconCls": "tree-template-icon-component",
140 "children": [],
141 "uuid": None
142 },
143 {
144 "isOrganizer": False,
145 "qtip": "",
146 "hidden": False,
147 "leaf": True,
148 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/MegaRaid",
149 "text": "MegaRaid (Locally Defined)",
150 "id": "Devices.Server.TEST.rrdTemplates.MegaRaid",
151 "path": "Devices/Server/TEST/rrdTemplates/MegaRaid",
152 "iconCls": "tree-node-no-icon",
153 "children": [],
154 "uuid": None
155 },
156 {
157 "isOrganizer": False,
158 "qtip": "Linux file system monitoring via SSH.",
159 "hidden": False,
160 "leaf": True,
161 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem",
162 "text": "FileSystem (Locally Defined)",
163 "id": "Devices.Server.TEST.rrdTemplates.FileSystem",
164 "path": "Devices/Server/TEST/rrdTemplates/FileSystem",
165 "iconCls": "tree-template-icon-component",
166 "children": [],
167 "uuid": None
168 },
169 {
170 "isOrganizer": False,
171 "qtip": "Linux device monitoring via SSH.",
172 "hidden": False,
173 "leaf": True,
174 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/Device",
175 "text": "Device (Locally Defined)",
176 "id": "Devices.Server.TEST.rrdTemplates.Device",
177 "path": "Devices/Server/TEST/rrdTemplates/Device",
178 "iconCls": "tree-template-icon-bound",
179 "children": [],
180 "uuid": None
181 },
182 {
183 "isOrganizer": False,
184 "qtip": "Linux LVM physical volume monitoring via SSH.",
185 "hidden": False,
186 "leaf": True,
187 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/PhysicalVolume",
188 "text": "PhysicalVolume (Locally Defined)",
189 "id": "Devices.Server.TEST.rrdTemplates.PhysicalVolume",
190 "path": "Devices/Server/TEST/rrdTemplates/PhysicalVolume",
191 "iconCls": "tree-template-icon-component",
192 "children": [],
193 "uuid": None
194 },
195 {
196 "isOrganizer": False,
197 "qtip": "Linux LVM snapshot volume monitoring via SSH.",
198 "hidden": False,
199 "leaf": True,
200 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/SnapshotVolume",
201 "text": "SnapshotVolume (Locally Defined)",
202 "id": "Devices.Server.TEST.rrdTemplates.SnapshotVolume",
203 "path": "Devices/Server/TEST/rrdTemplates/SnapshotVolume",
204 "iconCls": "tree-template-icon-component",
205 "children": [],
206 "uuid": None
207 }
208 ],
209 "uuid": "c4d25bd5-7034-4286-bc4b-d6ad0ac501fb"
210 }
211 ],
212 "tid": 1,
213 "type": "rpc",
214 "method": "getDeviceClassTemplates"
215}
217list_templates_match = [('Devices/Server/TEST/rrdTemplates/MySQLServer', ''),
218 ('Devices/Server/TEST/rrdTemplates/FileSystem_NFS_Client',
219 'Linux file system monitoring via SSH.'),
220 ('Devices/Server/TEST/rrdTemplates/ethernetCsmacd',
221 'Ethernet (and default) network interface monitoring for Linux via SSH.'),
222 ('Devices/Server/TEST/rrdTemplates/HardDisk',
223 'Linux hard disk (block device) monitoring via SSH.'),
224 ('Devices/Server/TEST/rrdTemplates/LogicalVolume',
225 'Linux LVM logical volume monitoring via SSH.'),
226 ('Devices/Server/TEST/rrdTemplates/VolumeGroup',
227 'Linux LVM volume group monitoring via SSH.'),
228 ('Devices/Server/TEST/rrdTemplates/OSProcess',
229 'Linux process monitoring via SSH.'),
230 ('Devices/Server/TEST/rrdTemplates/MegaRaid', ''),
231 ('Devices/Server/TEST/rrdTemplates/FileSystem',
232 'Linux file system monitoring via SSH.'),
233 ('Devices/Server/TEST/rrdTemplates/Device',
234 'Linux device monitoring via SSH.'),
235 ('Devices/Server/TEST/rrdTemplates/PhysicalVolume',
236 'Linux LVM physical volume monitoring via SSH.'),
237 ('Devices/Server/TEST/rrdTemplates/SnapshotVolume',
238 'Linux LVM snapshot volume monitoring via SSH.')]
240templates = {
241 'MySQLServer': {
242 "uuid": "6bae4016-f8ab-4559-a7c2-111cce1e274c",
243 "action": "TemplateRouter",
244 "result": {
245 "data": {
246 "qtip": "",
247 "definition": "/Devices/Server/TEST",
248 "hidden": False,
249 "leaf": True,
250 "description": "",
251 "name": "MySQLServer",
252 "text": "/Server/TEST",
253 "id": "MySQLServer..Server.TEST",
254 "meta_type": "RRDTemplate",
255 "targetPythonClass": "ZenPacks.zenoss.MySqlMonitor.MySQLServer",
256 "inspector_type": "RRDTemplate",
257 "iconCls": "tree-template-icon-component",
258 "children": [],
259 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/MySQLServer"
260 },
261 "success": True,
262 "form": {
263 "items": [
264 {
265 "items": [],
266 "xtype": "fieldset"
267 }
268 ]
269 }
270 },
271 "tid": 1,
272 "type": "rpc",
273 "method": "getInfo"
274 },
275 'FileSystem_NFS_Client': {
276 "uuid": "96919d08-b3d0-4797-81b1-b28e3a435c1b",
277 "action": "TemplateRouter",
278 "result": {
279 "data": {
280 "qtip": "Linux file system monitoring via SSH.",
281 "definition": "/Devices/Server/TEST",
282 "hidden": False,
283 "leaf": True,
284 "description": "Linux file system monitoring via SSH.",
285 "name": "FileSystem_NFS_Client",
286 "text": "/Server/TEST",
287 "id": "FileSystem_NFS_Client..Server.TEST",
288 "meta_type": "RRDTemplate",
289 "targetPythonClass": "Products.ZenModel.FileSystem",
290 "inspector_type": "RRDTemplate",
291 "iconCls": "tree-template-icon-component",
292 "children": [],
293 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem_NFS_Client"
294 },
295 "success": True,
296 "form": {
297 "items": [
298 {
299 "items": [],
300 "xtype": "fieldset"
301 }
302 ]
303 }
304 },
305 "tid": 1,
306 "type": "rpc",
307 "method": "getInfo"
308 },
309 'ethernetCsmacd': {
310 "uuid": "d0017709-10dd-4225-9450-56e300f7d806",
311 "action": "TemplateRouter",
312 "result": {
313 "data": {
314 "qtip": "Ethernet (and default) network interface monitoring for Linux via SSH.",
315 "definition": "/Devices/Server/TEST",
316 "hidden": False,
317 "leaf": True,
318 "description": "Ethernet (and default) network interface monitoring for Linux via SSH.",
319 "name": "ethernetCsmacd",
320 "text": "/Server/TEST",
321 "id": "ethernetCsmacd..Server.TEST",
322 "meta_type": "RRDTemplate",
323 "targetPythonClass": "Products.ZenModel.IpInterface",
324 "inspector_type": "RRDTemplate",
325 "iconCls": "tree-template-icon-component",
326 "children": [],
327 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/ethernetCsmacd"
328 },
329 "success": True,
330 "form": {
331 "items": [
332 {
333 "items": [],
334 "xtype": "fieldset"
335 }
336 ]
337 }
338 },
339 "tid": 1,
340 "type": "rpc",
341 "method": "getInfo"
342 },
343 'HardDisk': {
344 "uuid": "c2f74c42-7d4b-49f7-9ee7-c02b845b3923",
345 "action": "TemplateRouter",
346 "result": {
347 "data": {
348 "qtip": "Linux hard disk (block device) monitoring via SSH.",
349 "definition": "/Devices/Server/TEST",
350 "hidden": False,
351 "leaf": True,
352 "description": "Linux hard disk (block device) monitoring via SSH.",
353 "name": "HardDisk",
354 "text": "/Server/TEST",
355 "id": "HardDisk..Server.TEST",
356 "meta_type": "RRDTemplate",
357 "targetPythonClass": "ZenPacks.zenoss.LinuxMonitor.HardDisk",
358 "inspector_type": "RRDTemplate",
359 "iconCls": "tree-template-icon-component",
360 "children": [],
361 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/HardDisk"
362 },
363 "success": True,
364 "form": {
365 "items": [
366 {
367 "items": [],
368 "xtype": "fieldset"
369 }
370 ]
371 }
372 },
373 "tid": 1,
374 "type": "rpc",
375 "method": "getInfo"
376 },
377 'LogicalVolume': {
378 "uuid": "6a263783-75a7-42d5-b0ab-46ecf96f6b75",
379 "action": "TemplateRouter",
380 "result": {
381 "data": {
382 "qtip": "Linux LVM logical volume monitoring via SSH.",
383 "definition": "/Devices/Server/TEST",
384 "hidden": False,
385 "leaf": True,
386 "description": "Linux LVM logical volume monitoring via SSH.",
387 "name": "LogicalVolume",
388 "text": "/Server/TEST",
389 "id": "LogicalVolume..Server.TEST",
390 "meta_type": "RRDTemplate",
391 "targetPythonClass": "ZenPacks.zenoss.LinuxMonitor.LogicalVolume",
392 "inspector_type": "RRDTemplate",
393 "iconCls": "tree-template-icon-component",
394 "children": [],
395 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume"
396 },
397 "success": True,
398 "form": {
399 "items": [
400 {
401 "items": [],
402 "xtype": "fieldset"
403 }
404 ]
405 }
406 },
407 "tid": 1,
408 "type": "rpc",
409 "method": "getInfo"
410 },
411 'VolumeGroup': {
412 "uuid": "098c4d3f-b574-40bc-85a2-a876e4747ea3",
413 "action": "TemplateRouter",
414 "result": {
415 "data": {
416 "qtip": "Linux LVM volume group monitoring via SSH.",
417 "definition": "/Devices/Server/TEST",
418 "hidden": False,
419 "leaf": True,
420 "description": "Linux LVM volume group monitoring via SSH.",
421 "name": "VolumeGroup",
422 "text": "/Server/TEST",
423 "id": "VolumeGroup..Server.TEST",
424 "meta_type": "RRDTemplate",
425 "targetPythonClass": "ZenPacks.zenoss.LinuxMonitor.VolumeGroup",
426 "inspector_type": "RRDTemplate",
427 "iconCls": "tree-template-icon-component",
428 "children": [],
429 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/VolumeGroup"
430 },
431 "success": True,
432 "form": {
433 "items": [
434 {
435 "items": [],
436 "xtype": "fieldset"
437 }
438 ]
439 }
440 },
441 "tid": 1,
442 "type": "rpc",
443 "method": "getInfo"
444 },
445 'OSProcess': {
446 "uuid": "1fdd2401-b700-4fd1-a957-933631a1d1a2",
447 "action": "TemplateRouter",
448 "result": {
449 "data": {
450 "qtip": "Linux process monitoring via SSH.",
451 "definition": "/Devices/Server/TEST",
452 "hidden": False,
453 "leaf": True,
454 "description": "Linux process monitoring via SSH.",
455 "name": "OSProcess",
456 "text": "/Server/TEST",
457 "id": "OSProcess..Server.TEST",
458 "meta_type": "RRDTemplate",
459 "targetPythonClass": "Products.ZenModel.OSProcess",
460 "inspector_type": "RRDTemplate",
461 "iconCls": "tree-template-icon-component",
462 "children": [],
463 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/OSProcess"
464 },
465 "success": True,
466 "form": {
467 "items": [
468 {
469 "items": [],
470 "xtype": "fieldset"
471 }
472 ]
473 }
474 },
475 "tid": 1,
476 "type": "rpc",
477 "method": "getInfo"
478 },
479 'MegaRaid': {
480 "uuid": "58d74f54-c760-4e60-8ca6-983195cdd58b",
481 "action": "TemplateRouter",
482 "result": {
483 "data": {
484 "qtip": "",
485 "definition": "/Devices/Server/TEST",
486 "hidden": False,
487 "leaf": True,
488 "description": "",
489 "name": "MegaRaid",
490 "text": "/Server/TEST",
491 "id": "MegaRaid..Server.TEST",
492 "meta_type": "RRDTemplate",
493 "targetPythonClass": "Products.ZenModel.Device",
494 "inspector_type": "RRDTemplate",
495 "iconCls": "tree-node-no-icon",
496 "children": [],
497 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/MegaRaid"
498 },
499 "success": True,
500 "form": {
501 "items": [
502 {
503 "items": [],
504 "xtype": "fieldset"
505 }
506 ]
507 }
508 },
509 "tid": 1,
510 "type": "rpc",
511 "method": "getInfo"
512 },
513 'FileSystem': {
514 "uuid": "09e5528b-3487-4e43-bb8e-951a196aa177",
515 "action": "TemplateRouter",
516 "result": {
517 "data": {
518 "qtip": "Linux file system monitoring via SSH.",
519 "definition": "/Devices/Server/TEST",
520 "hidden": False,
521 "leaf": True,
522 "description": "Linux file system monitoring via SSH.",
523 "name": "FileSystem",
524 "text": "/Server/TEST",
525 "id": "FileSystem..Server.TEST",
526 "meta_type": "RRDTemplate",
527 "targetPythonClass": "Products.ZenModel.FileSystem",
528 "inspector_type": "RRDTemplate",
529 "iconCls": "tree-template-icon-component",
530 "children": [],
531 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem"
532 },
533 "success": True,
534 "form": {
535 "items": [
536 {
537 "items": [],
538 "xtype": "fieldset"
539 }
540 ]
541 }
542 },
543 "tid": 1,
544 "type": "rpc",
545 "method": "getInfo"
546 },
547 'Device': {
548 "uuid": "5f526dbf-8d82-488e-a604-bf0f09a6ea21",
549 "action": "TemplateRouter",
550 "result": {
551 "data": {
552 "qtip": "Linux device monitoring via SSH.",
553 "definition": "/Devices/Server/TEST",
554 "hidden": False,
555 "leaf": True,
556 "description": "Linux device monitoring via SSH.",
557 "name": "Device",
558 "text": "/Server/TEST",
559 "id": "Device..Server.TEST",
560 "meta_type": "RRDTemplate",
561 "targetPythonClass": "Products.ZenModel.Device",
562 "inspector_type": "RRDTemplate",
563 "iconCls": "tree-template-icon-bound",
564 "children": [],
565 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/Device"
566 },
567 "success": True,
568 "form": {
569 "items": [
570 {
571 "items": [],
572 "xtype": "fieldset"
573 }
574 ]
575 }
576 },
577 "tid": 1,
578 "type": "rpc",
579 "method": "getInfo"
580 },
581 'PhysicalVolume': {
582 "uuid": "afbe7c73-9919-49dc-b5f0-5f73bda9a622",
583 "action": "TemplateRouter",
584 "result": {
585 "data": {
586 "qtip": "Linux LVM physical volume monitoring via SSH.",
587 "definition": "/Devices/Server/TEST",
588 "hidden": False,
589 "leaf": True,
590 "description": "Linux LVM physical volume monitoring via SSH.",
591 "name": "PhysicalVolume",
592 "text": "/Server/TEST",
593 "id": "PhysicalVolume..Server.TEST",
594 "meta_type": "RRDTemplate",
595 "targetPythonClass": "ZenPacks.zenoss.LinuxMonitor.PhysicalVolume",
596 "inspector_type": "RRDTemplate",
597 "iconCls": "tree-template-icon-component",
598 "children": [],
599 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/PhysicalVolume"
600 },
601 "success": True,
602 "form": {
603 "items": [
604 {
605 "items": [],
606 "xtype": "fieldset"
607 }
608 ]
609 }
610 },
611 "tid": 1,
612 "type": "rpc",
613 "method": "getInfo"
614 },
615 'SnapshotVolume': {
616 "uuid": "a08e9298-9635-4fbf-9897-60eb482e99a2",
617 "action": "TemplateRouter",
618 "result": {
619 "data": {
620 "qtip": "Linux LVM snapshot volume monitoring via SSH.",
621 "definition": "/Devices/Server/TEST",
622 "hidden": False,
623 "leaf": True,
624 "description": "Linux LVM snapshot volume monitoring via SSH.",
625 "name": "SnapshotVolume",
626 "text": "/Server/TEST",
627 "id": "SnapshotVolume..Server.TEST",
628 "meta_type": "RRDTemplate",
629 "targetPythonClass": "ZenPacks.zenoss.LinuxMonitor.SnapshotVolume",
630 "inspector_type": "RRDTemplate",
631 "iconCls": "tree-template-icon-component",
632 "children": [],
633 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/SnapshotVolume"
634 },
635 "success": True,
636 "form": {
637 "items": [
638 {
639 "items": [],
640 "xtype": "fieldset"
641 }
642 ]
643 }
644 },
645 "tid": 1,
646 "type": "rpc",
647 "method": "getInfo"
648 },
649 'DnsMonitor': {
650 "uuid": "0578b1b5-d628-4ded-b9ab-6e3ed6c1a06d",
651 "action": "TemplateRouter",
652 "result": {
653 "data": {
654 "qtip": "Perform a DNS forward lookup of the device name and check to see that it resolves to the device's manageIp",
655 "definition": "/Devices/Server/TEST/devices/test.example.com",
656 "hidden": False,
657 "leaf": True,
658 "description": "Perform a DNS forward lookup of the device name and check to see that it resolves to the device's manageIp",
659 "name": "DnsMonitor",
660 "text": "/Server/TEST/test.example.com",
661 "id": "DnsMonitor..Server.TEST.test.example.com",
662 "meta_type": "RRDTemplate",
663 "targetPythonClass": "Products.ZenModel.Device",
664 "inspector_type": "RRDTemplate",
665 "iconCls": "tree-template-icon-bound",
666 "children": [],
667 "uid": "/zport/dmd/Devices/Server/TEST/devices/test.example.com/DnsMonitor"
668 },
669 "success": True,
670 "form": {
671 "items": [
672 {
673 "items": [],
674 "xtype": "fieldset"
675 }
676 ]
677 }
678 },
679 "tid": 1,
680 "type": "rpc",
681 "method": "getInfo"
682 },
683 'TestAdd': {
684 "uuid": "0578b1b5-d628-4ded-b9ab-6e3ed6c1a06d",
685 "action": "TemplateRouter",
686 "result": {
687 "data": {
688 "qtip": "",
689 "definition": "/Devices/Server/TEST",
690 "hidden": False,
691 "leaf": True,
692 "description": "",
693 "name": "TestAdd",
694 "text": "/Server/TEST",
695 "id": "TestAdd..Server.TEST",
696 "meta_type": "RRDTemplate",
697 "targetPythonClass": "Products.ZenModel.Device",
698 "inspector_type": "RRDTemplate",
699 "iconCls": "tree-template-icon-bound",
700 "children": [],
701 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/TestAdd"
702 },
703 "success": True,
704 "form": {
705 "items": [
706 {
707 "items": [],
708 "xtype": "fieldset"
709 }
710 ]
711 }
712 },
713 "tid": 1,
714 "type": "rpc",
715 "method": "getInfo"
716 }
717}
719obj_templates = {
720 "uuid": "39dfd607-b865-452c-8374-8f62b7ab18be",
721 "action": "TemplateRouter",
722 "result": {
723 "data": [
724 {
725 "qtip": "Linux device monitoring via SSH.",
726 "definition": "/Devices/Server/TEST",
727 "hidden": False,
728 "leaf": True,
729 "description": "Linux device monitoring via SSH.",
730 "name": "Device",
731 "text": "/Server/TEST",
732 "id": "Device..Server.TEST",
733 "meta_type": "RRDTemplate",
734 "targetPythonClass": "Products.ZenModel.Device",
735 "inspector_type": "RRDTemplate",
736 "iconCls": "tree-template-icon-bound",
737 "children": [],
738 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/Device"
739 },
740 {
741 "qtip": "Perform a DNS forward lookup of the device name and check to see that it resolves to the device's manageIp",
742 "definition": "/Devices/Server/TEST/devices/test.example.com",
743 "hidden": False,
744 "leaf": True,
745 "description": "Perform a DNS forward lookup of the device name and check to see that it resolves to the device's manageIp",
746 "name": "DnsMonitor",
747 "text": "/Server/TEST/test.example.com",
748 "id": "DnsMonitor..Server.TEST.test.example.com",
749 "meta_type": "RRDTemplate",
750 "targetPythonClass": "Products.ZenModel.Device",
751 "inspector_type": "RRDTemplate",
752 "iconCls": "tree-template-icon-bound",
753 "children": [],
754 "uid": "/zport/dmd/Devices/Server/TEST/devices/test.example.com/DnsMonitor"
755 }
756 ],
757 "success": True
758 },
759 "tid": 1,
760 "type": "rpc",
761 "method": "getObjTemplates"
762}
764ds_types = {
765 "uuid": "24e9b489-738c-4f76-8888-708b8837ff6f",
766 "action": "TemplateRouter",
767 "result": {
768 "data": [
769 {
770 "type": "ApacheMonitor"
771 },
772 {
773 "type": "Built-In"
774 },
775 {
776 "type": "COMMAND"
777 },
778 {
779 "type": "DigMonitor"
780 },
781 {
782 "type": "DnsMonitor"
783 },
784 {
785 "type": "FtpMonitor"
786 },
787 {
788 "type": "HttpMonitor"
789 },
790 {
791 "type": "JMX"
792 },
793 {
794 "type": "LDAPMonitor"
795 },
796 {
797 "type": "MySqlMonitor"
798 },
799 {
800 "type": "Oracle"
801 },
802 {
803 "type": "PING"
804 },
805 {
806 "type": "Python"
807 },
808 {
809 "type": "SNMP"
810 },
811 {
812 "type": "SQL"
813 },
814 {
815 "type": "vCloudStatus"
816 },
817 {
818 "type": "VMware vSphere"
819 },
820 {
821 "type": "WebTx"
822 }
823 ],
824 "success": True
825 },
826 "tid": 1,
827 "type": "rpc",
828 "method": "getDataSourceTypes"
829}
831threshold_types = {
832 "uuid": "41877b7a-69ee-42f6-8517-293ba39ea6ea",
833 "action": "TemplateRouter",
834 "result": {
835 "data": [
836 {
837 "type": "MinMaxThreshold"
838 },
839 {
840 "type": "ValueChangeThreshold"
841 },
842 {
843 "type": "CiscoStatus"
844 },
845 {
846 "type": "PredictiveThreshold"
847 }
848 ],
849 "success": True
850 },
851 "tid": 1,
852 "type": "rpc",
853 "method": "getThresholdTypes"
854}
856lv_data_sources = {
857 "uuid": "0a426b20-d355-4839-b958-64ba0691145f",
858 "action": "TemplateRouter",
859 "result": {
860 "data": [
861 {
862 "description": "Linux LVM logical volume monitoring via SSH.",
863 "component": "${here/id}",
864 "enabled": True,
865 "inspector_type": "RRDDataSource",
866 "name": "status",
867 "source": "/usr/bin/env sudo lvs --noheadings -o vg_name,lv_name,lv_attr over SSH",
868 "meta_type": "RRDDataSource",
869 "newId": "status",
870 "eventKey": "",
871 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status",
872 "eventClass": "/Ignore",
873 "type": "COMMAND",
874 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status",
875 "severity": 0
876 }
877 ],
878 "success": True
879 },
880 "tid": 1,
881 "type": "rpc",
882 "method": "getDataSources"
883}
885lv_ds_details = {
886 "uuid": "5c8e37c4-92de-49ea-976d-1c6081384925",
887 "action": "TemplateRouter",
888 "result": {
889 "record": {
890 "parser": "ZenPacks.zenoss.LinuxMonitor.parsers.linux.lvsstatus",
891 "cycletime": 300,
892 "description": "Linux LVM logical volume monitoring via SSH.",
893 "availableParsers": [
894 "Auto",
895 "Cacti",
896 "JSON",
897 "Nagios",
898 "ZenPacks.zenoss.LinuxMonitor.parsers.Standard",
899 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.cpu",
900 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.df",
901 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.dfi",
902 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.diskstats",
903 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.ifconfig",
904 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.lvsstatus",
905 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.mem",
906 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.ps",
907 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.pvsstatus",
908 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.pvvgstats",
909 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.vgsstatus",
910 "ps",
911 "uptime"
912 ],
913 "component": "${here/id}",
914 "commandTemplate": "/usr/bin/env sudo lvs --noheadings -o vg_name,lv_name,lv_attr",
915 "usessh": "True",
916 "enabled": True,
917 "name": "status",
918 "source": "/usr/bin/env sudo lvs --noheadings -o vg_name,lv_name,lv_attr over SSH",
919 "meta_type": "RRDDataSource",
920 "newId": "status",
921 "eventKey": "",
922 "testable": True,
923 "inspector_type": "RRDDataSource",
924 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status",
925 "eventClass": "/Ignore",
926 "type": "COMMAND",
927 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status",
928 "severity": 0
929 },
930 "form": {
931 "items": [
932 {
933 "items": [
934 {
935 "vtype": None,
936 "fieldLabel": "Name",
937 "xtype": "idfield",
938 "labelStyle": None,
939 "value": "status",
940 "name": "newId",
941 "disabled": False,
942 "inputAttrTpl": " data-qtip='The name of this datasource' ",
943 "anchor": "85%",
944 "allowBlank": True
945 },
946 {
947 "vtype": None,
948 "fieldLabel": "Type",
949 "xtype": "displayfield",
950 "labelStyle": None,
951 "value": "COMMAND",
952 "name": "type",
953 "disabled": False,
954 "inputAttrTpl": " data-qtip='' ",
955 "anchor": "85%",
956 "allowBlank": True
957 },
958 {
959 "vtype": None,
960 "checked": True,
961 "xtype": "checkbox",
962 "labelStyle": "display:none",
963 "value": True,
964 "disabled": False,
965 "boxLabel": "Enabled",
966 "allowBlank": True,
967 "inputAttrTpl": " data-qtip='' ",
968 "anchor": "85%",
969 "name": "enabled"
970 },
971 {
972 "vtype": None,
973 "fieldLabel": "Severity",
974 "xtype": "severity",
975 "labelStyle": None,
976 "value": 0,
977 "name": "severity",
978 "disabled": False,
979 "inputAttrTpl": " data-qtip='' ",
980 "anchor": "85%",
981 "allowBlank": True
982 },
983 {
984 "vtype": None,
985 "fieldLabel": "Event Class",
986 "xtype": "eventclass",
987 "labelStyle": None,
988 "value": "/Ignore",
989 "name": "eventClass",
990 "disabled": False,
991 "inputAttrTpl": " data-qtip='' ",
992 "anchor": "85%",
993 "allowBlank": True
994 },
995 {
996 "vtype": None,
997 "fieldLabel": "Cycle Time (seconds)",
998 "xtype": "numberfield",
999 "labelStyle": None,
1000 "value": 300,
1001 "disabled": False,
1002 "decimalPrecision": 2,
1003 "allowBlank": True,
1004 "inputAttrTpl": " data-qtip='' ",
1005 "anchor": "85%",
1006 "name": "cycletime"
1007 },
1008 {
1009 "vtype": None,
1010 "fieldLabel": "Parser",
1011 "xtype": "parser",
1012 "labelStyle": None,
1013 "value": "ZenPacks.zenoss.LinuxMonitor.parsers.linux.lvsstatus",
1014 "name": "parser",
1015 "disabled": False,
1016 "inputAttrTpl": " data-qtip='' ",
1017 "anchor": "85%",
1018 "allowBlank": True
1019 },
1020 {
1021 "vtype": None,
1022 "checked": "True",
1023 "xtype": "checkbox",
1024 "labelStyle": "display:none",
1025 "value": "True",
1026 "disabled": False,
1027 "boxLabel": "Use SSH",
1028 "allowBlank": True,
1029 "inputAttrTpl": " data-qtip='' ",
1030 "anchor": "85%",
1031 "name": "usessh"
1032 },
1033 {
1034 "vtype": None,
1035 "fieldLabel": "Component",
1036 "xtype": "textfield",
1037 "labelStyle": None,
1038 "value": "${here/id}",
1039 "name": "component",
1040 "disabled": False,
1041 "inputAttrTpl": " data-qtip='' ",
1042 "anchor": "85%",
1043 "allowBlank": True
1044 },
1045 {
1046 "vtype": None,
1047 "fieldLabel": "Event Key",
1048 "xtype": "textfield",
1049 "labelStyle": None,
1050 "value": "",
1051 "name": "eventKey",
1052 "disabled": False,
1053 "inputAttrTpl": " data-qtip='' ",
1054 "anchor": "85%",
1055 "allowBlank": True
1056 },
1057 {
1058 "vtype": None,
1059 "fieldLabel": "Command Template",
1060 "xtype": "twocolumntextarea",
1061 "labelStyle": None,
1062 "value": "/usr/bin/env sudo lvs --noheadings -o vg_name,lv_name,lv_attr",
1063 "name": "commandTemplate",
1064 "disabled": False,
1065 "inputAttrTpl": " data-qtip='' ",
1066 "anchor": "85%",
1067 "allowBlank": True
1068 }
1069 ],
1070 "xtype": "fieldset",
1071 "title": None
1072 }
1073 ]
1074 }
1075 },
1076 "tid": 1,
1077 "type": "rpc",
1078 "method": "getDataSourceDetails"
1079}
1081fs_ds_details = {
1082 "uuid": "d3a91541-bd02-4871-a6d8-8cfc50ce0271",
1083 "action": "TemplateRouter",
1084 "result": {
1085 "record": {
1086 "parser": "ZenPacks.zenoss.LinuxMonitor.parsers.linux.df",
1087 "cycletime": 300,
1088 "description": "Linux file system monitoring via SSH.",
1089 "availableParsers": [
1090 "Auto",
1091 "Cacti",
1092 "JSON",
1093 "Nagios",
1094 "ZenPacks.zenoss.LinuxMonitor.parsers.Standard",
1095 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.cpu",
1096 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.df",
1097 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.dfi",
1098 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.diskstats",
1099 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.ifconfig",
1100 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.lvsstatus",
1101 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.mem",
1102 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.ps",
1103 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.pvsstatus",
1104 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.pvvgstats",
1105 "ZenPacks.zenoss.LinuxMonitor.parsers.linux.vgsstatus",
1106 "ps",
1107 "uptime"
1108 ],
1109 "component": "${here/id}",
1110 "commandTemplate": "/bin/sh -c 'export PATH=$$PATH:/bin:/sbin:/usr/bin:/usr/sbin; if command -v timeout > /dev/None 2>&1; then timeout 30 /usr/bin/env df -kP; else /usr/bin/env df -kP; fi'",
1111 "usessh": "True",
1112 "enabled": True,
1113 "name": "disk",
1114 "source": "/bin/sh -c 'export PATH=$$PATH:/bin:/sbin:/usr/bin:/usr/sbin; if command -v timeout > /dev/None 2>&1; then timeout 30 /usr/bin/env df -kP; else /usr/bin/env df -kP; fi' over SSH",
1115 "meta_type": "RRDDataSource",
1116 "newId": "disk",
1117 "eventKey": "",
1118 "testable": True,
1119 "inspector_type": "RRDDataSource",
1120 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk",
1121 "eventClass": "/Ignore",
1122 "type": "COMMAND",
1123 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk",
1124 "severity": 0
1125 },
1126 "form": {
1127 "items": [
1128 {
1129 "items": [
1130 {
1131 "vtype": None,
1132 "fieldLabel": "Name",
1133 "xtype": "idfield",
1134 "labelStyle": None,
1135 "value": "disk",
1136 "name": "newId",
1137 "disabled": False,
1138 "inputAttrTpl": " data-qtip='The name of this datasource' ",
1139 "anchor": "85%",
1140 "allowBlank": True
1141 },
1142 {
1143 "vtype": None,
1144 "fieldLabel": "Type",
1145 "xtype": "displayfield",
1146 "labelStyle": None,
1147 "value": "COMMAND",
1148 "name": "type",
1149 "disabled": False,
1150 "inputAttrTpl": " data-qtip='' ",
1151 "anchor": "85%",
1152 "allowBlank": True
1153 },
1154 {
1155 "vtype": None,
1156 "checked": True,
1157 "xtype": "checkbox",
1158 "labelStyle": "display:none",
1159 "value": True,
1160 "disabled": False,
1161 "boxLabel": "Enabled",
1162 "allowBlank": True,
1163 "inputAttrTpl": " data-qtip='' ",
1164 "anchor": "85%",
1165 "name": "enabled"
1166 },
1167 {
1168 "vtype": None,
1169 "fieldLabel": "Severity",
1170 "xtype": "severity",
1171 "labelStyle": None,
1172 "value": 0,
1173 "name": "severity",
1174 "disabled": False,
1175 "inputAttrTpl": " data-qtip='' ",
1176 "anchor": "85%",
1177 "allowBlank": True
1178 },
1179 {
1180 "vtype": None,
1181 "fieldLabel": "Event Class",
1182 "xtype": "eventclass",
1183 "labelStyle": None,
1184 "value": "/Ignore",
1185 "name": "eventClass",
1186 "disabled": False,
1187 "inputAttrTpl": " data-qtip='' ",
1188 "anchor": "85%",
1189 "allowBlank": True
1190 },
1191 {
1192 "vtype": None,
1193 "fieldLabel": "Cycle Time (seconds)",
1194 "xtype": "numberfield",
1195 "labelStyle": None,
1196 "value": 300,
1197 "disabled": False,
1198 "decimalPrecision": 2,
1199 "allowBlank": True,
1200 "inputAttrTpl": " data-qtip='' ",
1201 "anchor": "85%",
1202 "name": "cycletime"
1203 },
1204 {
1205 "vtype": None,
1206 "fieldLabel": "Parser",
1207 "xtype": "parser",
1208 "labelStyle": None,
1209 "value": "ZenPacks.zenoss.LinuxMonitor.parsers.linux.df",
1210 "name": "parser",
1211 "disabled": False,
1212 "inputAttrTpl": " data-qtip='' ",
1213 "anchor": "85%",
1214 "allowBlank": True
1215 },
1216 {
1217 "vtype": None,
1218 "checked": "True",
1219 "xtype": "checkbox",
1220 "labelStyle": "display:none",
1221 "value": "True",
1222 "disabled": False,
1223 "boxLabel": "Use SSH",
1224 "allowBlank": True,
1225 "inputAttrTpl": " data-qtip='' ",
1226 "anchor": "85%",
1227 "name": "usessh"
1228 },
1229 {
1230 "vtype": None,
1231 "fieldLabel": "Component",
1232 "xtype": "textfield",
1233 "labelStyle": None,
1234 "value": "${here/id}",
1235 "name": "component",
1236 "disabled": False,
1237 "inputAttrTpl": " data-qtip='' ",
1238 "anchor": "85%",
1239 "allowBlank": True
1240 },
1241 {
1242 "vtype": None,
1243 "fieldLabel": "Event Key",
1244 "xtype": "textfield",
1245 "labelStyle": None,
1246 "value": "",
1247 "name": "eventKey",
1248 "disabled": False,
1249 "inputAttrTpl": " data-qtip='' ",
1250 "anchor": "85%",
1251 "allowBlank": True
1252 },
1253 {
1254 "vtype": None,
1255 "fieldLabel": "Command Template",
1256 "xtype": "twocolumntextarea",
1257 "labelStyle": None,
1258 "value": "/bin/sh -c 'export PATH=$$PATH:/bin:/sbin:/usr/bin:/usr/sbin; if command -v timeout > /dev/None 2>&1; then timeout 30 /usr/bin/env df -kP; else /usr/bin/env df -kP; fi'",
1259 "name": "commandTemplate",
1260 "disabled": False,
1261 "inputAttrTpl": " data-qtip='' ",
1262 "anchor": "85%",
1263 "allowBlank": True
1264 }
1265 ],
1266 "xtype": "fieldset",
1267 "title": None
1268 }
1269 ]
1270 }
1271 },
1272 "tid": 1,
1273 "type": "rpc",
1274 "method": "getDataSourceDetails"
1275}
1277lv_data_points = {
1278 "uuid": "47b01edd-5278-490b-baec-dbd00102a4ba",
1279 "action": "TemplateRouter",
1280 "result": {
1281 "data": [
1282 {
1283 "isrow": True,
1284 "leaf": True,
1285 "description": "Linux LVM logical volume monitoring via SSH.",
1286 "rrdmin": "0",
1287 "availableRRDTypes": [
1288 "COUNTER",
1289 "GAUGE",
1290 "DERIVE",
1291 "ABSOLUTE"
1292 ],
1293 "name": "status.state",
1294 "rate": False,
1295 "meta_type": "RRDDataPoint",
1296 "newId": "state",
1297 "createCmd": "",
1298 "rrdtype": "GAUGE",
1299 "inspector_type": "RRDDataPoint",
1300 "rrdmax": None,
1301 "aliases": [
1302 {
1303 "description": "Linux LVM logical volume monitoring via SSH.",
1304 "name": "lvm_lv_state__bool",
1305 "meta_type": "RRDDataPointAlias",
1306 "inspector_type": "RRDDataPointAlias",
1307 "formula": "",
1308 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state/aliases/lvm_lv_state__bool",
1309 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state/aliases/lvm_lv_state__bool"
1310 }
1311 ],
1312 "type": "GAUGE",
1313 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state",
1314 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state"
1315 },
1316 {
1317 "isrow": True,
1318 "leaf": True,
1319 "description": "Linux LVM logical volume monitoring via SSH.",
1320 "rrdmin": "0",
1321 "availableRRDTypes": [
1322 "COUNTER",
1323 "GAUGE",
1324 "DERIVE",
1325 "ABSOLUTE"
1326 ],
1327 "name": "status.health",
1328 "rate": False,
1329 "meta_type": "RRDDataPoint",
1330 "newId": "health",
1331 "createCmd": "",
1332 "rrdtype": "GAUGE",
1333 "inspector_type": "RRDDataPoint",
1334 "rrdmax": None,
1335 "aliases": [
1336 {
1337 "description": "Linux LVM logical volume monitoring via SSH.",
1338 "name": "lvm_lv_health__bool",
1339 "meta_type": "RRDDataPointAlias",
1340 "inspector_type": "RRDDataPointAlias",
1341 "formula": "",
1342 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/health/aliases/lvm_lv_health__bool",
1343 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/health/aliases/lvm_lv_health__bool"
1344 }
1345 ],
1346 "type": "GAUGE",
1347 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/health",
1348 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/health"
1349 }
1350 ],
1351 "success": True
1352 },
1353 "tid": 1,
1354 "type": "rpc",
1355 "method": "getDataPoints"
1356}
1358fs_thresholds = {
1359 "uuid": "e6734cb3-38f5-4338-8862-acc9c58ebc4f",
1360 "action": "TemplateRouter",
1361 "result": {
1362 "data": [
1363 {
1364 "maxval": "90",
1365 "explanation": "",
1366 "description": "",
1367 "minval": "",
1368 "escalateCount": 0,
1369 "resolution": "",
1370 "dsnames": [
1371 "disk_percentUsed"
1372 ],
1373 "enabled": True,
1374 "name": "90 percent used",
1375 "meta_type": "ThresholdClass",
1376 "newId": "90 percent used",
1377 "dataPoints": "disk_percentUsed",
1378 "inspector_type": "ThresholdClass",
1379 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/thresholds/90 percent used",
1380 "eventClass": "/Perf/Filesystem",
1381 "type": "MinMaxThreshold",
1382 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/thresholds/90 percent used",
1383 "severity": 3
1384 },
1385 {
1386 "maxval": "95",
1387 "explanation": "",
1388 "description": "",
1389 "minval": "",
1390 "escalateCount": 0,
1391 "resolution": "",
1392 "dsnames": [
1393 "disk_percentUsed"
1394 ],
1395 "enabled": True,
1396 "name": "95 percent used",
1397 "meta_type": "ThresholdClass",
1398 "newId": "95 percent used",
1399 "dataPoints": "disk_percentUsed",
1400 "inspector_type": "ThresholdClass",
1401 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/thresholds/95 percent used",
1402 "eventClass": "/Perf/Filesystem",
1403 "type": "MinMaxThreshold",
1404 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/thresholds/95 percent used",
1405 "severity": 4
1406 }
1407 ],
1408 "success": True
1409 },
1410 "tid": 1,
1411 "type": "rpc",
1412 "method": "getThresholds"
1413}
1415threshold_details = {
1416 "uuid": "386f7ba8-1c15-4820-889c-f6624a93b9fb",
1417 "action": "TemplateRouter",
1418 "result": {
1419 "record": {
1420 "maxval": "90",
1421 "explanation": "",
1422 "description": "",
1423 "minval": "",
1424 "escalateCount": 0,
1425 "resolution": "",
1426 "dsnames": [
1427 "disk_percentUsed"
1428 ],
1429 "enabled": True,
1430 "allDataPoints": [
1431 "disk_availBlocks",
1432 "disk_percentUsed",
1433 "disk_usedBlocks",
1434 "idisk_availableInodes",
1435 "idisk_percentInodesUsed",
1436 "idisk_totalInodes",
1437 "idisk_usedInodes"
1438 ],
1439 "name": "90 percent used",
1440 "meta_type": "ThresholdClass",
1441 "newId": "90 percent used",
1442 "dataPoints": "disk_percentUsed",
1443 "inspector_type": "ThresholdClass",
1444 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/thresholds/90 percent used",
1445 "eventClass": "/Perf/Filesystem",
1446 "type": "MinMaxThreshold",
1447 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/thresholds/90 percent used",
1448 "severity": 3
1449 },
1450 "form": {
1451 "items": [
1452 {
1453 "items": [
1454 {
1455 "vtype": None,
1456 "fieldLabel": "Name",
1457 "xtype": "idfield",
1458 "labelStyle": None,
1459 "value": "90 percent used",
1460 "name": "newId",
1461 "disabled": False,
1462 "inputAttrTpl": " data-qtip='' ",
1463 "anchor": "85%",
1464 "allowBlank": True
1465 },
1466 {
1467 "vtype": None,
1468 "fieldLabel": "Description",
1469 "xtype": "textfield",
1470 "labelStyle": None,
1471 "value": "",
1472 "name": "description",
1473 "disabled": False,
1474 "inputAttrTpl": " data-qtip='' ",
1475 "anchor": "85%",
1476 "allowBlank": True
1477 },
1478 {
1479 "vtype": None,
1480 "fieldLabel": "Type",
1481 "xtype": "displayfield",
1482 "labelStyle": None,
1483 "value": "MinMaxThreshold",
1484 "name": "type",
1485 "disabled": False,
1486 "inputAttrTpl": " data-qtip='' ",
1487 "anchor": "85%",
1488 "allowBlank": True
1489 },
1490 {
1491 "vtype": None,
1492 "fieldLabel": "Explanation",
1493 "xtype": "textfield",
1494 "labelStyle": None,
1495 "value": "",
1496 "name": "explanation",
1497 "disabled": False,
1498 "inputAttrTpl": " data-qtip='' ",
1499 "anchor": "85%",
1500 "allowBlank": True
1501 },
1502 {
1503 "vtype": None,
1504 "fieldLabel": "Resolution",
1505 "xtype": "textfield",
1506 "labelStyle": None,
1507 "value": "",
1508 "name": "resolution",
1509 "disabled": False,
1510 "inputAttrTpl": " data-qtip='' ",
1511 "anchor": "85%",
1512 "allowBlank": True
1513 },
1514 {
1515 "vtype": None,
1516 "fieldLabel": "DataPoints",
1517 "xtype": "datapointitemselector",
1518 "labelStyle": None,
1519 "value": [
1520 "disk_percentUsed"
1521 ],
1522 "name": "dsnames",
1523 "disabled": False,
1524 "inputAttrTpl": " data-qtip='' ",
1525 "anchor": "85%",
1526 "allowBlank": True
1527 },
1528 {
1529 "vtype": None,
1530 "fieldLabel": "Severity",
1531 "xtype": "severity",
1532 "labelStyle": None,
1533 "value": 3,
1534 "name": "severity",
1535 "disabled": False,
1536 "inputAttrTpl": " data-qtip='' ",
1537 "anchor": "85%",
1538 "allowBlank": True
1539 },
1540 {
1541 "vtype": None,
1542 "checked": True,
1543 "xtype": "checkbox",
1544 "labelStyle": "display:none",
1545 "value": True,
1546 "disabled": False,
1547 "boxLabel": "Enabled",
1548 "allowBlank": True,
1549 "inputAttrTpl": " data-qtip='' ",
1550 "anchor": "85%",
1551 "name": "enabled"
1552 },
1553 {
1554 "vtype": None,
1555 "fieldLabel": "Minimum Value",
1556 "xtype": "textfield",
1557 "labelStyle": None,
1558 "value": "",
1559 "name": "minval",
1560 "disabled": False,
1561 "inputAttrTpl": " data-qtip='' ",
1562 "anchor": "85%",
1563 "allowBlank": True
1564 },
1565 {
1566 "vtype": None,
1567 "fieldLabel": "Maximum Value",
1568 "xtype": "textfield",
1569 "labelStyle": None,
1570 "value": "90",
1571 "name": "maxval",
1572 "disabled": False,
1573 "inputAttrTpl": " data-qtip='' ",
1574 "anchor": "85%",
1575 "allowBlank": True
1576 },
1577 {
1578 "vtype": None,
1579 "fieldLabel": "Event Class",
1580 "xtype": "eventclass",
1581 "labelStyle": None,
1582 "value": "/Perf/Filesystem",
1583 "name": "eventClass",
1584 "disabled": False,
1585 "inputAttrTpl": " data-qtip='' ",
1586 "anchor": "85%",
1587 "allowBlank": True
1588 },
1589 {
1590 "vtype": None,
1591 "fieldLabel": "Escalate Count",
1592 "xtype": "numberfield",
1593 "labelStyle": None,
1594 "value": 0,
1595 "disabled": False,
1596 "decimalPrecision": 2,
1597 "allowBlank": True,
1598 "inputAttrTpl": " data-qtip='' ",
1599 "anchor": "85%",
1600 "name": "escalateCount"
1601 }
1602 ],
1603 "xtype": "fieldset",
1604 "title": None
1605 }
1606 ]
1607 }
1608 },
1609 "tid": 1,
1610 "type": "rpc",
1611 "method": "getThresholdDetails"
1612}
1614graphs_list = {
1615 "uuid": "21d7b974-1f77-4194-bc9b-827b7be8d28a",
1616 "action": "TemplateRouter",
1617 "result": [
1618 {
1619 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/graphDefs/Usage",
1620 "sequence": 1,
1621 "fakeGraphCommands": "-F\n-E\n--disable-rrdtool-tag\n--height=500\n--width=500\n--lower-limit=0\n--rigid\n--vertical-label=bytes\n--base=1024\nDEF:Used-raw=rrdPath/disk_usedBlocks.rrd:ds0:AVERAGE\nCDEF:Used-rpn=Used-raw,__render_with_namespace__,*\nCDEF:Used=Used-rpn\nLINE1:Used-rpn#1f77b4:Used \nGPRINT:Used-rpn:LAST:cur\\:%7.2lf%s\nGPRINT:Used-rpn:AVERAGE:avg\\:%7.2lf%s\\j",
1622 "height": 500,
1623 "miny": 0,
1624 "newId": "Usage",
1625 "id": "Usage",
1626 "maxy": -1,
1627 "autoscale": None,
1628 "log": False,
1629 "custom": "",
1630 "width": 500,
1631 "graphPoints": "Used",
1632 "units": "bytes",
1633 "hasSummary": True,
1634 "ceiling": None,
1635 "description": "",
1636 "base": True,
1637 "rrdVariables": [
1638 "Used-raw",
1639 "Used-rpn",
1640 "Used"
1641 ],
1642 "name": "Usage",
1643 "meta_type": "GraphDefinition",
1644 "inspector_type": "GraphDefinition"
1645 }
1646 ],
1647 "tid": 1,
1648 "type": "rpc",
1649 "method": "getGraphs"
1650}
1652graph_def = {
1653 "uuid": "f25cc8f6-4452-4846-b453-e2a190a8fb55",
1654 "action": "TemplateRouter",
1655 "result": {
1656 "data": {
1657 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/graphDefs/Usage",
1658 "sequence": 1,
1659 "fakeGraphCommands": "-F\n-E\n--disable-rrdtool-tag\n--height=500\n--width=500\n--lower-limit=0\n--rigid\n--vertical-label=bytes\n--base=1024\nDEF:Used-raw=rrdPath/disk_usedBlocks.rrd:ds0:AVERAGE\nCDEF:Used-rpn=Used-raw,__render_with_namespace__,*\nCDEF:Used=Used-rpn\nLINE1:Used-rpn#1f77b4:Used \nGPRINT:Used-rpn:LAST:cur\\:%7.2lf%s\nGPRINT:Used-rpn:AVERAGE:avg\\:%7.2lf%s\\j",
1660 "height": 500,
1661 "miny": 0,
1662 "newId": "Usage",
1663 "id": "Usage",
1664 "maxy": -1,
1665 "autoscale": None,
1666 "log": False,
1667 "custom": "",
1668 "width": 500,
1669 "graphPoints": "Used",
1670 "units": "bytes",
1671 "hasSummary": True,
1672 "ceiling": None,
1673 "description": "",
1674 "base": True,
1675 "rrdVariables": [
1676 "Used-raw",
1677 "Used-rpn",
1678 "Used"
1679 ],
1680 "name": "Usage",
1681 "meta_type": "GraphDefinition",
1682 "inspector_type": "GraphDefinition"
1683 },
1684 "success": True
1685 },
1686 "tid": 1,
1687 "type": "rpc",
1688 "method": "getGraphDefinition"
1689}
1691lv_dp_details = {
1692 "uuid": "28048a29-d8f3-47b2-bf9e-6fdba2f1fa81",
1693 "action": "TemplateRouter",
1694 "result": {
1695 "record": {
1696 "isrow": True,
1697 "leaf": True,
1698 "description": "Linux LVM logical volume monitoring via SSH.",
1699 "rrdmin": "0",
1700 "availableRRDTypes": [
1701 "COUNTER",
1702 "GAUGE",
1703 "DERIVE",
1704 "ABSOLUTE"
1705 ],
1706 "name": "status.state",
1707 "rate": False,
1708 "meta_type": "RRDDataPoint",
1709 "newId": "state",
1710 "createCmd": "",
1711 "rrdtype": "GAUGE",
1712 "inspector_type": "RRDDataPoint",
1713 "rrdmax": None,
1714 "aliases": [
1715 {
1716 "description": "Linux LVM logical volume monitoring via SSH.",
1717 "name": "lvm_lv_state__bool",
1718 "meta_type": "RRDDataPointAlias",
1719 "inspector_type": "RRDDataPointAlias",
1720 "formula": "",
1721 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state/aliases/lvm_lv_state__bool",
1722 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state/aliases/lvm_lv_state__bool"
1723 }
1724 ],
1725 "type": "GAUGE",
1726 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state",
1727 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state"
1728 },
1729 "form": {
1730 "items": [
1731 {
1732 "items": [
1733 {
1734 "vtype": None,
1735 "fieldLabel": "Name",
1736 "xtype": "idfield",
1737 "labelStyle": None,
1738 "value": "state",
1739 "name": "newId",
1740 "disabled": False,
1741 "inputAttrTpl": " data-qtip='The name of this data point' ",
1742 "anchor": "85%",
1743 "allowBlank": True
1744 },
1745 {
1746 "vtype": None,
1747 "fieldLabel": "Description",
1748 "xtype": "textarea",
1749 "labelStyle": None,
1750 "value": "Linux LVM logical volume monitoring via SSH.",
1751 "name": "description",
1752 "disabled": False,
1753 "inputAttrTpl": " data-qtip='The description of this data point' ",
1754 "anchor": "85%",
1755 "allowBlank": True
1756 },
1757 {
1758 "vtype": None,
1759 "fieldLabel": "Type",
1760 "xtype": "rrdtype",
1761 "labelStyle": None,
1762 "value": "GAUGE",
1763 "name": "rrdtype",
1764 "disabled": False,
1765 "inputAttrTpl": " data-qtip='The type of data point we have' ",
1766 "anchor": "85%",
1767 "allowBlank": True
1768 },
1769 {
1770 "vtype": None,
1771 "fieldLabel": "Create Command",
1772 "xtype": "textarea",
1773 "labelStyle": None,
1774 "value": "",
1775 "name": "createCmd",
1776 "disabled": False,
1777 "inputAttrTpl": " data-qtip='' ",
1778 "anchor": "85%",
1779 "allowBlank": True
1780 },
1781 {
1782 "vtype": None,
1783 "fieldLabel": "RRD Minimum",
1784 "xtype": "textfield",
1785 "labelStyle": None,
1786 "value": "0",
1787 "name": "rrdmin",
1788 "disabled": False,
1789 "inputAttrTpl": " data-qtip='' ",
1790 "anchor": "85%",
1791 "allowBlank": True
1792 },
1793 {
1794 "vtype": None,
1795 "fieldLabel": "RRD Maximum",
1796 "xtype": "textfield",
1797 "labelStyle": None,
1798 "value": None,
1799 "name": "rrdmax",
1800 "disabled": False,
1801 "inputAttrTpl": " data-qtip='' ",
1802 "anchor": "85%",
1803 "allowBlank": True
1804 },
1805 {
1806 "vtype": None,
1807 "fieldLabel": "Alias",
1808 "xtype": "alias",
1809 "labelStyle": None,
1810 "value": [
1811 {
1812 "description": "Linux LVM logical volume monitoring via SSH.",
1813 "name": "lvm_lv_state__bool",
1814 "meta_type": "RRDDataPointAlias",
1815 "inspector_type": "RRDDataPointAlias",
1816 "formula": "",
1817 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state/aliases/lvm_lv_state__bool",
1818 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/LogicalVolume/datasources/status/datapoints/state/aliases/lvm_lv_state__bool"
1819 }
1820 ],
1821 "name": "aliases",
1822 "disabled": False,
1823 "inputAttrTpl": " data-qtip='' ",
1824 "anchor": "85%",
1825 "allowBlank": True
1826 }
1827 ],
1828 "xtype": "fieldset"
1829 }
1830 ]
1831 }
1832 },
1833 "tid": 1,
1834 "type": "rpc",
1835 "method": "getDataPointDetails"
1836}
1838fs_dp_details = {
1839 "uuid": "83efb7e2-065b-4b0b-9047-fc255e1fa0c5",
1840 "action": "TemplateRouter",
1841 "result": {
1842 "record": {
1843 "isrow": True,
1844 "leaf": True,
1845 "description": "Linux file system monitoring via SSH.",
1846 "rrdmin": "0",
1847 "availableRRDTypes": [
1848 "COUNTER",
1849 "GAUGE",
1850 "DERIVE",
1851 "ABSOLUTE"
1852 ],
1853 "name": "disk.percentUsed",
1854 "rate": False,
1855 "meta_type": "RRDDataPoint",
1856 "newId": "percentUsed",
1857 "createCmd": "",
1858 "rrdtype": "GAUGE",
1859 "inspector_type": "RRDDataPoint",
1860 "rrdmax": None,
1861 "aliases": [
1862 {
1863 "description": "Linux file system monitoring via SSH.",
1864 "name": "fs__pct",
1865 "meta_type": "RRDDataPointAlias",
1866 "inspector_type": "RRDDataPointAlias",
1867 "formula": "",
1868 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed/aliases/fs__pct",
1869 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed/aliases/fs__pct"
1870 },
1871 {
1872 "description": "Linux file system monitoring via SSH.",
1873 "name": "fs_used__pct",
1874 "meta_type": "RRDDataPointAlias",
1875 "inspector_type": "RRDDataPointAlias",
1876 "formula": "",
1877 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed/aliases/fs_used__pct",
1878 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed/aliases/fs_used__pct"
1879 }
1880 ],
1881 "type": "GAUGE",
1882 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed",
1883 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed"
1884 },
1885 "form": {
1886 "items": [
1887 {
1888 "items": [
1889 {
1890 "vtype": None,
1891 "fieldLabel": "Name",
1892 "xtype": "idfield",
1893 "labelStyle": None,
1894 "value": "percentUsed",
1895 "name": "newId",
1896 "disabled": False,
1897 "inputAttrTpl": " data-qtip='The name of this data point' ",
1898 "anchor": "85%",
1899 "allowBlank": True
1900 },
1901 {
1902 "vtype": None,
1903 "fieldLabel": "Description",
1904 "xtype": "textarea",
1905 "labelStyle": None,
1906 "value": "Linux file system monitoring via SSH.",
1907 "name": "description",
1908 "disabled": False,
1909 "inputAttrTpl": " data-qtip='The description of this data point' ",
1910 "anchor": "85%",
1911 "allowBlank": True
1912 },
1913 {
1914 "vtype": None,
1915 "fieldLabel": "Type",
1916 "xtype": "rrdtype",
1917 "labelStyle": None,
1918 "value": "GAUGE",
1919 "name": "rrdtype",
1920 "disabled": False,
1921 "inputAttrTpl": " data-qtip='The type of data point we have' ",
1922 "anchor": "85%",
1923 "allowBlank": True
1924 },
1925 {
1926 "vtype": None,
1927 "fieldLabel": "Create Command",
1928 "xtype": "textarea",
1929 "labelStyle": None,
1930 "value": "",
1931 "name": "createCmd",
1932 "disabled": False,
1933 "inputAttrTpl": " data-qtip='' ",
1934 "anchor": "85%",
1935 "allowBlank": True
1936 },
1937 {
1938 "vtype": None,
1939 "fieldLabel": "RRD Minimum",
1940 "xtype": "textfield",
1941 "labelStyle": None,
1942 "value": "0",
1943 "name": "rrdmin",
1944 "disabled": False,
1945 "inputAttrTpl": " data-qtip='' ",
1946 "anchor": "85%",
1947 "allowBlank": True
1948 },
1949 {
1950 "vtype": None,
1951 "fieldLabel": "RRD Maximum",
1952 "xtype": "textfield",
1953 "labelStyle": None,
1954 "value": None,
1955 "name": "rrdmax",
1956 "disabled": False,
1957 "inputAttrTpl": " data-qtip='' ",
1958 "anchor": "85%",
1959 "allowBlank": True
1960 },
1961 {
1962 "vtype": None,
1963 "fieldLabel": "Alias",
1964 "xtype": "alias",
1965 "labelStyle": None,
1966 "value": [
1967 {
1968 "description": "Linux file system monitoring via SSH.",
1969 "name": "fs__pct",
1970 "meta_type": "RRDDataPointAlias",
1971 "inspector_type": "RRDDataPointAlias",
1972 "formula": "",
1973 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed/aliases/fs__pct",
1974 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed/aliases/fs__pct"
1975 },
1976 {
1977 "description": "Linux file system monitoring via SSH.",
1978 "name": "fs_used__pct",
1979 "meta_type": "RRDDataPointAlias",
1980 "inspector_type": "RRDDataPointAlias",
1981 "formula": "",
1982 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed/aliases/fs_used__pct",
1983 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/percentUsed/aliases/fs_used__pct"
1984 }
1985 ],
1986 "name": "aliases",
1987 "disabled": False,
1988 "inputAttrTpl": " data-qtip='' ",
1989 "anchor": "85%",
1990 "allowBlank": True
1991 }
1992 ],
1993 "xtype": "fieldset"
1994 }
1995 ]
1996 }
1997 },
1998 "tid": 1,
1999 "type": "rpc",
2000 "method": "getDataPointDetails"
2001}
2003fs_dp_details_2 = {
2004 "uuid": "ba921802-4a6e-49cb-83cc-198b0f812d33",
2005 "action": "TemplateRouter",
2006 "result": {
2007 "record": {
2008 "isrow": True,
2009 "leaf": True,
2010 "description": "Linux file system monitoring via SSH.",
2011 "rrdmin": "0",
2012 "availableRRDTypes": [
2013 "COUNTER",
2014 "GAUGE",
2015 "DERIVE",
2016 "ABSOLUTE"
2017 ],
2018 "name": "disk.usedBlocks",
2019 "rate": False,
2020 "meta_type": "RRDDataPoint",
2021 "newId": "usedBlocks",
2022 "createCmd": "",
2023 "rrdtype": "GAUGE",
2024 "inspector_type": "RRDDataPoint",
2025 "rrdmax": None,
2026 "aliases": [
2027 {
2028 "description": "Linux file system monitoring via SSH.",
2029 "name": "fs_used__bytes",
2030 "meta_type": "RRDDataPointAlias",
2031 "inspector_type": "RRDDataPointAlias",
2032 "formula": "${here/blockSize},*",
2033 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks/aliases/fs_used__bytes",
2034 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks/aliases/fs_used__bytes"
2035 },
2036 {
2037 "description": "Linux file system monitoring via SSH.",
2038 "name": "usedFilesystemSpace__bytes",
2039 "meta_type": "RRDDataPointAlias",
2040 "inspector_type": "RRDDataPointAlias",
2041 "formula": "${here/blockSize},*",
2042 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks/aliases/usedFilesystemSpace__bytes",
2043 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks/aliases/usedFilesystemSpace__bytes"
2044 }
2045 ],
2046 "type": "GAUGE",
2047 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks",
2048 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks"
2049 },
2050 "form": {
2051 "items": [
2052 {
2053 "items": [
2054 {
2055 "vtype": None,
2056 "fieldLabel": "Name",
2057 "xtype": "idfield",
2058 "labelStyle": None,
2059 "value": "usedBlocks",
2060 "name": "newId",
2061 "disabled": False,
2062 "inputAttrTpl": " data-qtip='The name of this data point' ",
2063 "anchor": "85%",
2064 "allowBlank": True
2065 },
2066 {
2067 "vtype": None,
2068 "fieldLabel": "Description",
2069 "xtype": "textarea",
2070 "labelStyle": None,
2071 "value": "Linux file system monitoring via SSH.",
2072 "name": "description",
2073 "disabled": False,
2074 "inputAttrTpl": " data-qtip='The description of this data point' ",
2075 "anchor": "85%",
2076 "allowBlank": True
2077 },
2078 {
2079 "vtype": None,
2080 "fieldLabel": "Type",
2081 "xtype": "rrdtype",
2082 "labelStyle": None,
2083 "value": "GAUGE",
2084 "name": "rrdtype",
2085 "disabled": False,
2086 "inputAttrTpl": " data-qtip='The type of data point we have' ",
2087 "anchor": "85%",
2088 "allowBlank": True
2089 },
2090 {
2091 "vtype": None,
2092 "fieldLabel": "Create Command",
2093 "xtype": "textarea",
2094 "labelStyle": None,
2095 "value": "",
2096 "name": "createCmd",
2097 "disabled": False,
2098 "inputAttrTpl": " data-qtip='' ",
2099 "anchor": "85%",
2100 "allowBlank": True
2101 },
2102 {
2103 "vtype": None,
2104 "fieldLabel": "RRD Minimum",
2105 "xtype": "textfield",
2106 "labelStyle": None,
2107 "value": "0",
2108 "name": "rrdmin",
2109 "disabled": False,
2110 "inputAttrTpl": " data-qtip='' ",
2111 "anchor": "85%",
2112 "allowBlank": True
2113 },
2114 {
2115 "vtype": None,
2116 "fieldLabel": "RRD Maximum",
2117 "xtype": "textfield",
2118 "labelStyle": None,
2119 "value": None,
2120 "name": "rrdmax",
2121 "disabled": False,
2122 "inputAttrTpl": " data-qtip='' ",
2123 "anchor": "85%",
2124 "allowBlank": True
2125 },
2126 {
2127 "vtype": None,
2128 "fieldLabel": "Alias",
2129 "xtype": "alias",
2130 "labelStyle": None,
2131 "value": [
2132 {
2133 "description": "Linux file system monitoring via SSH.",
2134 "name": "fs_used__bytes",
2135 "meta_type": "RRDDataPointAlias",
2136 "inspector_type": "RRDDataPointAlias",
2137 "formula": "${here/blockSize},*",
2138 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks/aliases/fs_used__bytes",
2139 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks/aliases/fs_used__bytes"
2140 },
2141 {
2142 "description": "Linux file system monitoring via SSH.",
2143 "name": "usedFilesystemSpace__bytes",
2144 "meta_type": "RRDDataPointAlias",
2145 "inspector_type": "RRDDataPointAlias",
2146 "formula": "${here/blockSize},*",
2147 "id": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks/aliases/usedFilesystemSpace__bytes",
2148 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/datasources/disk/datapoints/usedBlocks/aliases/usedFilesystemSpace__bytes"
2149 }
2150 ],
2151 "name": "aliases",
2152 "disabled": False,
2153 "inputAttrTpl": " data-qtip='' ",
2154 "anchor": "85%",
2155 "allowBlank": True
2156 }
2157 ],
2158 "xtype": "fieldset"
2159 }
2160 ]
2161 }
2162 },
2163 "tid": 1,
2164 "type": "rpc",
2165 "method": "getDataPointDetails"
2166}
2168graph_points = {
2169 "uuid": "0c05668d-f0ef-4979-b623-8bedf562f479",
2170 "action": "TemplateRouter",
2171 "result": {
2172 "data": [
2173 {
2174 "dpName": "disk_usedBlocks",
2175 "stacked": False,
2176 "description": "disk_usedBlocks",
2177 "name": "Used",
2178 "format": "%7.2lf%s",
2179 "color": "",
2180 "skipCalc": False,
2181 "limit": -1,
2182 "id": "Used",
2183 "lineWidth": 1,
2184 "meta_type": "DataPointGraphPoint",
2185 "newId": "Used",
2186 "lineType": "LINE",
2187 "rrdVariables": "None",
2188 "inspector_type": "DataPointGraphPoint",
2189 "cFunc": "AVERAGE",
2190 "rpn": "${here/blockSize},*",
2191 "type": "DataPoint",
2192 "legend": "${graphPoint/id}",
2193 "uid": "/zport/dmd/Devices/Server/TEST/rrdTemplates/FileSystem/graphDefs/Usage/graphPoints/Used"
2194 }
2195 ],
2196 "success": True
2197 },
2198 "tid": 1,
2199 "type": "rpc",
2200 "method": "getGraphPoints"
2201}