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

Macros in the notifications are calculated incorrectly for fast incoming data. It is mainly about processing log, eventlog, trap.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Critical Critical
    • 1.9.0 (alpha)
    • 1.8.2
    • Server (S)
    • None
    • last trunk

      Sorry that it was sending in Russian, because if I translate it into English - I will go mad

      ??????? ? ???????????? ??????????? ??????????? ??? ?????? ??????????? ??????. ???? ???? ??????????????? ? ????????? ?????, ????????, ??????.
      ???????? ??? ?? ???????, ?????? ??? ???? ? ???????? ??? ?? ?????????? - ? ????? ? ???

      ??? ???????, ??? ??? ????????? ??????????? ??? ????????? ?????, ???????? ??????? ??? ?? ????? ??????? ??????? Zabbix. ? ???? ????? ??? ???? ??????????? ???????? ? ??? ??????? ??? ????????? ? ??? ?????? ?????????????.

      ???? ???????? ???????? ?? ??, ??? ?????? ? ?????? ??????? ??? ????, ???????, ????? ??????????? ?????????? ?? ?????? ???????????? ???????? ??????? ?????????? ???????? ??????.

      ??????? ????? ??? ?????? ??? ????????? ?? ????????, ????? ? ????? ????? ????????? ? ?????? ?????????????? ? ???????? ?? ?????? ??????? ?? ?????????? ???? ?? ??????? ??????? ?? ???? ??????? ??? ??????? ???????? ??????!!!

      ?????? ?? ?????? Zabbix ??? ????????? ?????????? ??????? ? ???? ??????? (??? ??????? ?????? ?????? ???? ? ???????? 1-4 ??????) ? ???? ???????????.

      ???????? ?????? - ????????? ??????? ??????? Windows.

      ??? ????????????:
      Host: it2
      Item Description: It_Test_log
      Type: Zabbix agent (active)
      Key: eventlog[Test]
      Type of information: Log
      Update interval (in sec): 30

      Trigger Name: Tr_Test_error
      Trigger Expression:

      {it2:eventlog[Test].logseverity(0)}

      >1
      Event generation: Normal+Multiple PROBLEM events
      Severity: High

      Action Default subject:
      DEBUG

      {HOSTNAME}

      :

      {STATUS}

      |

      {ITEM.NAME}

      | EVENT.ID:

      {EVENT.ID}

      | Server timestamp =

      {DATE}

      {TIME}

      | TRIGGER.NAME:

      {TRIGGER.NAME}

      Action Default message:
      ***************************************************
      ITEM.VALUE1:

      {ITEM.VALUE1}

      ITEM.LASTVALUE1:

      {ITEM.LASTVALUE1}

      ITEM.LOG.EVENTID1:

      {ITEM.LOG.EVENTID1}

      ***************************************************

      ??????? ?? ??????? ?? ?????? ??????? ?? ???????? 1.
      ??????? ?? ?????? ????????????? ? ????????? 2 ???????, ?? ????? ?????????? ?? ???? ????? ??????, ? ?????? ????? ?????????? ??????.
      ???? ???? ???????? ????? "Update interval" ? ???????? "BufferSend" ? ???????????? ?????? ????????? ?? 1 ???????, ??? ??? ????? ?? ?????? ???? ???????. ??????? ??????? ????.

      ??? ? ?????????? ???????????? ??????????? - ????? ? ???????? ??????? - ?? ???????? 2.

      ???????????? ? ???????? ????? ?????????? ???????? ??? ???????? ???????? ????????? ? ??? ??????? ????? ???????? (???????? ?????????) ????? ???? ??????.
      ???????? ? ??? ??? ? Function: process_event ???????? ?????????, ?????? !!! ????? ????? ??????????? ??????? ? ????????? ????????, ??????? ???????????? ??? ?????????? ???????? ? ????????????.

      ?? ???-??:
      Query [txnlev:1] [insert into events (eventid,source,object,objectid,clock,value) values (302790,0,0,13613,1280163118,1)]
      ????? ??? ???????? ??????????? ?????? ???????? "clock" - ????? ????????? ? ???????? ??????? ??????? Zabbix.

      ? ????? ? ???? ????????? - ??? ?????? ? ??????, ?????????, ??????? ????? ?????? ????????????, ??? ??? ????? ????? ?????????? ????????? ?????? ?????? ??????? ?? ???? ??????? ? ??? ?? ????? ????????? ????????????.

      ? ?? ???? ??? ???? ????????????? ???????????? ??????? "source" ? "object" ? ??????? "events", ?? ??? ??????? ?? ????? ???? ?? ???????????? ??? ??????? ????????? ???? ????????. ???????? ???????? ? ??????? "source" ???????? "id" ?? ?????? "history_log" ? "history_text". ? ????????? ?????? ??????? "history_log" ?"history_text" ??? ????? ?????????? ???? "id", ?? ? ?????, ????? ??????????? ??????????????? ????????? ?????????? ???????? ??? ????? ?????????? "Log" ? "Text", ???? ???? ?? ???????? ?????????? ???????? ??? ???? ????? ??????????.
      ???? ???????????? ??????? "source" ?????? ?? ???????????? ?????? - ????? ????? ??????? ??????

      ?????? ?? ????????:

      {ITEM.LASTVALUE<1-9>} ?????????? ??????? Function: DBget_item_lastvalue_by_triggerid
      ??????? ??? ??? ??? ?? ??????????? ?? ????????, ????? ???? ?????? ?? ?????????????.
      {ITEM.VALUE<1-9>} ?????????? ??????? Function: DBget_item_value_by_triggerid
      ??? ??????? ? SQL-??????? ????????????? ?????????? ???? "clock", ?? ??? ? ?????? ???? ??? ?? ??????? ?? ???????, ???? ??????? ??????? ???????????? ? ???????? ????? ???????!!!
      ??????????; ? ???????? ???? ???????? ??????? ???????? ?????? - "retrieve item lastvalue by triggerid"
      ????? ?? ???????? ???????????? http://www.zabbix.com/documentation/1.8/manual/config/macros ? ???????? ??????? {ITEM.VALUE<1-9>} ????? latest ???????? ??????. ?? ? ????? ????? ????????? ??? ???? ???????????? ?????? ???? ??????.
      ? ??? ??????? ??? ???????????? ?????? copy->paste ????????? ???.

      ????? ???? ??? ??? ??? ??????? ???????? ??? ??????? ????? ??? ???????? ????? ? ??????? ????? ?? "clock" ? ????? ???? "source" ??? ? ????????? ????? ?????? ???.

      ??????? {ITEM.LOG.XXXXXXXXXXXXX<1-9>} ?????????? Function: DBget_history_log_value_by_triggerid
      ??? ?? ???????? ?????????? ?????? ?? ?????? {ITEM.LASTVALUE<1-9>}

      - ??????? ? ??? "????????" ???? ??? ?

      {ITEM.VALUE<1-9>}, ?????? ??? ??? ???? ?????? SQL-?????? ?????? ?? "itemid" ? ???? ?? ?????????? "clock".

      ? ?????????? ?????? !!! ????? ????????? ????? ??? ? ????????? ?????? {ITEM.VALUE<1-9>}

      ????? ???? ???????? ?? ??????????? ???????, ?

      {ITEM.LOG.SOURCE<1-9>}

      ?? ?????????? ??? ?????????? (? ???????? 1-4 ????), ?? ???? ??? ?? ??????????? ????????? "process_escalations" ? ?? ?????????????? ????????? (???????? ????????).

      ????? ???????? 1-4 ?????? ? ???? ????? ??????? ???????? ?? ???? ??????? ??????????? ? ?????? ?????????? ?????? Zabbix ???????? + ????????? ??????????"process_escalations" ??? 5+3=8 ??????, ? ? ??????? 4 ???????. ??? ????????? ????????? - ??? ???????. ? ????? ???????? ????? ????? ??? ???????????, ?? ??? ???????? ???????????? ?? ????.
      ?? ???? ???????????? ?????? ? ??? ?????? Zabbix ?????? ??? ??????? ? ????? ???????? ?? Windows ?????????? ????? ??????? ? ???????? ????????? ???????? ??????.

      ??????, ???????

      {ITEM.LOG.XXXXXXXXXXXXX<1-9>}

      ????? ???????? ????? ????? ??? ? ??????

      {ITEM.VALUE<1-9>}

      ? ????? ? ?????? ???? ?????????? ????????? ??? ???????????? ?????????? ???????????? ?? ?????? ????????? ???????? ??????? ???? ?? ???????? ?????????? ?? ????????? ?????. ???? ?? ???????? ??????? ??? ??? ? ?????? 2.0 ? ????? ??? ????? ??????? ??????? ?????? ????? ? ?????? ????????? ?????? 2.0. ???? ?? ??? ????????? ??? ????????? ??? ??????? ??????????? ? Windows ?????????, ????? ??? ????? ?????? ????????

      ?????? ??? ??????? ??? ??? ? ??????: "value mappings" ??? ???????

      {ITEM.LASTVALUE<1-9>} ??????????????, ? ??? {ITEM.LASTVALUE<1-9>}

      ?? ?????????????? - ??? ?? ?? ?????????????. ????? ????? ??????? ????????????? ? ??????????? ??????.

      ???.

            Unassigned Unassigned
            zalex_ua Oleksii Zagorskyi
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: