[ZBX-3942] Zabbix Agent Collector should not collect additional statistics using perfstat if system.stat item is not used Created: 2011 Jul 11  Updated: 2017 May 30  Resolved: 2011 Nov 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: 1.8.9, 2.0.0

Type: Incident report Priority: Minor
Reporter: dimir Assignee: dimir
Resolution: Fixed Votes: 0
Labels: aix
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

AIX 5.3 (with available perfstat API)


Issue Links:
Duplicate

 Description   

Zabbix Agent running on AIX platform (5.3 and above) is constantly collecting system information using perfstat API:

http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.prftools/doc/prftools/prftools07.htm

This results in Collector accessing Object Data Manager every second which results in ODM accessing files like CuAt. This can be seen when tracing collector's process system calls using command "truss -p <PID of collector>" (e. g. "truss -p 2756952"):

[...]
statx("/etc/objrepos/CuAt", 0x2FF20020, 76, 0) = 0
statx("/etc/objrepos/CuAt", 0x2FF20600, 76, 0) = 0
open("/etc/objrepos/CuAt", O_RDWR) Err#13 EACCES
open("/etc/objrepos/CuAt", O_RDONLY) = 5
shmat(5, 0x00000000, 6144) = 0x40000000
statx("/etc/objrepos/CuAt.vc", 0x2FF20510, 76, 0) = 0
open("/etc/objrepos/CuAt.vc", O_RDWR) Err#13 EACCES
open("/etc/objrepos/CuAt.vc", O_RDONLY) = 6
shmat(6, 0x00000000, 6144) = 0x50000000
shmdt(0x40000000) = 0
close(5) = 0
shmdt(0x50000000) = 0
close(6) = 0
[...]

In this case Collector is collecting additional system statistics that can be accessed using system.stat[resource,<type>] key. Collector should not collect this additional information unless that key is used.



 Comments   
Comment by dimir [ 2011 Jul 13 ]

Fixed in svn://svn.zabbix.com/branches/dev/ZBX-3942 .

Comment by richlv [ 2011 Aug 09 ]

who's reviewing this ?

Comment by dimir [ 2011 Aug 23 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3942 . Also successfully tested on AIX 5.3

Comment by dimir [ 2011 Oct 04 ]

Fixed in 1.8.9rc1 r22129, trunk r22130.

Comment by Oleksii Zagorskyi [ 2011 Nov 02 ]

Reopened for fix "Fix version"

Comment by Oleksii Zagorskyi [ 2011 Nov 02 ]

Closed again.

Generated at Sat Apr 20 02:50:04 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.