[ZBX-12805] HP-UX proc.num matches only first 64 symbols of cmdline Created: 2017 Oct 02  Updated: 2022 Mar 25  Resolved: 2018 Apr 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 3.2.8, 3.4.2
Fix Version/s: 3.4.9rc1, 4.0.0alpha6, 4.0 (plan)

Type: Problem report Priority: Major
Reporter: Andrius Umbrasas Assignee: Andris Zeila
Resolution: Fixed Votes: 0
Labels: hp-ux, patch, proc.num
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

HP-UX 11.31


Attachments: Text File hpux procnum 1024.patch    
Issue Links:
Duplicate
Team: Team A
Sprint: Sprint 31, Sprint 32
Story Points: 1

 Description   

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



 Comments   
Comment by Andris Zeila [ 2018 Apr 09 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-12805

Comment by Andris Mednis [ 2018 Apr 17 ]

Successfully tested.

Comment by Andris Zeila [ 2018 Apr 18 ]

Released in:

  • pre-3.4.9rc1 r79835
  • pre-4.0.0alpha6 r79837
Generated at Fri Mar 29 11:11:42 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.