[ZBX-3281] metrics return zeroes if the collector is unable to gather information Created: 2010 Dec 11  Updated: 2017 May 30  Resolved: 2016 Jan 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8.4rc2
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Duplicate Votes: 1
Labels: agent
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-2203 Zabbix should provide detailed inform... Closed
is duplicated by ZBX-3572 iowait does not work with zabbix-agen... Closed

 Description   

For instance, on NetBSD the format of /proc/stat is slightly different than that on Linux. Namely, it has only one space after "cpu", while the Linux version has two spaces, and we check for two spaces. The agent is thus unable to gather CPU statistics for all processors combined and returns zeroes for system.cpu.util[all,XXX,avgX] metrics. While the CPU problem on NetBSD can be easily fixed, can we make the agent return "ZBX_NOTSUPPORTED" in cases the collector cannot gather information for some reason?



 Comments   
Comment by Aleksandrs Saveljevs [ 2010 Dec 11 ]

I have not checked, but maybe ZBX-2935 is a related issue?

Comment by Aleksandrs Saveljevs [ 2010 Dec 11 ]

The CPU problem on NetBSD fixed in the development branch for ZBX-3224 in r16003.

Comment by Aleksandrs Saveljevs [ 2010 Dec 14 ]

The fix for CPU problem on NetBSD merged into pre-1.8.4 in r16087.

Comment by Aleksandrs Saveljevs [ 2011 Mar 04 ]

Raising priority because investigating issues like ZBX-3572 is not trivial.

Comment by Alexander Vladishev [ 2011 May 11 ]

Partially fixed in the ZBX-3760 issue.

Comment by Aleksandrs Saveljevs [ 2011 Sep 28 ]

On Mac OS X, item system.cpu.util[] returns 0 for all supported metrics.

Comment by Viktors Tjarve [ 2016 Jan 06 ]

This issue was RESOLVED with ZBXNEXT-2203 r45688.

Generated at Thu Mar 28 21:26:54 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.