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

Log monitoring when log name changes everyday with current date like start.ddmmyy.log

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 2.0.12
    • API (A)
    • None
    • AIX

      I've created the item/trigger below to monitor the logs where the log rotates everyday. it works however, it check all the logs containing the 6 alphabetical characters and not the today's log with the current date. What would be proper item/trigger for the current date without writing and executing a script?

      /opt/local/logs/EcissInt1
      -rw-r--r--    1 ecissi1  midware   347833019 Jan 02 13:10 start.020115.log
      

      item:

      logrt["/opt/local/logs/EcissInt1/start.[0-9]{6}.log1","Bad connection","ISO-8859-1 from F",200]
      

      trigger:

      {berlin:logrt["/opt/local/logs/EcissInt1/start.[0-9]{6}.log","Bad connection","ISO-8859-1 from F",200].nodata(360)}=0
      

            Unassigned Unassigned
            mfarmana Masoud Farmanara
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: