Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8662

implement monitor "log buffer" sources of data (dump of XX last log lines)

XMLWordPrintable

      Imagine that you have a source of information while gives you a XX-lines limited output buffer of last events. Let's call as a "buffer".

      Something like this emulated output (order as in this example):

      # tail -n 10 apcupsd.events | tac
      2022-10-30 20:41:03 +0200  apcupsd shutdown succeeded
      2022-10-30 20:41:03 +0200  apcupsd exiting, signal 15
      2022-10-30 20:40:32 +0200  Running on UPS batteries.
      2022-10-30 20:40:26 +0200  Power failure.
      2022-10-30 20:40:16 +0200  Power is back. UPS running on mains.
      2022-10-30 20:40:16 +0200  Mains returned. No longer on UPS batteries.
      2022-10-30 20:40:10 +0200  Running on UPS batteries.
      2022-10-30 20:40:04 +0200  Power failure.
      2022-10-30 20:34:50 +0200  Power is back. UPS running on mains.
      2022-10-30 20:34:45 +0200  Power failure.
      

      You can pool this buffer at your preferred interval, new lines arrive on top in the list, while previous events go down in the list.
      And you would like to monitor only new log lines, if compare with previous check of the buffer.

      How to achieve this in zabbix easily?
      Currently there no way to do so ...

      Would be nice to implement such item key or preprocessing rule or so.

            vso Vladislavs Sokurenko
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: