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

AIX procfs parsing is reading truncated information about cmdline

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.0.29, 4.0.16, 4.4.4
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Team:
      Team A
    • Sprint:
      Sprint 60 (Jan 2020)
    • Story Points:
      0.5

      Description

      Steps to reproduce:

      • AIX 7.1
      • Zabbix Agent 3.0
      • Try to get proc.num by command line argument: <some_hidden_search_string> (replaced for security reason).
      [email protected]:/ #ps -ef | grep -i "config <some_hidden_search_string>> <some_hidden_search_string>> server1"
          root 19660970  7930084   0 17:35:53  pts/0  0:00 grep -i config <some_hidden_search_string>> <some_hidden_search_string>> server1
       wasuser 21430484        1   3   Nov 01      - 7260:50 /usr/IBM/WebSphere/AppServer/java_1.7.1_64/bin/java -Declipse.security -Dwas.status.socket=58511 ... 3500+ chars.
      

      Result:

      [email protected]:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[java,]"
      proc.num[java,]                               [u|2]
      [email protected]:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[,,,server1]"
      proc.num[,,,server1]                          [u|2]
      [email protected]:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[,,,<some_hidden_search_string>]"
      proc.num[,,,<some_hidden_search_string>]          [u|1]
      

      String length is about 3374 symbols, only "server1" pattern is found at 234 position.

      Expected:

      [email protected]:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[,,,<some_hidden_search_string>]"
      proc.num[,,,<some_hidden_search_string>]          [u|2]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              viktors.tjarve Viktors Tjarve
              Reporter:
              edgar.akhmetshin Edgar Akhmetshin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: