Cannot manually turn items "Not supported" since 7.0

XMLWordPrintable

    • S25-W34/35, S25-W36/37, S25-W42/43, S25-W44/45, S25-W46/47, S25-W48/49, S25-W50/51/52/01, S26-W04/05, S26-W06/07
    • 2

      Somewhere between 6.0 and 7.0.10 the treatment of special value "ZBX_NOTSUPPORTED" has changed. Previously it was possible to make an item "unsupported" by returning "ZBX_NOTSUPPORTED" in a custom script run by zabbix_agent2. Since 7.0.x this value is treated like any other regular data, which may lead to incidents such as misbehaving LLD scripts spawning lots of invalid items and triggers (a case which was always avoided by letting Zabbix know that it must not expect data in case of script errors).

      Steps to reproduce:

      1. Create a new Item with Type=Zabbix agent, Key=mytest;
      2. Define a new custom script in Zabbix agent 2 and restart it: UserParameter=mytest,/path/to/script.py
      3. In /path/to/script.py write to stdout like so:
        import sys
        sys.stdout.buffer.write(b"ZBX_NOTSUPPORTED\0My error message")

      Result:
      Item receives literal string value of "ZBX_NOTSUPPORTED" as if it was a normal value.
      When testing for value the item has a normal value of literal string "ZBX_NOTSUPPORTED".
      Expected:
      Item turns "unsupported" and an error message is displayed next to it in Latest Data.
      When testing for value the item is marked as "Not supported" and there is a non-empty error message.

        1. image-2026-01-26-18-11-03-825.png
          36 kB
          Glebs Mirosnikovs
        2. image-2026-01-26-18-11-41-196.png
          78 kB
          Glebs Mirosnikovs
        3. image-2026-01-26-18-17-27-979.png
          41 kB
          Glebs Mirosnikovs
        4. image-2026-01-27-11-04-52-225.png
          24 kB
          Glebs Mirosnikovs
        5. image-2026-01-27-11-09-07-908.png
          91 kB
          Glebs Mirosnikovs
        6. image-2026-01-27-11-09-33-886.png
          40 kB
          Glebs Mirosnikovs
        7. image-2026-01-27-11-17-37-936.png
          90 kB
          Glebs Mirosnikovs
        8. image-2026-01-27-11-18-03-307.png
          45 kB
          Glebs Mirosnikovs
        9. image-2026-01-27-11-33-21-811.png
          35 kB
          Glebs Mirosnikovs
        10. zabbix_borked_zbx_notsupported_1.png
          57 kB
          Alex Gonchiy
        11. zabbix_borked_zbx_notsupported_2.png
          58 kB
          Alex Gonchiy

            Assignee:
            Mikhail Korotkov
            Reporter:
            Alex Gonchiy
            Team A
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 36.5h
                36.5h