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

HP-UX proc.num matches only first 64 symbols of cmdline

XMLWordPrintable

    • Sprint 31, Sprint 32
    • 1

      HP-UX proc.num[,,,cmdline] matches only first 64 symbols of cmdline.

      hpux# ps -efx |grep test
      root 18482 18395 0 14:47:17 pts/1 0:00 vi ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789test
      zabbix# zabbix_get -s hpux-host -k proc.num[,,,test]
      0

      Proposing attached patch- matches up to 1024 symbols of cmdline.
      zabbix# zabbix_get -s hpux-host -k proc.num[,,,test]
      1

      Patch based on pstat(2) Example 14 on from Hp-UX manual https://docstore.mik.ua/manuals/hp-ux/en/B2355-60130/pstat.2.html

            wiper Andris Zeila
            andrws Andrius Umbrasas
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: