ncc.zabbix_templates
23:f1258954911b
Go to Latest
ncc.zabbix_templates/Linux.common/zbx_export_templates.yaml
* Ложные срабатывания триггеров при частых изменениях состояния массива
+ Отдельное наблюдение за состоянием деградации массива.
3 date: '2024-01-01T08:50:30Z'
5 - uuid: 22941f4e01294888a9bed3aae15f6ef9
8 - uuid: d9ed1ecc0bc14cafb7fcbd309ad9a944
9 template: 'AWNET Linux Template'
10 name: 'AWNET Linux Template'
11 description: 'Версия: v0.r202312.2'
13 - name: Templates/AWNET
15 - uuid: 85da57ac953f48c5a1e08f74fb2b65d5
16 name: 'Пакеты к обновлению'
17 key: aw.linux.apt.updatable
25 var buf = value.split('\n');
37 for (var j in re_test) {
38 if (re_test[j].test(buf[i])) {
44 if (flag && buf[i].length > 0) {
50 - type: DISCARD_UNCHANGED
55 value: 'Система пакетов'
57 - uuid: 9a2fbf76b8f44d45b8a987c1997de212
58 expression: 'length(last(/AWNET Linux Template/aw.linux.apt.updatable))>2'
59 name: 'Появились обновления системы'
60 opdata: '{ITEM.VALUE}'
63 - uuid: 33c23ce59f3c49068057013b35ffb849
64 name: 'Ошибка в системном журнале'
65 key: 'aw.linux.journalctl[2]'
73 var buf = value.split('\n');
77 new RegExp('^-- Journal begins'),
78 new RegExp('^-- No entries --'),
79 new RegExp('[0-9]{2} [0-9:]{8} [a-zA-Z0-9._-]* sudo\[[0-9]*\]: '),
80 new RegExp('CONFIG: restrict nopeer ignored'),
81 new RegExp('statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error No such file or directory'),
82 new RegExp('error\: kex_exchange_identification\: Connection closed by remote host'),
83 new RegExp('error\: maximum authentication attempts exceeded for [^ ]* from [a-f0-9.:-]* port [0-9]+ ssh[0-9]*'),
84 new RegExp('error\: kex_exchange_identification\: client sent invalid protocol identifier "[^"]*"'),
85 new RegExp('error\: beginning MaxStartups throttling'),
86 new RegExp('error\: kex_exchange_identification\: read\: Connection reset by peer'),
87 new RegExp('fatal\: Timeout before authentication for [a-zA-Z.:0-9-]+ port [0-9]+'),
88 new RegExp('error\: kex_exchange_identification\: banner line contains invalid characters'),
89 new RegExp('error\: maximum authentication attempts exceeded for invalid user [a-zA-Z0-9_.-]+ from [0-9a-f:.]+ port [0-9]+ ssh[0-9]*'),
90 new RegExp('fatal\: userauth_pubkey\: parse request failed: incomplete message'),
91 new RegExp('sshd\[[0-9]*\]\: error\: Protocol major versions differ\: [0-9]+ vs\. [0-9]+'),
92 new RegExp('sshd\[[0-9]*\]\: fatal\: userauth_finish\: Broken pipe \\[preauth\\]'),
93 new RegExp('openvpn\[[0-9]*\]\: [0-9.:a-fA-F]* Connection reset, restarting \\[[0-9]\\]'),
94 new RegExp('/system\.journal\: Journal header limits reached or header out-of-date, rotating\.'),
95 new RegExp('sshd\[[0-9]+\]\: error\: kex protocol error\:'),
96 new RegExp('sshd\[[0-9]+\]\: error\: kex_protocol_error\:'),
102 for (var j in re_test) {
103 if (re_test[j].test(buf[i])) {
110 res += buf[i] + "\n";
115 - type: NOT_MATCHES_REGEX
118 error_handler: DISCARD_VALUE
121 value: 'Системный журнал'
123 - uuid: e8001f72a356424ea8e83abfd2a83c63
124 expression: 'nodata(/AWNET Linux Template/aw.linux.journalctl[2],5m)=0'
125 name: 'Ошибки в системном журнале'
126 opdata: '{ITEM.VALUE}'
128 - uuid: a7879de7638a4333993b90f0db757619
130 key: aw.linux.version
134 - type: DISCARD_UNCHANGED_HEARTBEAT