Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2489

"system.uname" returns incorrect data on HP-UX 11.23

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.4.0
    • Agent (G)
    • HP-UX 11.23, IA+PA

      When querying a Zabbix 2.4.0 agent running on HP-UX 11.23 (precompiled download; both IA64 and PA-RISC) (from a 2.4.0 server on CentOS 6), the "system.uname" key returns incorrect data. On IA, the data seems to be merely truncated. On PA, random characters (usually X's and question marks in boxes) seem to be inserted, and they change on different queries, leading to many "Host information was changed on

      {HOST.NAME}

      " events. Screenshot of representative system information changes for a host attached.

      The 2.4.0 agent on 11.31 (IA, at least; I have no 11.31 on PA systems) works fine as it returns the same as "uname -a" does manually.

      Expected output from system.uname is the output of running "uname -a" manually.

      For example:
      ======= 8< =======
      [root@zserver ~]# zabbix_get -p 10050 -k agent.version -s pa01
      2.4.0
      [root@zserver ~]# zabbix_get -p 10050 -k system.uname -s pa01
      HP-UX ?X
      [root@zserver ~]# zabbix_get -p 10050 -k system.run["uname -a"] -s pa01
      HP-UX pa01 B.11.23 U 9000/800 2824699140 unlimited-user license
      [root@zserver ~]# # much later
      [root@zserver ~]# zabbix_get -p 10050 -k system.uname -s pa01
      HP-UX ?X ? @y`z
      [root@zserver ~]# # ^ that's the best one yet
      [root@zserver ~]# zabbix_get -p 10050 -k agent.version -s ia01
      2.4.0
      [root@zserver ~]# zabbix_get -p 10050 -k system.uname -s ia01
      HP-UX
      [root@zserver ~]# zabbix_get -p 10050 -k system.run["uname -a"] -s ia01
      HP-UX ia01 B.11.23 U ia64 4277387491 unlimited-user license
      ======= >8 =======

      Debug log output is as follows.
      On pa01:
      ======= 8< =======
      26869:20141002:095933.363 listener #1 [processing request]
      26869:20141002:095933.436 Requested [system.uname]
      26869:20141002:095933.436 Sending back [HP-UX ^Y?X ]

      1. ...
        26870:20141002:095937.298 listener #2 [processing request]
        26870:20141002:095937.360 Requested [system.run[uname -a]]
        26870:20141002:095937.360 Executing command 'uname -a'
        26870:20141002:095937.360 In zbx_popen() command:'uname -a'
        26870:20141002:095937.361 End of zbx_popen():7
        8166:20141002:095937.361 zbx_popen(): executing script
        26870:20141002:095937.375 In zbx_waitpid()
        26870:20141002:095937.375 zbx_waitpid() exited, status:0
        26870:20141002:095937.375 End of zbx_waitpid():8166
        26870:20141002:095937.375 EXECUTE_STR() command:'uname -a' len:66 cmd_result:'HP-UX pa01 B.11.2'
        26870:20141002:095937.375 Sending back [HP-UX pa01 B.11.23 U 9000/800 2824699140 unlimited-user license]
        ======= >8 =======

      In the output above, what is sent back by "system.uname" is "HP-UX " followed by a control+Y character, then a question mark in a box, then an X, then 4 spaces.

      On ia01:
      ======= 8< =======
      15231:20141002:100834.728 listener #3 [processing request]
      15231:20141002:100834.801 Requested [system.uname]
      15231:20141002:100834.801 Sending back [HP-UX ]

      1. ...
        15231:20141002:100836.401 listener #3 [processing request]
        15231:20141002:100836.481 Requested [system.run[uname -a]]
        15231:20141002:100836.481 Executing command 'uname -a'
        15231:20141002:100836.482 In zbx_popen() command:'uname -a'
        15231:20141002:100836.483 End of zbx_popen():7
        15233:20141002:100836.483 zbx_popen(): executing script
        15231:20141002:100836.495 In zbx_waitpid()
        15231:20141002:100836.495 zbx_waitpid() exited, status:0
        15231:20141002:100836.495 End of zbx_waitpid():15233
        15231:20141002:100836.495 EXECUTE_STR() command:'uname -a' len:62 cmd_result:'HP-UX ia01 B.11.2'
        15231:20141002:100836.495 Sending back [HP-UX ia01 B.11.23 U ia64 3546752985 unlimited-user lice
        nse]
        ======= >8 =======

            Unassigned Unassigned
            forbiddenlake Chris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: