[ZBX-1829] Zabbix agent reports wrog OS version under Windows 7 Created: 2010 Jan 26  Updated: 2017 May 30  Resolved: 2012 Jul 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 1.8
Fix Version/s: 2.0.3rc1, 2.1.0

Type: Incident report Priority: Minor
Reporter: Dubravko Sever Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows 7


Issue Links:
Duplicate
is duplicated by ZBX-5542 "system.uname" is returning incorrect... Closed
is duplicated by ZBX-5736 2.0.3 Agent is reporting W7 workstati... Closed

 Description   

Under Windows 7 Agent reports wrong OS version (it reports Windows 2008).
As I can see in Agent code it only checking dwMajorVersion which is the same for Windows 7 and Windows 2008.
I believe this would be of big help http://msdn.microsoft.com/en-us/library/ms724834(VS.85).aspx, but in extended structure.

Dubravko



 Comments   
Comment by Alexander Vladishev [ 2012 Jul 13 ]

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

Comment by dimir [ 2012 Jul 25 ]

(1) Agent compilation fails on Windows 2000 (in order to test it you would need the changes from ZBX-5103, available in svn://svn.zabbix.com/branches/dev/ZBX-1829-WITH-5103):

nmake -f Makefile_agent
[...]
cl.exe /nologo ..\..\..\src\libs\zbxsysinfo\common\system.c /Fo"..\..\..
\src\libs\zbxsysinfo\common\system.o" /I .\ /I ..\include /I ..\..\..\include /I
..\..\..\src\zabbix_agent /O2 /Ob1 /GF /FD /EHsc /MT /Gy /W3 /c /TC /D _WINDOWS
/D _WIN32_WINNT=0x0500 /D _CONSOLE /D UNICODE /D _UNICODE /D NDEBUG /D WIN32 /D
HAVE_WINLDAP_H /D HAVE_ASSERT_H /D ZABBIX_SERVICE /D WITH_AGENT_METRICS /D WITH
_COMMON_METRICS /D WITH_SPECIFIC_METRICS /D WITH_SIMPLE_METRICS /D "_VC80_UPGRAD
E=0x0600" /D HAVE_IPV6
system.c
..\..\..\src\libs\zbxsysinfo\common\system.c(151) : error C2065: 'VER_SUITE_WH_SERVER' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(193) : error C2065: 'PRODUCT_ULTIMATE' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(193) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(196) : error C2065: 'PRODUCT_PROFESSIONAL' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(196) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(199) : error C2065: 'PRODUCT_HOME_PREMIUM' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(199) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(202) : error C2065: 'PRODUCT_HOME_BASIC' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(202) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(205) : error C2065: 'PRODUCT_ENTERPRISE' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(205) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(208) : error C2065: 'PRODUCT_BUSINESS' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(208) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(211) : error C2065: 'PRODUCT_STARTER' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(211) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(214) : error C2065: 'PRODUCT_CLUSTER_SERVER' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(214) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(217) : error C2065: 'PRODUCT_DATACENTER_SERVER' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(217) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(220) : error C2065: 'PRODUCT_DATACENTER_SERVER_CORE' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(220) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(223) : error C2065: 'PRODUCT_ENTERPRISE_SERVER' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(223) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(224) : error C2065: 'PRODUCT_ENTERPRISE_SERVER_IA64' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(224) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(227) : error C2065: 'PRODUCT_ENTERPRISE_SERVER_CORE' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(227) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(230) : error C2065: 'PRODUCT_SMALLBUSINESS_SERVER' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(230) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(233) : error C2065: 'PRODUCT_SMALLBUSINESS_SERVER_PREMIUM' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(233) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(236) : error C2065: 'PRODUCT_STANDARD_SERVER' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(236) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(239) : error C2065: 'PRODUCT_STANDARD_SERVER_CORE' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(239) : error C2051: case expression not constant
..\..\..\src\libs\zbxsysinfo\common\system.c(242) : error C2065: 'PRODUCT_WEB_SERVER' : undeclared identifier
..\..\..\src\libs\zbxsysinfo\common\system.c(242) : error C2051: case expression not constant
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe"' : return code '0x2'
Stop.

<Sasha> RESOLVED in r29153

<dimir> CLOSED

Comment by dimir [ 2012 Jul 31 ]

Successfully tested.

Comment by Alexander Vladishev [ 2012 Jul 31 ]

Fixed in pre-2.0.3 r29233 and pre-2.1.0 (beta) r29234.

Generated at Thu Apr 25 13:13:39 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.