助けてください

皆さん

お世話になります。

AIX5.2の上、ZabbixのAgentを入れたいですが、
手順を教えて頂けますでしょうか。

コメント表示オプション

お好みのコメント表示方法を選び「設定の保存」をクリックすると変更が反映されます。

補足:
AIX5.2はインターネット接続できない環境にあります。

ユーザー TNK の写真

現時点では、以下のURLの「コンパイル済みZabbixエージェント」
に、AIX 5.2用はもう無いようです。

 ダウンロードページ
   http://www.zabbix.com/jp/download

利用されたいZabbixのバージョンがわかりませんが、ソースからご
自身でコンパイルして実行ファイルを作成するか、Zabbix LLCのパ
ートナー経由でサポート契約を行って、そのサポートの窓口から取
得するかになると思います。

サポート契約をしてAIX 5.2用のエージェントが入手できるかは確認
していないので、サポート契約をしていないのであれば、事前に確
認してからサポート契約をするようにしてください。

TNK様

新年おめでとうございます。

ご返答いただき有難うございました。

Zabbix Sourcesから次のバージョンを試してみました。
Zabbix 3.2
Zabbix 2.2 LTS
http://www.zabbix.com/download

Complieまでうまくできましたが、Make install を実行すると、
エラーが発生しました。
vmstats.o -MD -MP -MF .deps/zabbix_agent-vmstats.Tpo -c -o zabbix_agent-vmstats.o `test -f 'vmstats.c' || echo './'`vmstats.c
vmstats.c: In function 'update_vmstat':
vmstats.c:86: error: 'perfstat_partition_total_t' undeclared (first use in this function)
vmstats.c:86: error: (Each undeclared identifier is reported only once
vmstats.c:86: error: for each function it appears in.)
vmstats.c:86: error: parse error before 'lparstats'
vmstats.c:98: error: 'lparstats' undeclared (first use in this function)
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 1.
ヒントがあれば頂きたいです。
よろしくお願いいたします。

下記は実行ログです。
# make install
Making install in src
Making install in libs
Making install in zbxcrypto
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxcommon
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxlog
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxalgo
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxnix
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxconf
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxsysinfo
Making install in agent
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in common
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in simple
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in aix
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxsys
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxcomms
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxjson
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxexec
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxmodules
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zbxregexp
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Target "install-exec-am" is up to date.
Target "install-data-am" is up to date.
Target "install" is up to date.
Making install in zabbix_agent
gcc -DHAVE_CONFIG_H -I. -I../../include -I/usr/local/include -DSYSCONFDIR="\"/usr/local/etc\"" -DLIBDIR="\"/usr/local/lib\"" -g -O2 -MT zabbix_agent-vmstats.o -MD -MP -MF .deps/zabbix_agent-vmstats.Tpo -c -o zabbix_agent-vmstats.o `test -f 'vmstats.c' || echo './'`vmstats.c
vmstats.c: In function 'update_vmstat':
vmstats.c:86: error: 'perfstat_partition_total_t' undeclared (first use in this function)
vmstats.c:86: error: (Each undeclared identifier is reported only once
vmstats.c:86: error: for each function it appears in.)
vmstats.c:86: error: parse error before 'lparstats'
vmstats.c:98: error: 'lparstats' undeclared (first use in this function)
make: The error code from the last command is 1.

Stop.
make: The error code from the last command is 1.

Stop.
make: The error code from the last command is 1.

Stop.

ユーザー TNK の写真

Zabbixのバージョンをご提示頂く時には、省略せずに、例えば、
Zabbix 3.2.3というように、バージョン番号全体をご提示くだ
さい。

あと、configureはどのような引数で実行されましたか?
そして、コンパイルを実行する環境(AIX 5.2)上で実行されまし
たか?

もう一つ、「Complieまでうまくできました」のCompileという
のは具体的に何を実行されたのですか?
メッセージを拝見する限り、コンパイルは失敗していたはずだ
と思われます。

TNS様

お世話になっております。

ご回答いただき有難うございました!!

Zabbixのバージョンは次の二つを試しましたが、結果は同様なエラーでした。
zabbix-2.2.16
zabbix-3.2.3

