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

Improve doc regarding different data limits in zabbix

XMLWordPrintable

    • Sprint 27
    • 0

      From https://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew205
      "Zabbix agent user parameter output previously was limited to 64KB. It can now return up to 512KB of data."

      I believe it should be reflected also on https://www.zabbix.com/documentation/2.0/manual/config/items/userparameters

      Also, seems system.run[] key also has this limit -> should be reflected on https://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes/zabbix_agent
      A proof:

      # zabbix_get -s localhost -k agent.version
      2.0.7rc1
      # ./zabbix_agentd20 -V
      Zabbix Agent (daemon) v2.0.7rc1 (revision 35520) (22 April 2013)
      Compilation time: May  9 2013 11:26:28
      
      # ls -l /tmp/512*
      -rw-rw-r-- 1 zabbix zabbix 524287 May  9 11:56 /tmp/512K-1B.log
      -rw-rw-r-- 1 zabbix zabbix 524289 May  9 11:54 /tmp/512K+1B.log
      -rw-rw-r-- 1 zabbix zabbix 524288 May  9 11:54 /tmp/512K.log
      
      # zabbix_get -s localhost -k system.run["cat /tmp/512K-1B.log"] | wc -c
      524287
      # zabbix_get -s localhost -k system.run["cat /tmp/512K+1B.log"] | wc -c
      17
      # zabbix_get -s localhost -k system.run["cat /tmp/512K.log"] | wc -c
      17
      just in case:
      # zabbix_get -s localhost -k vfs.file.contents["/tmp/512K-1B.log"] | wc -c
      17
      

      17 bytes - it's "ZBX_NOTSUPPORTED" output:

      # zabbix_get -s localhost -k system.run["cat /tmp/512K+1B.log"]
      ZBX_NOTSUPPORTED
      
      UserParameter=filecat[*],cat $1
      
      # zabbix_get -s localhost -k filecat["/tmp/512K-1B.log"] | wc -c
      524287
      # zabbix_get -s localhost -k filecat["/tmp/512K+1B.log"] | wc -c
      17
      # zabbix_get -s localhost -k filecat["/tmp/512K.log"] | wc -c
      17
      

      Also some doc additions discussed in https://support.zabbix.com/browse/ZBX-5383#comment-80376

      Could someone add something more ?

            viktors.tjarve Viktors Tjarve
            zalex_ua Oleksii Zagorskyi
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: