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

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.0.29, 4.0.16, 4.4.4
    • Agent (G)
    • Sprint 60 (Jan 2020)
    • 0.5

      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).
      root@:/ #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:

      root@:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[java,]"
      proc.num[java,]                               [u|2]
      root@:/ #/opt/zabbix/sbin/zabbix_agentd -t "proc.num[,,,server1]"
      proc.num[,,,server1]                          [u|2]
      root@:/ #/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:

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

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

              Created:
              Updated:
              Resolved: