ncc.zabbix_templates

Yohn Y. 2023-10-15 Parent:b3200e873064 Child:c32e5a8819d5

3:b732d30fbd2a Browse Files

* Исправляем не работающий мониторинг логов ошибок

FreeBSD.common/res/newsyslogd_config/warnmsg.conf FreeBSD.common/zbx_export_templates.yaml

     1.1 --- a/FreeBSD.common/res/newsyslogd_config/warnmsg.conf	Fri Oct 13 22:46:09 2023 +0300
     1.2 +++ b/FreeBSD.common/res/newsyslogd_config/warnmsg.conf	Sun Oct 15 23:20:17 2023 +0300
     1.3 @@ -1,1 +1,1 @@
     1.4 -/var/log/warning_msg.log        640  3     1000    *   JC
     1.5 +/var/log/warning_msg.log        644  3     1000    *   JC
     2.1 --- a/FreeBSD.common/zbx_export_templates.yaml	Fri Oct 13 22:46:09 2023 +0300
     2.2 +++ b/FreeBSD.common/zbx_export_templates.yaml	Sun Oct 15 23:20:17 2023 +0300
     2.3 @@ -1,6 +1,6 @@
     2.4  zabbix_export:
     2.5    version: '6.0'
     2.6 -  date: '2023-09-30T19:25:24Z'
     2.7 +  date: '2023-10-15T20:18:04Z'
     2.8    groups:
     2.9      - uuid: 22941f4e01294888a9bed3aae15f6ef9
    2.10        name: Templates/AWNET
    2.11 @@ -39,7 +39,7 @@
    2.12          - uuid: 21140a98f99b4eadb62a632adc76fcf0
    2.13            name: 'Ошибки в системном журнале'
    2.14            type: ZABBIX_ACTIVE
    2.15 -          key: 'logrt["/var/log/warning_msg\.log","@FreeBSD syslog file warning filter",uft-8]'
    2.16 +          key: 'logrt["/var/log/warning_msg\.log$","@FreeBSD syslog file warning filter",uft-8]'
    2.17            trends: '0'
    2.18            value_type: LOG
    2.19            tags:
    2.20 @@ -47,7 +47,7 @@
    2.21                value: 'Системный журнал'
    2.22            triggers:
    2.23              - uuid: a9049f62969a465ca9e7dcaa5de8a988
    2.24 -              expression: 'nodata(/AWNET FreeBSD Template/logrt["/var/log/warning_msg\.log","@FreeBSD syslog file warning filter",uft-8],2m)=0'
    2.25 +              expression: 'nodata(/AWNET FreeBSD Template/logrt["/var/log/warning_msg\.log$","@FreeBSD syslog file warning filter",uft-8],2m)=0'
    2.26                name: 'Ошибки в системном журнале'
    2.27                opdata: '{ITEM.VALUE}'
    2.28                priority: WARNING