Ad Widget

Collapse

zabbix-get on ARM target

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clahti
    Senior Member
    • Jan 2007
    • 126

    #1

    zabbix-get on ARM target

    Hello all:

    I have successfully compiled the zabbix agent for armV7 target, I had to hack the configure script to remove the "long long" check, this seemed to be the only cross-compiler problem I have. I installed the agentd and configured to talk to our zabbix server, and viola! I have the agent returning values as expected.

    Now the next step, I would like to use the zabbix_get to return some system values in a script, the following works on the arm target:

    /usr/bin/zabbix_get -s 127.0.0.1 -p 10050 -V
    Zabbix Get v1.8.13 (revision 27486) (11 May 2012)
    Compilation time: Jun 7 2012 11:45:58


    The following does not:
    /usr/bin/zabbix_get -s 172.0.0.1 -p 10050 -k agent.version


    Just a blank carriage return echoed to the console. If I run this command from the zabbix server however it works:

    /usr/bin/zabbix_get -s <ip removed> -p 10050 -k agent.version
    1.8.13


    Any ideas why the arm-compiled zabbix_get does not work for returning values from zabbix_agentd? Thanks!
    Last edited by clahti; 08-06-2012, 00:40. Reason: (SOLVED)
  • clahti
    Senior Member
    • Jan 2007
    • 126

    #2
    I solved the problem by editing the /etc/zabbix/zabbix_agentd.conf file

    changed Server from:

    Server=<zabbix-server-ip>

    to

    Server=127.0.0.1, <zabbix-server-ip>

    Now I can call the zabbix agent locally via:

    /usr/bin/zabbix_get -s 172.20.10.200 -I 127.0.0.1 -k agent.version
    1.8.13

    Cheers!

    Comment

    Working...