Ad Widget

Collapse

unreachable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • windly
    Junior Member
    • Aug 2005
    • 6

    #1

    unreachable

    I have set up server and a client successfully on sun machine. Now,I want to monitor a client so I tried to install zabbix client on linux enviroment. First time, the machine did not allow me to do "make" . I found a message on the web it says that I need to change snpritf.c. I changed that file. The machine allowed to do "make" I copied everything to the correct directory. but the host is unreachable. Could you help out? Thanks.
    The make message:
    make[1]: Entering directory `/home/zabbix-1.0/src/zabbix_agent'
    gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall -lnsl
    sysinfo.c: In function `process':
    sysinfo.c:430: warning: cast from pointer to integer of different size
    gcc -o ../../bin/zabbix_agentd -g -O2 -I../../include zabbix_agentd.c sysinfo.c stats.c interfaces.c diskdevices.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c -Wall -lnsl
    sysinfo.c: In function `process':
    sysinfo.c:430: warning: cast from pointer to integer of different size
    make[1]: Leaving directory `/home/zabbix-1.0/src/zabbix_agent'
    Making all in src/zabbix_sender
    make[1]: Entering directory `/home/zabbix-1.0/src/zabbix_sender'
    gcc -o ../../bin/zabbix_sender -g -O2 -I../../include ../../include/snprintf.c zabbix_sender.c -lnsl
    make[1]: Leaving directory `/home/zabbix-1.0/src/zabbix_sender'

    The log file:
    zabbix_agentd 10832 started
    One child process died. Exiting ...
    Got signal. Exiting ...
    Last edited by windly; 08-08-2005, 15:50.
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    There are a couple of possible issues that I have seen do this;

    1. You have an error in your zabbix_agentd.conf file.
    2. You do not have a zabbix user and a zabbix group defined in your /etc/passwd and /etc/group files.


    The most common cause I have seen for #1 above is not putting the local host name into the configuration file. The conf file needs a line like the following;
    Code:
    Hostname=<Monitored Hosts Fully Qualified Domain Name>
    Unofficial Zabbix Developer

    Comment

    • windly
      Junior Member
      • Aug 2005
      • 6

      #3
      Thanks.

      I changed zabbix_agentd.conf file "server= my server IP"
      I do have usr and group defined in my /etc/passwd and /etc/group files.
      ./configure --prefix=/opt/zabbix
      The "make" message :
      make[1]: Entering directory `/home/zabbix/zabbix-1.0/src/zabbix_agent'
      gcc -o ../../bin/zabbix_agent -g -O2 -I../../include zabbix_agent.c sysinfo.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/snprintf.c -Wall -lnsl
      sysinfo.c: In function `process':
      sysinfo.c:430: warning: cast from pointer to integer of different size
      gcc -o ../../bin/zabbix_agentd -g -O2 -I../../include zabbix_agentd.c sysinfo.c stats.c interfaces.c diskdevices.c ../../include/log.c ../../include/cfg.c ../../include/security.c ../../include/pid.c ../../include/snprintf.c -Wall -lnsl
      sysinfo.c: In function `process':
      sysinfo.c:430: warning: cast from pointer to integer of different size
      make[1]: Leaving directory `/home/zabbix/zabbix-1.0/src/zabbix_agent'
      Making all in src/zabbix_sender
      make[1]: Entering directory `/home/zabbix/zabbix-1.0/src/zabbix_sender'
      gcc -o ../../bin/zabbix_sender -g -O2 -I../../include ../../include/snprintf.c zabbix_sender.c -lnsl
      make[1]: Leaving directory `/home/zabbix/zabbix-1.0/src/zabbix_sender'

      more from log file:
      Got line:cksum[/usr/bin/ssh]
      One child process died. Exiting ...


      unreable
      Last edited by windly; 05-08-2005, 21:32.

      Comment

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

        #4
        Disable monitoring of cksum[] as a workaround. This is known issue, the agent may crash while evaluating cksum[] on 64 bit platforms. It is already fixed in 1.1 alphas.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...