下記はComplie時のログです。
# GS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --enable-agent
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
configure: Configuring Zabbix 2.2.16
checking whether make sets $(MAKE)... (cached) yes
checking build system type... powerpc-ibm-aix5.2.0.0
checking host system type... powerpc-ibm-aix5.2.0.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking mtent.h usability... no
checking mtent.h presence... no
checking for mtent.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking sys/sysinfo.h usability... yes
checking sys/sysinfo.h presence... yes
checking for sys/sysinfo.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking for sys/socket.h... (cached) yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking for arpa/inet.h... (cached) yes
checking sys/vmmeter.h usability... no
checking sys/vmmeter.h presence... no
checking for sys/vmmeter.h... no
checking for strings.h... (cached) yes
checking vm/vm_param.h usability... no
checking vm/vm_param.h presence... no
checking for vm/vm_param.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking kstat.h usability... no
checking kstat.h presence... no
checking for kstat.h... no
checking sys/syscall.h usability... no
checking sys/syscall.h presence... no
checking for sys/syscall.h... no
checking sys/sysmacros.h usability... yes
checking sys/sysmacros.h presence... yes
checking for sys/sysmacros.h... yes
checking sys/procfs.h usability... yes
checking sys/procfs.h presence... yes
checking for sys/procfs.h... yes
checking for stdint.h... (cached) yes
checking mach/host_info.h usability... no
checking mach/host_info.h presence... no
checking for mach/host_info.h... no
checking mach/mach_host.h usability... no
checking mach/mach_host.h presence... no
checking for mach/mach_host.h... no
checking knlist.h usability... no
checking knlist.h presence... no
checking for knlist.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/var.h usability... yes
checking sys/var.h presence... yes
checking for sys/var.h... yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking sys/dkstat.h usability... no
checking sys/dkstat.h presence... no
checking for sys/dkstat.h... no
checking sys/disk.h usability... no
checking sys/disk.h presence... no
checking for sys/disk.h... no
checking sys/sched.h usability... yes
checking sys/sched.h presence... yes
checking for sys/sched.h... yes
checking zone.h usability... no
checking zone.h presence... no
checking for zone.h... no
checking nlist.h usability... yes
checking nlist.h presence... yes
checking for nlist.h... yes
checking kvm.h usability... no
checking kvm.h presence... no
checking for kvm.h... no
checking linux/kernel.h usability... no
checking linux/kernel.h presence... no
checking for linux/kernel.h... no
checking procinfo.h usability... yes
checking procinfo.h presence... yes
checking for procinfo.h... yes
checking sys/dk.h usability... no
checking sys/dk.h presence... no
checking for sys/dk.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking conio.h usability... no
checking conio.h presence... no
checking for conio.h... no
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking pdh.h usability... no
checking pdh.h presence... no
checking for pdh.h... no
checking psapi.h usability... no
checking psapi.h presence... no
checking for psapi.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking Winldap.h usability... no
checking Winldap.h presence... no
checking for Winldap.h... no
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking Winber.h usability... no
checking Winber.h presence... no
checking for Winber.h... no
checking lber.h usability... no
checking lber.h presence... no
checking for lber.h... no
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking for inttypes.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking libperfstat.h usability... yes
checking libperfstat.h presence... yes
checking for libperfstat.h... yes
checking sys/systemcfg.h usability... yes
checking sys/systemcfg.h presence... yes
checking for sys/systemcfg.h... yes
checking sys/mnttab.h usability... no
checking sys/mnttab.h presence... no
checking for sys/mnttab.h... no
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for resolv.h... yes
checking for net/if.h... yes
checking for net/if_mib.h... no
checking for sys/mount.h... no
checking for sys/proc.h... yes
checking for sys/sysctl.h... no
checking for sys/user.h... yes
checking for sys/swap.h... no
checking for sys/ucontext.h... yes
checking for devstat.h... no
checking for library containing socket... none required
checking for library containing kstat_open... no
checking for library containing gethostbyname... none required
checking for library containing clock_gettime... none required
checking for library containing dlopen... none required
checking for library containing perfstat_memory_total... -lperfstat
checking for library containing devstat_getdevs... no
checking for library containing getdevs... no
checking for library containing backtrace_symbols... no
checking for main in -lm... no
checking for main in -lkvm... no
checking for DNS lookup functions... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... 1
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for socklen_t... yes
checking for actual socklen_t parameter type in socket functions... socklen_t
checking for integer field name in union sigval of struct siginfo_t... sival_int
checking for union semun... no
checking for struct swaptable in sys/swap.h... no
checking for struct sensordev in sys/sensors.h... no
checking for struct statvfs64 in sys/statvfs.h... yes
checking for struct statfs64 in sys/statfs.h... yes
checking for field ss_family in struct sockaddr_storage... no
checking for field mem_unit in struct sysinfo... no
checking for field freeswap in struct sysinfo... no
checking for field totalswap in struct sysinfo... no
checking for field totalram in struct sysinfo... no
checking for field sharedram in struct sysinfo... no
checking for field bufferram in struct sysinfo... no
checking for field freeram in struct sysinfo... no
checking for field uptime in struct sysinfo... no
checking for field procs in struct sysinfo... no
checking for field tm_gmtoff in struct tm... no
checking for function sysconf() in unistd.h... yes
checking for function initgroups()... yes
checking for functions seteuid() and setegid()... yes
checking for function setproctitle()... no
checking for function sysctlbyname()... no
checking for function sysctl (KERN_BOOTTIME)... no
checking for function sysctl (HW_NCPU)... no
checking for function sysctl (KERN_MAXFILES)... no
checking for function sysctl (KERN_MAXPROC)... no
checking for function sysctl (KERN_CPTIME,KERN_CPTIME2)... no
checking for function clock_gettime in time.h... yes
checking for macro __va_copy() in stdarg.h... yes
checking for macro __VA_ARGS__... yes
checking return type of signal handlers... void
checking for getloadavg... no
checking for hstrerror... yes
checking for getenv... yes
checking for putenv... yes
checking for sigqueue... yes
checking for /proc filesystem... yes
checking for file /proc/stat... no
checking for file /proc/cpuinfo... no
checking for file /proc/0/psinfo... yes
checking for file /proc/loadavg... no
checking for file /proc/net/dev... no
checking for long long format... no
checking for -rdynamic linking option... no
checking for libperfstat 5.2.0.40 fileset... yes
checking for libperfstat 5.3.0.60 fileset... no
checking for architecture... aix (aix5.2.0.0)
checking size of void *... 4
checking for ICONV support... yes
checking for mkdir -p candidate... ok (./install-sh -c -d)
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating database/Makefile
config.status: creating misc/Makefile
config.status: creating src/Makefile
config.status: creating src/libs/Makefile
config.status: creating src/libs/zbxlog/Makefile
config.status: creating src/libs/zbxalgo/Makefile
config.status: creating src/libs/zbxmemory/Makefile
config.status: creating src/libs/zbxcrypto/Makefile
config.status: creating src/libs/zbxconf/Makefile
config.status: creating src/libs/zbxdbcache/Makefile
config.status: creating src/libs/zbxdbhigh/Makefile
config.status: creating src/libs/zbxmedia/Makefile
config.status: creating src/libs/zbxsysinfo/Makefile
config.status: creating src/libs/zbxcommon/Makefile
config.status: creating src/libs/zbxsysinfo/agent/Makefile
config.status: creating src/libs/zbxsysinfo/common/Makefile
config.status: creating src/libs/zbxsysinfo/simple/Makefile
config.status: creating src/libs/zbxsysinfo/linux/Makefile
config.status: creating src/libs/zbxsysinfo/aix/Makefile
config.status: creating src/libs/zbxsysinfo/freebsd/Makefile
config.status: creating src/libs/zbxsysinfo/hpux/Makefile
config.status: creating src/libs/zbxsysinfo/openbsd/Makefile
config.status: creating src/libs/zbxsysinfo/osx/Makefile
config.status: creating src/libs/zbxsysinfo/solaris/Makefile
config.status: creating src/libs/zbxsysinfo/osf/Makefile
config.status: creating src/libs/zbxsysinfo/netbsd/Makefile
config.status: creating src/libs/zbxsysinfo/unknown/Makefile
config.status: creating src/libs/zbxnix/Makefile
config.status: creating src/libs/zbxsys/Makefile
config.status: creating src/libs/zbxcomms/Makefile
config.status: creating src/libs/zbxcommshigh/Makefile
config.status: creating src/libs/zbxdb/Makefile
config.status: creating src/libs/zbxdbupgrade/Makefile
config.status: creating src/libs/zbxjson/Makefile
config.status: creating src/libs/zbxserver/Makefile
config.status: creating src/libs/zbxicmpping/Makefile
config.status: creating src/libs/zbxexec/Makefile
config.status: creating src/libs/zbxself/Makefile
config.status: creating src/libs/zbxmodules/Makefile
config.status: creating src/libs/zbxregexp/Makefile
config.status: creating src/zabbix_agent/Makefile
config.status: creating src/zabbix_get/Makefile
config.status: creating src/zabbix_sender/Makefile
config.status: creating src/zabbix_server/Makefile
config.status: creating src/zabbix_server/alerter/Makefile
config.status: creating src/zabbix_server/dbsyncer/Makefile
config.status: creating src/zabbix_server/dbconfig/Makefile
config.status: creating src/zabbix_server/discoverer/Makefile
config.status: creating src/zabbix_server/housekeeper/Makefile
config.status: creating src/zabbix_server/httppoller/Makefile
config.status: creating src/zabbix_server/nodewatcher/Makefile
config.status: creating src/zabbix_server/pinger/Makefile
config.status: creating src/zabbix_server/poller/Makefile
config.status: creating src/zabbix_server/snmptrapper/Makefile
config.status: creating src/zabbix_server/timer/Makefile
config.status: creating src/zabbix_server/trapper/Makefile
config.status: creating src/zabbix_server/utils/Makefile
config.status: creating src/zabbix_server/watchdog/Makefile
config.status: creating src/zabbix_server/escalator/Makefile
config.status: creating src/zabbix_server/proxypoller/Makefile
config.status: creating src/zabbix_server/selfmon/Makefile
config.status: creating src/zabbix_server/vmware/Makefile
config.status: creating src/zabbix_proxy/Makefile
config.status: creating src/zabbix_proxy/heart/Makefile
config.status: creating src/zabbix_proxy/housekeeper/Makefile
config.status: creating src/zabbix_proxy/proxyconfig/Makefile
config.status: creating src/zabbix_proxy/datasender/Makefile
config.status: creating src/zabbix_java/Makefile
config.status: creating upgrades/Makefile
config.status: creating man/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands

