[ZBX-3690] key system.uptime doesn't work on Mac OSX 10.5 Leopard Created: 2011 Apr 04  Updated: 2017 May 30  Resolved: 2012 Sep 06

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

Type: Incident report Priority: Minor
Reporter: Nicola Canepa Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: agent, macosx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Zabbix server on Linux (CentOS 5.5)



 Description   

Zabbix_agentd 1.6.8 or 1.8.4rc2 on Tiger (Mac OSX 10.4) Intel or PPC works correctly
Zabbix_agentd 1.8.3 Leopard (Mac OSX 10.5) Intel, replies ZBX_NOTSUPPORTED to system.uptime queries



 Comments   
Comment by richlv [ 2011 Apr 04 ]

can you try with 1.6.8 on 10.5 and 1.8.3 on 10.4, just to get some more datapoints ?

Comment by Nicola Canepa [ 2011 Apr 04 ]

Trying to compile 1.6.8 under Leopard, but make install fails with the following error:
Making install in zabbix_agent
gcc-4.2 -DHAVE_CONFIG_H -I. -I../../include -g -O2 -MT cpustat.o -MD -MP -MF .deps/cpustat.Tpo -c -o cpustat.o cpustat.c
cpustat.c: In function 'get_cpustat':
cpustat.c:206: error: 'CPUSTATES' undeclared (first use in this function)
cpustat.c:206: error: (Each undeclared identifier is reported only once
cpustat.c:206: error: for each function it appears in.)
cpustat.c:301: error: 'CP_USER' undeclared (first use in this function)
cpustat.c:302: error: 'CP_NICE' undeclared (first use in this function)
cpustat.c:303: error: 'CP_SYS' undeclared (first use in this function)
cpustat.c:304: error: 'CP_INTR' undeclared (first use in this function)
cpustat.c:305: error: 'CP_IDLE' undeclared (first use in this function)
make[2]: *** [cpustat.o] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

I tried both gcc 4.0 (default) and 4.2

Comment by Nicola Canepa [ 2011 Apr 06 ]

I have a Tiger PPC, with agent version 1.8.4rc1 which works correctly (I don't have a Tiger/PPC machine to compile version 1.8.3 now)

Comment by Alexei Vladishev [ 2012 Sep 06 ]

I believe the latest 1.8.x do support system.uptime under Leopard.

Comment by richlv [ 2012 Sep 06 ]

reopen to set resolution (without version though, as that doesn't seem to be known at this time)

Generated at Sun Apr 27 09:15:37 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.