-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate_mgs-inventory.yaml
697 lines (697 loc) · 21 KB
/
template_mgs-inventory.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
zabbix_export:
version: '5.2'
date: '2021-03-23T06:52:34Z'
groups:
-
name: Templates
templates:
-
template: 'Template mgs_inventory'
name: 'Template mgs_inventory'
description: 'Hardware and software inventory collector'
groups:
-
name: Templates
applications:
-
name: 'MgS Inventory'
-
name: 'MgS SerialNumbers'
items:
-
name: 'CPU Architecture'
key: 'mgs.inventory[cpu,arch]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'CPU architecture'
inventory_link: HW_ARCH
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'CPU Logical Cores Count'
key: 'mgs.inventory[cpu,cores]'
delay: 2h
description: 'Cores count'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'CPU Logical Processors with Cores Count'
key: 'mgs.inventory[cpu,count]'
delay: 2h
description: 'Logical Procesors with cores count'
applications:
-
name: 'MgS Inventory'
request_method: POST
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'CPU count was changed on {HOST.NAME}'
priority: INFO
description: |
The number of physical CPUs or cores was changed.
{ITEM.LASTVALUE1}
-
name: 'CPU Logical Processors Count'
key: 'mgs.inventory[cpu,cpus]'
delay: 2h
description: 'CPU count'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'CPU Current Frequency'
key: 'mgs.inventory[cpu,curfreq]'
delay: 1h
value_type: FLOAT
units: Hz
description: 'Current CPU frequency'
applications:
-
name: 'MgS Inventory'
preprocessing:
-
type: MULTIPLIER
parameters:
- '1000000'
request_method: POST
-
name: 'CPU Maximum Frequency'
key: 'mgs.inventory[cpu,freq]'
delay: 2h
value_type: FLOAT
units: Hz
description: 'Maximum CPU frequency'
applications:
-
name: 'MgS Inventory'
preprocessing:
-
type: MULTIPLIER
parameters:
- '1000000'
request_method: POST
-
name: 'CPU Model'
key: 'mgs.inventory[cpu,model,0]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'CPU Model'
applications:
-
name: 'MgS Inventory'
request_method: POST
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'CPU Model was changed on {HOST.NAME}'
priority: INFO
description: |
The CPU Model was changed.
{ITEM.LASTVALUE1}
-
name: 'CPU Threads Count'
key: 'mgs.inventory[cpu,threads]'
delay: 2h
description: 'Threads count'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: GetBiosId
key: 'mgs.inventory[identifier,GetBiosId]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'Bios Id'
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'BiosID has been changed on {HOST.NAME}'
priority: INFO
description: |
BiosID has been changed.
{ITEM.LASTVALUE1}
-
name: GetComputerSystemProductUUID
key: 'mgs.inventory[identifier,GetComputerSystemProductUUID]'
delay: 1d
trends: '0'
value_type: TEXT
description: ComputerSystemProductUUID
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'ComputerSystemProductUUID has been changed on {HOST.NAME}'
priority: INFO
description: |
ComputerSystemProductUUID has been changed.
{ITEM.LASTVALUE1}
-
name: GetHddIds
key: 'mgs.inventory[identifier,GetHddIds]'
delay: 30m
trends: '0'
value_type: TEXT
description: 'HDD Ids'
-
name: GetMACAddresses
key: 'mgs.inventory[identifier,GetMACAddresses]'
delay: 1h
trends: '0'
value_type: TEXT
description: 'MAC addresses'
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'MAC Addresses has been changed on {HOST.NAME}'
priority: INFO
description: |
MAC Addresses has been changed.
{ITEM.LASTVALUE1}
-
name: GetProcessorIds
key: 'mgs.inventory[identifier,GetProcessorIds]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'Processors Ids'
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'Processors IDs has been changed on {HOST.NAME}'
priority: INFO
description: |
Processors Ids has been changed.
{ITEM.LASTVALUE1}
-
name: GetWindowsDriveVolumeId
key: 'mgs.inventory[identifier,GetWindowsDriveVolumeId]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'Windows System Drive Volume Id'
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'Windows Drive Volume Id has been changed on {HOST.NAME}'
priority: INFO
description: |
Windows Drive Volume Id has been changed.
{ITEM.LASTVALUE1}
-
name: GetWindowsInstallDate
key: 'mgs.inventory[identifier,GetWindowsInstallDate]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'Windows Installation Date'
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'Windows Install date has been changed on {HOST.NAME}'
priority: INFO
description: |
Windows Install date has been changed.
{ITEM.LASTVALUE1}
-
name: GetWindowsSerialNumber
key: 'mgs.inventory[identifier,GetWindowsSerialNumber]'
delay: 10m
trends: '0'
value_type: TEXT
description: 'Windows Serial Number'
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'Windows Serial Number has been changed on {HOST.NAME}'
priority: INFO
description: |
Windows Serial Number has been changed.
{ITEM.LASTVALUE1}
-
name: 'Memory capacity'
key: 'mgs.inventory[memory,capacity]'
delay: 8h
trends: '0'
value_type: TEXT
description: 'Installed physical memory capacity'
applications:
-
name: 'MgS Inventory'
-
name: 'Memory manufacturer'
key: 'mgs.inventory[memory,manufacturer]'
delay: 8h
trends: '0'
value_type: TEXT
description: 'Manufacturer of installed physical memory.'
applications:
-
name: 'MgS Inventory'
-
name: 'Memory partnumber'
key: 'mgs.inventory[memory,partnumber]'
delay: 8h
trends: '0'
value_type: TEXT
description: 'Part number of installed physical memory.'
applications:
-
name: 'MgS Inventory'
-
name: 'Total physical memory'
key: 'mgs.inventory[memory,total]'
delay: 1h
units: B
description: 'Total amount of installed memory in bytes.'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Network External IPv4 Address'
key: 'mgs.inventory[network,extipv4]'
delay: 2h
trends: '0'
status: DISABLED
value_type: TEXT
description: 'IPV4 network default external address'
applications:
-
name: 'MgS Inventory'
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'External IPv4 address was changed on {HOST.NAME}'
priority: INFO
description: |
IPV4 address was changed
{ITEM.LASTVALUE1}
-
name: 'Network External IPv6 Address'
key: 'mgs.inventory[network,extipv6]'
delay: 2h
trends: '0'
status: DISABLED
value_type: TEXT
description: 'IPV6 network default external address'
applications:
-
name: 'MgS Inventory'
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'External IPv6 address was changed on {HOST.NAME}'
priority: INFO
description: |
IPV6 address was changed
{ITEM.LASTVALUE1}
-
name: 'Default IPV4 Gateway'
key: 'mgs.inventory[network,ipv4gateway]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Default IPv4 gateway'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Network IPv4 Addresses'
key: 'mgs.inventory[network,ipv4]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'IPV4 network addresses'
inventory_link: HOST_NETWORKS
applications:
-
name: 'MgS Inventory'
request_method: POST
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'Intenal IPv4 address was changed on {HOST.NAME}'
priority: INFO
description: |
IPV4 address was changed
{ITEM.LASTVALUE1}
-
name: 'Default IPV6 Gateway'
key: 'mgs.inventory[network,ipv6gateway]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Default IPv6 gateway'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Network IPv6 Addresses'
key: 'mgs.inventory[network,ipv6]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'IPV6 network addresses'
applications:
-
name: 'MgS Inventory'
request_method: POST
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'Internal IPv6 address was changed on {HOST.NAME}'
priority: INFO
description: |
IPV6 address was changed
{ITEM.LASTVALUE1}
-
name: 'Network cards'
key: 'mgs.inventory[network,nic]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Network cards'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Operating system'
key: 'mgs.inventory[os,desc]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Operating system description'
inventory_link: OS_SHORT
applications:
-
name: 'MgS Inventory'
request_method: POST
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'Operating system was changed on {HOST.NAME}'
priority: INFO
description: |
Operating system was changed.
{ITEM.LASTVALUE1}
-
name: 'Operating system GUID'
key: 'mgs.inventory[os,guid]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'Operating system guid'
inventory_link: SERIALNO_B
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Machine GUID'
key: 'mgs.inventory[os,machineguid]'
delay: 10m
trends: '0'
value_type: TEXT
description: 'Machine Guid (From HKLM:\SOFTWARE\Microsoft\Cryptography registry hive)'
applications:
-
name: 'MgS Inventory'
-
name: 'Operating system ProductKey'
key: 'mgs.inventory[os,productkey]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Operating system ProductKey'
applications:
-
name: 'MgS Inventory'
request_method: POST
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'Windows product key was changed on {HOST.NAME}'
priority: INFO
description: |
Windows product key was changed.
{ITEM.LASTVALUE1}
-
name: 'Operating system serial'
key: 'mgs.inventory[os,serial]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Operating system serial number'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Operating system version'
key: 'mgs.inventory[os,version]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Operating system version'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'MgS Inventory script version'
key: 'mgs.inventory[self,version]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'MgS Inventory script version.'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'BIOS serial number'
key: 'mgs.inventory[serial,bios]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Serial number of bios.'
applications:
-
name: 'MgS SerialNumbers'
-
name: 'Chassis serial number'
key: 'mgs.inventory[serial,chassis]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Serial number of chassis.'
applications:
-
name: 'MgS SerialNumbers'
-
name: 'CPU serial number'
key: 'mgs.inventory[serial,cpu]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Serial number of cpu.'
applications:
-
name: 'MgS SerialNumbers'
-
name: 'Display serial number'
key: 'mgs.inventory[serial,display]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Serial numbers of attached displays'
applications:
-
name: 'MgS SerialNumbers'
-
name: 'Memory serial number'
key: 'mgs.inventory[serial,memory]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Serial number of installed memory modules.'
applications:
-
name: 'MgS SerialNumbers'
-
name: 'Network interface card serial number'
key: 'mgs.inventory[serial,nic]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Serial number of NICs.'
applications:
-
name: 'MgS SerialNumbers'
-
name: 'Storage serial number'
key: 'mgs.inventory[serial,storage]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Serial number of storage devices.'
applications:
-
name: 'MgS SerialNumbers'
-
name: 'Installed software count'
key: 'mgs.inventory[software,installed,count]'
delay: 2h
description: 'Count of installed software'
applications:
-
name: 'MgS Inventory'
triggers:
-
expression: '{diff(0)}>0 and {nodata(600)}=0'
name: 'Something was installed on {HOST.NAME}'
priority: WARNING
description: |
Something was installed
{ITEM.LASTVALUE1}
-
name: 'Installed extra software'
key: 'mgs.inventory[software,installed,extra]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'Installed software not from Microsoft'
applications:
-
name: 'MgS Inventory'
-
name: 'Installed software'
key: 'mgs.inventory[software,installed]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'Installed software, without program updates and service packs.'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Physical disks'
key: 'mgs.inventory[storage,disks]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Physical disks with capacity in GB'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Physical disks Model'
key: 'mgs.inventory[storage,model]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Physical Disk model'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Disk partitions'
key: 'mgs.inventory[storage,partitions]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'Partitions with capacity in GB'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'BIOS Version'
key: 'mgs.inventory[var,bios]'
delay: 24h
trends: '0'
value_type: TEXT
description: 'BIOS Version'
applications:
-
name: 'MgS Inventory'
-
name: Displays
key: 'mgs.inventory[var,display]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'Connected displays'
applications:
-
name: 'MgS Inventory'
-
name: 'System Domain'
key: 'mgs.inventory[var,domain]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'System domain'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'System FQDN'
key: 'mgs.inventory[var,fqdn]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'System fully qualified domain name.'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'Graphics cards'
key: 'mgs.inventory[var,gfx]'
delay: 1d
trends: '0'
value_type: TEXT
description: 'Installed Graphics Cards'
applications:
-
name: 'MgS Inventory'
-
name: 'System Hostname'
key: 'mgs.inventory[var,hostname]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'System hostname'
applications:
-
name: 'MgS Inventory'
request_method: POST
-
name: 'System manufacturer'
key: 'mgs.inventory[var,vendor]'
delay: 2h
trends: '0'
value_type: TEXT
description: 'System manufacturer'
applications:
-
name: 'MgS Inventory'
request_method: POST