Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-8646

logrt does not distinguish between missing files and incorrect permissions

XMLWordPrintable

      Hi,
      logrt will not match with a regexp.

      with this example:

      logrt["{$PGLOGDIR}/postgresql-.*\.log","PANIC|FATAL|ERROR|[Ee]rror"]
      

      i get this in error in zabbix-agent logfile:

      87681:20140821:142054.145 there are no files matching 'postgresql-.*\.log' in '/var/log/pg_log/'
      

      the path ist ok, also the access rights:

      [root@zabbix-m01 /var/log/pg_log]# ls
      total 5
      -rw-r--r--  1 pgsql  pgsql  265 Aug 21 13:55 postgresql-2014-08-21_135543.log
      

      the regexp self is ok, testet with:
      http://www.myregextester.com/index.php

      any help here ?

            martins-v Martins Valkovskis
            stefans Stefan Sabolowitsch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: