-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHAVELSAN Sensor Details.yaml
67 lines (65 loc) · 2.17 KB
/
HAVELSAN Sensor Details.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
zabbix_export:
version: '6.0'
date: '2024-12-23T07:57:43Z'
groups:
- uuid: 7df96b18c230490a9a0a9e2307226338
name: Templates
templates:
- uuid: 2f580b62b5b249248dcc923f40dbb25d
template: 'Havelsan Sensor Details'
name: 'Havelsan Sensor Details'
groups:
- name: Templates
items:
- uuid: 0258552efad243d5b1633f460af2a070
name: 'Device Type'
type: CALCULATED
key: hvl.dev.type
delay: 1d
params: 'last(//web.page.get[{$IP},test.cgi,{$PORT}])'
preprocessing:
- type: JAVASCRIPT
parameters:
- |2
if (value.includes("404")) {
value = "0";
} else if (value.length < 3) {
value = "12";
}
return value;
- uuid: 474e1e2435dc4804a57085b79a39ac6a
name: 'HAVELSAN Sensor Read'
key: 'web.page.get[{$IP},test.cgi,{$PORT}]'
trends: '0'
value_type: TEXT
preprocessing:
- type: JAVASCRIPT
parameters:
- |
value = value.slice(80)
return value
triggers:
- uuid: 2bdc26c6eb494149aafecd053c9a80e4
expression: 'last(/Havelsan Sensor Details/web.page.get[{$IP},test.cgi,{$PORT}],#3)>3 or last(/Havelsan Sensor Details/web.page.get[{$IP},test.cgi,{$PORT}],#3)<1'
name: 'Sensor Sağlıklı Çalışmıyor'
priority: AVERAGE
- uuid: 04543c70abe84bb2841f3b466b351a8c
name: 'HAVELSAN Sensor Health'
key: 'web.page.get[{$IP},test1.cgi,{$PORT}]'
trends: '0'
value_type: TEXT
preprocessing:
- type: JAVASCRIPT
parameters:
- |
value = value.slice(80)
return value
macros:
- macro: '{$PORT}'
value: '80'
valuemaps:
- uuid: e6d19ef982074908bc60b68db987f289
name: Default
mappings:
- type: DEFAULT
newvalue: '0'