-
Notifications
You must be signed in to change notification settings - Fork 1
/
HAVELSAN Health Camera.yaml
108 lines (108 loc) · 3.9 KB
/
HAVELSAN Health Camera.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
zabbix_export:
version: '6.0'
date: '2024-12-23T09:04:13Z'
groups:
- uuid: 7df96b18c230490a9a0a9e2307226338
name: Templates
templates:
- uuid: 7eaaa17fecb443b489eb1b50bde9fd9c
template: 'Havelsan Health Camera'
name: 'Havelsan Health Camera'
groups:
- name: Templates
items:
- uuid: 4eb6e91dd03b47bd868f1719766d5ada
name: 'HAVELSAN Availability'
type: CALCULATED
key: hvl.availability
params: 'last(//zabbix[host,agent,available]) + last(//wmi.getall[root\cimv2,"SELECT PrimaryAddressResolutionStatus, StatusCode, ResponseTime FROM Win32_PingStatus WHERE Address=''{$IP}'' AND Timeout={$TIMEOUT}"])'
preprocessing:
- type: STR_REPLACE
parameters:
- '1'
- '0'
- type: STR_REPLACE
parameters:
- '2'
- '1'
- type: STR_REPLACE
parameters:
- '3'
- '2'
triggers:
- uuid: c07a1fb7a76d4858bb91aebbb29ff2a9
expression: 'last(/Havelsan Health Camera/hvl.availability,#2)=0'
name: 'En az 1 dakikadır sunucuya ulaşılamıyor'
priority: HIGH
- uuid: e48942172f724dacbebbe7952b68b735
expression: 'last(/Havelsan Health Camera/hvl.availability,#3)=0'
name: 'En az 3 dakikadır sunucuya ulaşılamıyor'
priority: DISASTER
- uuid: 86327113d4b2443d8b00918e374eab22
name: 'HAVELSAN Device Type'
type: CALCULATED
key: hvl.dev.type
params: 'last(//wmi.getall[root\cimv2,"SELECT PrimaryAddressResolutionStatus, StatusCode, ResponseTime FROM Win32_PingStatus WHERE Address=''{$IP}'' AND Timeout=5000"])'
preprocessing:
- type: JAVASCRIPT
parameters:
- |
if(value == '1'){
if ("{$IP}".slice(-3) === "200"){
return 14
}
else{
return 11
}
}
return 0
- uuid: 9a7ac080d90140b0bfb0e38ce3cfddfc
name: 'ICMP Ping Result Array'
key: 'wmi.getall[root\cimv2,"SELECT PrimaryAddressResolutionStatus, StatusCode, ResponseTime FROM Win32_PingStatus WHERE Address=''{$IP}'' AND Timeout={$TIMEOUT}"]'
delay: 30s
preprocessing:
- type: CHECK_NOT_SUPPORTED
parameters:
- ''
error_handler: CUSTOM_VALUE
error_handler_params: '0'
- type: JAVASCRIPT
parameters:
- |
try {
var statusCode = JSON.parse(value)[0].StatusCode;
return statusCode === 0 ? 1 : 0;
} catch (error) {
// Hata durumunda varsayılan değer döndür
return 0;
}
- uuid: 05290289a9ac449db9337da59a70b2fe
name: 'Havelsan zabbix Availability'
type: INTERNAL
key: 'zabbix[host,agent,available]'
macros:
- macro: '{$TIMEOUT}'
value: '5000'
dashboards:
- uuid: 5a401c0d015449a987d606efa96cc232
name: hvl.availability
pages:
- { }
- uuid: bcb53833f32f4763a947c93bbbcfd302
name: icmpping
pages:
- { }
- uuid: efdbfccf864d4309970752d024a5510a
name: 'zabbix[host,agent,available]'
pages:
- { }
- uuid: 84fb92840cd24192b7664562b5196d5e
name: 'zabbix[host,snmp,available]'
pages:
- { }
valuemaps:
- uuid: c66307a040f848efbaa3d200449d9251
name: 'Default 80 Port'
mappings:
- type: DEFAULT
newvalue: '0'