Ad Widget

Collapse

Zabbix Agent for Max OS X

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • forero
    Junior Member
    • Sep 2007
    • 2

    #1

    Zabbix Agent for Max OS X

    Is there a pre-compiled version of Zabbix-Agent for Mac OS X 10.4.x? Or is there more specific compile instructions. I tried compiling it and got the following error:

    Code:
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include    -I../../../../src/zabbix_agent/ -g -O2  -MT libspecsysinfo_a-cpu.o -MD -MP -MF ".deps/libspecsysinfo_a-cpu.Tpo" -c -o libspecsysinfo_a-cpu.o `test -f 'cpu.c' || echo './'`cpu.c; \
    then mv -f ".deps/libspecsysinfo_a-cpu.Tpo" ".deps/libspecsysinfo_a-cpu.Po"; else rm -f ".deps/libspecsysinfo_a-cpu.Tpo"; exit 1; fi
    cpu.c: In function 'SYSTEM_CPU_UTIL':
    cpu.c:50: error: parse error before '}' token
    make[4]: *** [libspecsysinfo_a-cpu.o] Error 1
    make[3]: *** [all-recursive] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all-recursive] Error 1
    Pertinent information might be: OS X 10.4.10 and Zabbix 1.4.2.

    Thanks for any insight.

    David
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Thanks for the report. The problem was registered as ZBX-73 for your future reference.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      The problem actually was already fixed. Patch:

      Code:
      Index: src/libs/zbxsysinfo/osx/cpu.c
      ===================================================================
      --- src/libs/zbxsysinfo/osx/cpu.c	   (revision 4633)
      +++ src/libs/zbxsysinfo/osx/cpu.c	   (revision 4856)
      @@ -46,7 +46,7 @@
      
      		 if(get_param(param, 1, cpuname, sizeof(cpuname)) != 0)
      		 {
      -				cpuname[0] == '\0'
      +				cpuname[0] = '\0';
      		 }
      
      		if(cpuname[0] == '\0')
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...