PDA

View Full Version : unreachable


windly
04-08-2005, 21:08
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 ...

James Wells
05-08-2005, 02:02
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;
Hostname=<Monitored Hosts Fully Qualified Domain Name>

windly
05-08-2005, 17:17
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 :(

Alexei
07-08-2005, 09:15
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.