Have you tried to compile ZABBIX agent with AIX C compiler? It works on AIX 4.x and 5.0. I do not have available AIX 5.3, I cannot test it now.
Ad Widget
Collapse
Help needed : compilation on AIX 5.3 failed
Collapse
X
-
-
compiling with gcc
If you like to compile the agent with gcc you have to following commands:
./configure --enable-agent
make
cd src/zabbix_agent/
gcc -g -O2 -o zabbix_agent zabbix_agent.o ../libs/zbxsysinfo/aix.o ../libs/zbxsysinfo/common.o ../libs/zbxsysinfo/file.o ../libs/zbxsysinfo/ntp.o ../libs/zbxsysinfo/system.o ../libs/zbxsysinfo/http.o ../libs/zbxsysinfo/aix/cpu.o ../libs/zbxsysinfo/aix/diskio.o ../libs/zbxsysinfo/aix/diskspace.o ../libs/zbxsysinfo/aix/inodes.o ../libs/zbxsysinfo/aix/kernel.o ../libs/zbxsysinfo/aix/memory.o ../libs/zbxsysinfo/aix/net.o ../libs/zbxsysinfo/aix/proc.o ../libs/zbxsysinfo/aix/sensors.o ../libs/zbxsysinfo/aix/swap.o ../libs/zbxsysinfo/aix/uptime.o ../libs/zbxlog/libzbxlog.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcommon/libzbxcommon.a
make
gcc -g -O2 -o zabbix_agentd active.o cpustat.o diskdevices.o interfaces.o logfiles.o stats.o zabbix_agentd.o ../libs/zbxsysinfo/aix.o ../libs/zbxsysinfo/common.o ../libs/zbxsysinfo/file.o ../libs/zbxsysinfo/ntp.o ../libs/zbxsysinfo/system.o ../libs/zbxsysinfo/http.o ../libs/zbxsysinfo/aix/cpu.o ../libs/zbxsysinfo/aix/diskio.o ../libs/zbxsysinfo/aix/diskspace.o ../libs/zbxsysinfo/aix/inodes.o ../libs/zbxsysinfo/aix/kernel.o ../libs/zbxsysinfo/aix/memory.o ../libs/zbxsysinfo/aix/net.o ../libs/zbxsysinfo/aix/proc.o ../libs/zbxsysinfo/aix/sensors.o ../libs/zbxsysinfo/aix/swap.o ../libs/zbxsysinfo/aix/uptime.o ../libs/zbxlog/libzbxlog.a ../libs/zbxcrypto/libzbxcrypto.a ../libs/zbxpid/libzbxpid.a ../libs/zbxnet/libzbxnet.a ../libs/zbxconf/libzbxconf.a ../libs/zbxcommon/libzbxcommon.a
cd ../..
make
make install
For the server you have to find out by your self which librarys you need!
This error came into the code with the new autoconf, I think it was 1beata10.
Have funComment
-
use UserParameters
You can use Userparameters to get the missing values:
# cpu load
UserParameter=usr.cpu,uptime |cut -d, -f5
# diskio
UserParameter=usr.io.disk_r,iostat | grep hdisk | awk '{sum += $ 5} END {print sum}'
UserParameter=usr.io.disk_w,iostat | grep hdisk | awk '{sum += $ 6} END {print sum}'
# net load
UserParameter=usr.net.in[*],netstat -v $1 | grep Bytes | awk '{printf("%d", $ 4%2^24)}'
UserParameter=usr.net.out[*],netstat -v $1 | grep Bytes | awk '{printf("%d", $ 2%2^24)}'
# pagings
UserParameter=usr.paging[*],lsps -s $1 | grep % | awk '{printf("%d",$ 2)}'
UserParameter=usr.paging.total,svmon|grep 'pg space'|awk '{printf "%.0f\n",$3*4}'
UserParameter=usr.paging.used,svmon|grep 'pg space'|awk '{printf "%.0f\n",$4*4}'
UserParameter=usr.paging.free,svmon|grep 'pg space'|awk '{printf "%.0f\n",($3 - $4)*4}'
# proc count
UserParameter=usr.proc.cnt[*],ps -eaf |grep -v grep|grep -c $1
#cups
UserParameter=usr.cups.cnt[*],/usr/local/bin/lpstat -P $1 |wc -lComment
-
Impossible to compile Zabbix server on AIX 5.2
Hi Zabbix-users,
despite all your advice, I only managed to compile Zabbix agent on my AIX 5.2 server. This has been made with gcc.
So I try to compile the server part, an error appears with the "make" command :
I decided to install XLC (IBM C compiler for AIX), but still the same error.....Code:..... ..... Making all in zbxsms source='sms.c' object='sms.o' libtool=no DEPDIR=.deps depmode=aix /bin/sh ./../../depcomp xlc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -c sms.c "sms.c", line 116.40: 1506-045 (S) Undeclared identifier CRTSCTS. make: The error code from the last command is 1. Stop.
Please help me !Comment
-
Unable to compile on AIX5.3
I'm trying to install Zabbix 1.1 agent onto my AIX 5.3ML3 system, and I've tried installing XLC and I continue to get the same make error as everyone else:
conf.a ../libs/zbxcommon/libzbxcommon.a -lnsl
collect2: ../libs/zbxsysinfo/libzbxsysinfo.a: not a COFF file
make: 1254-004 The error code from the last command is 1.
Do I need to tell it to look for xlc rather then gcc or will it do that automatically?Comment
-
zabbix user on AIX
Hi,
I have my zabbix user setup thus ... "uid=901(zabbix) gid=1(staff)". Anyone have any different, is there anything in particular people have found that needs to be added/done to the zabbix user to make it work better ?? I seem to be getting data ok.
the only other thing that i think i will need to do is to add it to the oracle groups so it gain access to the DB's for monitoring.
ta
HComment
-
ZABBIX Agent on AIX 5L
Guys!
I had the same COF file problem in my AIX 5.3 on power, I give up to compile and to solve my problem, I used an AIX 5.1 compiled agent (http://www.zabbix.com/download2.php)
Extract the files zabbix_agent zabbix_agentd zabbix_sender to a folder as you wish
Configure the zabbix_agentd.conf and start the zabbix_agentd
Flex.limaComment
-
Comment