Configuration:

Detected OS: aix5.2.0.0
Install path: /usr/local
Compilation arch: aix

Compiler: gcc
Compiler flags: -g -O2

Enable server: no

Enable proxy: no

Enable agent: yes
Agent details:
Linker flags: -L/usr/local/lib
Libraries: -lperfstat -liconv

Enable Java gateway: no

LDAP support: no
IPv6 support: no

***********************************************************
* Now run 'make install' *
* *
* Thank you for using Zabbix! *
* *
***********************************************************

ユーザー fripper の写真

「コンパイル時のログ」としてご提示頂いているログは、
コンパイル時の設定を自動検出させる「configure」処理のログで、
実際の「コンパイル処理」のログでは無いようです

ソースコードからのビルド・インストールでは、通常は
「configure」によって、OS環境や依存ライブラリ状況を検出させ、適切なビルドオプション設定が
書かれた設定ファイルを自動生成
 →「make」で、実際のコンパイル処理
  →「make install」でインストール処理
というように進めるかと思います

「configure」の直後に「make install」を実行した場合、install の内部処理の一環として
 ・コンパイル・ビルド済のバイナリファイルがインストール元に存在していない
 ・→コンパイルして作らなきゃ
 ・→内部的に [make] が自動的に呼び出され、コンパイル処理が実行される
 ・できあがったバイナリファイルを使って [make install] の続きを実行
