ncc.zabbix_templates
5:18b7f3dbad87
Go to Latest
ncc.zabbix_templates/Linux.common/zbx_export_templates.yaml
* Увеличение времени на действие восстановления для проблемы с пакетами FreeBSD, слишком близко к времени проверки самого сенсора, могут быть ложно положительные восстановления.
3 date: '2023-10-15T21:41:25Z'
5 - uuid: 22941f4e01294888a9bed3aae15f6ef9
8 - uuid: d9ed1ecc0bc14cafb7fcbd309ad9a944
9 template: 'AWNET Linux Template'
10 name: 'AWNET Linux Template'
12 - name: Templates/AWNET
14 - uuid: 85da57ac953f48c5a1e08f74fb2b65d5
15 name: 'Пакеты к обновлению'
16 key: aw.linux.apt.updatable
24 var buf = value.split('\n');
36 for (var j in re_test) {
37 if (re_test[j].test(buf[i])) {
43 if (flag && buf[i].length > 0) {
49 - type: NOT_MATCHES_REGEX
52 error_handler: DISCARD_VALUE
55 value: 'Система пакетов'
57 - uuid: 9a2fbf76b8f44d45b8a987c1997de212
58 expression: 'nodata(/AWNET Linux Template/aw.linux.apt.updatable,30m)=0'
59 name: 'Появились обновления системы'
60 opdata: '{ITEM.VALUE}'
62 - uuid: 33c23ce59f3c49068057013b35ffb849
63 name: 'Ошибка в системном журнале'
64 key: 'aw.linux.journalctl[2]'
72 var buf = value.split('\n');
76 new RegExp('^-- Journal begins'),
77 new RegExp('^-- No entries --'),
78 new RegExp('[0-9]{2} [0-9:]{8} [a-zA-Z0-9._-]* sudo\[[0-9]*\]: '),
79 new RegExp('CONFIG: restrict nopeer ignored'),
80 new RegExp('statistics directory /var/log/ntpsec/ does not exist or is unwriteable, error No such file or directory'),
81 new RegExp('error\: kex_exchange_identification\: Connection closed by remote host'),
82 new RegExp('error\: maximum authentication attempts exceeded for [^ ]* from [a-f0-9.:-]* port [0-9]+ ssh[0-9]*'),
83 new RegExp('error\: kex_exchange_identification\: client sent invalid protocol identifier "[^"]*"'),
84 new RegExp('error\: beginning MaxStartups throttling'),
85 new RegExp('error\: kex_exchange_identification\: read\: Connection reset by peer'),
86 new RegExp('error\: kex_exchange_identification\: banner line contains invalid characters'),
87 new RegExp('error\: maximum authentication attempts exceeded for invalid user [a-zA-Z0-9_.-]+ from [0-9a-f:.]+ port [0-9]+ ssh[0-9]*'),
88 new RegExp('fatal\: userauth_pubkey\: parse request failed: incomplete message'),
89 new RegExp('sshd\[[0-9]*\]\: error\: Protocol major versions differ\: [0-9]+ vs\. [0-9]+'),
90 new RegExp('sshd\[[0-9]*\]\: fatal\: userauth_finish\: Broken pipe \\[preauth\\]'),
91 new RegExp('openvpn\[[0-9]*\]\: [0-9.:a-fA-F]* Connection reset, restarting \\[[0-9]\\]'),
92 new RegExp('/system\.journal\: Journal header limits reached or header out-of-date, rotating\.'),
98 for (var j in re_test) {
99 if (re_test[j].test(buf[i])) {
106 res += buf[i] + "\n";
111 - type: NOT_MATCHES_REGEX
114 error_handler: DISCARD_VALUE
117 value: 'Системный журнал'
119 - uuid: e8001f72a356424ea8e83abfd2a83c63
120 expression: 'nodata(/AWNET Linux Template/aw.linux.journalctl[2],5m)=0'
121 name: 'Ошибки в системном журнале'
122 opdata: '{ITEM.VALUE}'