Brucalipto.org

Keep your door open!

Zabbix Agents for Solaris 10

| Comments

ZABBIX is an enterprise-class open source distributed monitoring solution. I use it at work and I like it very much. Today I needed the Zabbix Agent for Solaris10 for Intel and, as I still use version 1.4, I downloaded the precompiled agents binaries from Zabbix site. I’m writing this post because I found a problem!

The precompiled binaries fails to run with the following message:

Zabbix agent error on console
1
2
3
ld.so.1: zabbix_agentd: fatal: libresolv.so.2: version `SUNW_2.3' not found (required by file zabbix_agentd)
ld.so.1: zabbix_agentd: fatal: libresolv.so.2: open failed: No such file or directory
Killed

Running the ldd on the zabbix_agentd will reveal the problem:

ldd result
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ldd /export/home/zabbix/bin/zabbix_agentd
libkvm.so.1 =>   /usr/lib/libkvm.so.1
libm.so.2 =>     /lib/libm.so.2
libresolv.so.2 =>        /lib/libresolv.so.2
**libresolv.so.2 (SUNW_2.3) =>     (version not found)**
libnsl.so.1 =>   /lib/libnsl.so.1
libkstat.so.1 =>         /lib/libkstat.so.1
libsocket.so.1 =>        /lib/libsocket.so.1
libc.so.1 =>     /lib/libc.so.1
libelf.so.1 =>   /lib/libelf.so.1
libmp.so.2 =>    /lib/libmp.so.2
libmd.so.1 =>    /lib/libmd.so.1
libscf.so.1 =>   /lib/libscf.so.1
libdoor.so.1 =>  /lib/libdoor.so.1
libuutil.so.1 =>         /lib/libuutil.so.1
libgen.so.1 =>   /lib/libgen.so.1

libresolv.so.2 (SUNW_2.3) is not bundled in Solaris10 but in Nevada (aka Solaris11): so the precompiled binaries were not built on Solaris10 but on Opensolaris. To overcome this problem I downloaded the Zabbix 1.4.6 sources and I compiled the agents with Sun Studio 12.

Here are my own binaries:

Use at your own risk and… enjoy!

Comments