[ZBX-4801] proc.num[zabbix_server_mysql] always return 0 Created: 2012 Mar 26  Updated: 2017 May 30  Resolved: 2012 Mar 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8.11
Fix Version/s: 1.8.12rc1, 2.0.0rc3

Type: Incident report Priority: Trivial
Reporter: Serg Klever Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix Agent (daemon) v1.8.11 (revision 26205) (20 March 2012)
CentOS 5.8


Issue Links:
Duplicate

 Description   

[root@zabbix sbin]# zabbix_get -s localhost -k proc.num[zabbix_server_mysql]
0
[root@zabbix sbin]# zabbix_agentd -V
Zabbix Agent (daemon) v1.8.11 (revision 26205) (20 March 2012)
Compilation time: Mar 26 2012 04:14:38

[root@zabbix sbin]# ps ax | grep -c zabbix_server_mysql
29

I stopped new agent and replaced zabbix_agentd with old binary and started old agent:

[root@zabbix sbin]# zabbix_agentd -V
Zabbix Agent (daemon) v1.8.10 (revision 24303) (28 December 2011)
Compilation time: Dec 29 2011 06:15:20

[root@zabbix sbin]# zabbix_get -s localhost -k proc.num[zabbix_server_mysql]
27



 Comments   
Comment by Serg Klever [ 2012 Mar 26 ]

with agent 1.8.10 and 1.8.11

[root@zabbix sbin]# zabbix_get -s localhost -k proc.num[httpd]
18

Comment by Alexander Vladishev [ 2012 Mar 26 ]

Thank you for your report!

I confirm. Names of processes more than 15 characters are processed not correctly.

Comment by Alexander Vladishev [ 2012 Mar 26 ]

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

Comment by dimir [ 2012 Mar 27 ]

Successfully tested! Please review my changes in r26431 (feel free to discard the function name change).

<Sasha> Great!

Comment by Alexander Vladishev [ 2012 Mar 28 ]

Fixed in versions pre-1.8.12 r26444 and pre-2.0.0 r26446

Generated at Sat Apr 27 02:25:43 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.