というように進みます

エラーが出ているのは、「make install」の内部で自動実行された「make」処理の一部で、
エラーメッセージから察するに、「libperfstat」というOSモジュール側のヘッダファイル定義情報と
zabbix_agent 側のソースコードでの利用状況の不整合に関するもののようです
libperfstat のバージョンが古く、zabbix側が必要とするデータや変数の型定義等が、
OSライブラリ側のヘッダファイル内に存在していないのではないかと推測します
可能であれば、libperfstat 側の更新をすることで、ビルドできるようになるかもしれません

また、3.0.4 以前の zabbix 3.x では、AIX 5.x 環境でビルド不能、という不具合があったようです
 https://support.zabbix.com/browse/ZBX-10852

fripper 様

お世話になっております。

コメントをいただき有難うございました。

不勉強で大変恐縮ですが、
できれば具体的な手順(コマンド)をご教授いただければ、大変助かります。

よろしくお願いいたします。

ユーザー fripper の写真

AIX環境を触った経験がないため、また、再現環境を準備できないため、これ以上の
情報を提示することができません

先の私の書込で、「【configure】→【make】→【make install】という手順で」と申し上げたのは
一般的な Unix 系/Linux 系OSでの汎用的な手順、というだけでしかありません

ご提示いただいている「configure」部分のログから、
「configureについてはエラー終了していないこと」「OS・環境がAIX5.2 だとキチンと認識できていること」など
ある程度「動きそうな雰囲気・動いていそうな雰囲気」までは読み取れるのですが‥
その後の「make」処理内で、ライブラリ不整合を検出してエラーとなっている事実より
以下のご提案をした次第です

>libperfstat のバージョンが古く、zabbix側が必要とするデータや変数の型定義等が、
>OSライブラリ側のヘッダファイル内に存在していないのではないかと推測します
>可能であれば、libperfstat 側の更新をすることで、ビルドできるようになるかもしれません

OS側に更新パッチをあてた上であれば、zabbixのビルドもできるのでは‥と想定しているのですが
残念ながら、AIX5.2はIBMによるサポートも終了しているようで、メーカーページ含め
「こちらをご参考に」と提示できるような資料も見つけられませんでした

fripper様

お世話になっております。

ご丁寧、有難うございました!
一旦探ってみます。

fripper様

お世話になっております。

ご丁寧、有難うございました!
一旦探ってみます。

お世話になっております。

何とかAIX5.3の上でAgentをインストールしましたが、 次のエラーが止まりません。
[/var/run/zabbix/zabbix_agentd.pid のアクセス権限をZabbixへ変更しても変わりません。。
対応策がありますか。

# cat /var/log/zabbix/zabbix_agentd.log
zabbix_agentd [335888]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [327848]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [323832]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [250000]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [233618]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [213128]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [204912]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [360628]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [245904]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [303264]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [221306]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [344098]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [344100]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [327852]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [327854]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [368860]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [340160]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [344116]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [340162]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
zabbix_agentd [340164]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
#
# ls -la
合計 8
drwxr-xr-x 2 zabbix zabbix 256 Jan 12 02:16 .
drwxr-xr-x 3 root system 256 Jan 10 23:09 ..
-rwxrwxrwx 1 zabbix zabbix 6 Jan 12 02:16 zabbix_agentd.pid
#

ユーザー TNK の写真

一度、エージェントを停止して、pidファイルを削除してから起動
してみてください。

あと、もし可能であれば、コンパイルできていなかった問題をどう
やって解決できたかもお教えいただけませんか?
同様の問題に遭遇したかたが、検索してきて解決策を見つけら
れるようにできたらと思います。

TNK さま

5.2は依然Complieできず、
上記の問題は5.3のcompile済みファイルを使っています。

>エージェントを停止して、pidファイルを削除してから起動
複数回やっても、エラーが止まらず。。。困っています。

ユーザー fripper の写真

zabbix_agentd.conf 内で指定された PidFile 保存のためのパスに対して
zabbix_agentd の実行ユーザアカウント (zabbix でしょうか) が書込権限を持っておらず
zabbix_agentd 起動時に pidfile を書込できていないのかもしれません

もしくは、/var/run/zabbix というディレクトリ自身がそもそも存在していない可能性もあります

zabbix_agentd のログファイル、起動直後近辺に、Permission に関するエラーログが
記録されていないでしょうか?

pid ファイルの出力先ディレクトリが正しく存在しており、そこに対して、
適切なパーミッションが設定されていれば、pid file の生成に成功するものと推察されます

fripper様
お世話になっております。
コメント、有難うございました。

ログは次のとおりです。

>zabbix_agentd 起動時に pidfile を書込できていないのかもしれません
>/var/run/zabbix というディレクトリ自身がそもそも存在していない可能性もあります
# ls -la /var/run/zabbix

v 8
drwxr-xr-x 2 zabbix zabbix 256 Jan 15 23:57 .
drwxr-xr-x 3 root system 256 Jan 15 16:19 ..
-rw-rw-r-- 1 zabbix zabbix 6 Jan 15 23:57 zabbix_agentd.pid
#

### Option: PidFile
# Name of PID file.
#
# Mandatory: no
# Default:
PidFile=/var/run/zabbix/zabbix_agentd.pid
### Option: LogFile
# Name of log file.
# If not set, syslog is used.
#
# Mandatory: no
# Default:
# LogFile=
LogFile=/var/log/zabbix/zabbix_agentd.log

--------------------------------------
zabbix_agentd のログファイル、起動直後近辺に、Permission に関するエラーログが
記録されていないでしょうか?
307424:20170116:001154.172 Got signal [signal:15(SIGTERM),sender_pid:270480,sender_uid:0,reason:0]. Exiting ...
348342:20170116:001154.173 Got signal [signal:15(SIGTERM),sender_pid:0,sender_uid:0,reason:9]. Exiting ...
262320:20170116:001154.173 Got signal [signal:15(SIGTERM),sender_pid:0,sender_uid:0,reason:9]. Exiting ...
200876:20170116:001154.174 Got signal [signal:15(SIGTERM),sender_pid:0,sender_uid:0,reason:9]. Exiting ...
352442:20170116:001154.174 Got signal [signal:15(SIGTERM),sender_pid:0,sender_uid:0,reason:9]. Exiting ...
344242:20170116:001154.175 Got signal [signal:15(SIGTERM),sender_pid:0,sender_uid:0,reason:9]. Exiting ...
307424:20170116:001154.176 Zabbix Agent stopped. Zabbix 2.4.4 (revision 52341).
176336:20170116:001201.103 Starting Zabbix Agent [LPAR2]. Zabbix 2.4.4 (revision 52341).
176336:20170116:001201.103 using configuration file: /usr/local/etc/zabbix_agentd.conf
176336:20170116:001201.103 agent #0 started [main process]
344244:20170116:001201.104 agent #1 started [collector]
352444:20170116:001201.104 agent #2 started [listener #1]
200878:20170116:001201.105 agent #3 started [listener #2]
262322:20170116:001201.106 agent #4 started [listener #3]
348344:20170116:001201.107 agent #5 started [active checks #1]
zabbix_agentd [315404]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied

ユーザー fripper の写真

>zabbix_agentd [315404]: Is this process already running? Could not lock PID file [/var/run/zabbix/zabbix_agentd.pid]: [13] Permission denied
とログに出力されているようですが
zabbix_agentd プロセスが多重に起動していませんか?

>>エージェントを停止して、pidファイルを削除してから起動
>複数回やっても、エラーが止まらず。。。困っています。
zabbix_agentd のプロセスを終了してから再起動なさっているおつもりなのだと思いますが、
終了後、「ps aux」コマンド等で、zabbix_agentd プロセスがキチンと終了できているか
何らかの形で過去に起動したzabbix_agentd プロセス等が居残っていないかを十分に確認し
zabbix_agentd プロセスが全く居ないことを確認したうえで、pidファイルを削除し、
試していただけますでしょうか?

fripper様

お世話になっております。

>zabbix_agentd プロセスが全く居ないことを確認したうえで、pidファイルを削除し、
複数回繰り返しましたが、直らなかった。
※Zabbixサーバー側も停止した上。

補足ですが、監視対象サーバー側のTcpdumpログには、監視対象サーバー(LPAR2)が10050のポートを利用していないようです。
これは、AgentのConf設定ミスですか。

19:23:55.339839 IP LPAR2.33503 > 10.18.12.27.10051: S 4244488922:4244488922(0) win 65535
19:23:55.357476 IP 10.18.12.27.10051 > LPAR2.33503: S 2897831555:2897831555(0) ack 4244488923 win 26883
19:23:55.357504 IP LPAR2.33503 > 10.18.12.27.10051: . ack 1 win 65535
19:23:55.357574 IP LPAR2.33503 > 10.18.12.27.10051: P 1:6(5) ack 1 win 65535
19:23:55.375442 IP 10.18.12.27.10051 > LPAR2.33503: . ack 6 win 26883
19:23:55.375452 IP LPAR2.33503 > 10.18.12.27.10051: P 6:56(50) ack 1 win 65535
19:23:55.394112 IP 10.18.12.27.10051 > LPAR2.33503: . ack 56 win 26883
19:23:55.398007 IP 10.18.12.27.10051 > LPAR2.33503: P 1:71(70) ack 56 win 26883
19:23:55.398012 IP 10.18.12.27.10051 > LPAR2.33503: F 71:71(0) ack 56 win 26883
19:23:55.398019 IP LPAR2.33503 > 10.18.12.27.10051: . ack 72 win 65535
19:23:55.398199 IP LPAR2.33503 > 10.18.12.27.10051: F 56:56(0) ack 72 win 65535
19:23:55.416878 IP 10.18.12.27.10051 > LPAR2.33503: . ack 57 win 26883
19:24:00.899124 IP LPAR2.33504 > 10.18.12.27.10050: S 2429703578:2429703578(0) win 65535
19:24:03.680165 IP LPAR2.33504 > 10.18.12.27.10050: S 2429703578:2429703578(0) win 65535
19:24:09.681821 IP LPAR2.33504 > 10.18.12.27.10050: S 2429703578:2429703578(0) win 65535
19:24:21.685154 IP LPAR2.33504 > 10.18.12.27.10050: S 2429703578:2429703578(0) win 65535
19:24:45.691842 IP LPAR2.33504 > 10.18.12.27.10050: S 2429703578:2429703578(0) win 65535