Ad Widget

Collapse

Zabbix agent on NetBSD 7.1.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jusavard
    Member
    • Sep 2013
    • 48

    #1

    Zabbix agent on NetBSD 7.1.1

    I'm writing this just in case somebody ever has the (same) idea to install zabbix agent on NetBSD.
    First of all, as you have to download zabbix source.
    You will also have to install a prerequisite named "pcre". You can install it by pkgsrc in /usr/pkgsrc/devel/pcre ( or wherever you deployed your pkgsrc ). As usual, "make install clean".
    Configuration, compilation and installation is straight forward and pretty similar to any other system you might have ever compiled zabbix agent.
    Which mean :
    • You unarchive the sources
    • You cd into
    • run ./configure --enable-agent
    • run "make install"
    • After this start the lil hacks. You will have to copy the freebsd rc script.
    cp /root/zabbix-3.4.7/misc/init.d/freebsd/zabbix_agentd /etc/rc.d/
    • Comment this line in the rc script :
    #rcvar=`set_rcvar`
    • Unfortunaly it seems the zabbix binary can't see some library :
    HOSTNAME_HERE# ldd /usr/local/sbin/zabbix_agentd
    /usr/local/sbin/zabbix_agentd:
    -lkvm.6 => /usr/lib/libkvm.so.6
    -lgcc_s.1 => /lib/libgcc_s.so.1
    -lc.12 => /usr/lib/libc.so.12
    -lm.0 => /usr/lib/libm.so.0
    -lexecinfo.0 => /usr/lib/libexecinfo.so.0
    -lelf.1 => /usr/lib/libelf.so.1
    -lpcreposix.0 => not found
    -lpcre.1 => not found
    -lc.12 => /usr/lib/libsparc_v8.so.0
    pcreposix.0 and pcre.1... Good thing we compiled them earlier
    • So if you installed pcre via pkgsrc you will have to add this to the /etc/ld.so.conf ( the last line )
    HOSTNAME_HERE# cat /etc/ld.so.conf
    libc.so.12 machdep.cpu_arch 8:libsparc_v8.so.0,libc.so.12 9:libsparc_v8.so.0,libc.so.12
    # Added for the zabbix agent
    /usr/pkg/lib/
    • It might seems weird to add a path there but trust me that's how it works :
    HOSTNAME_HERE# ldd /usr/local/sbin/zabbix_agentd
    /usr/local/sbin/zabbix_agentd:
    -lkvm.6 => /usr/lib/libkvm.so.6
    -lgcc_s.1 => /lib/libgcc_s.so.1
    -lc.12 => /usr/lib/libc.so.12
    -lm.0 => /usr/lib/libm.so.0
    -lexecinfo.0 => /usr/lib/libexecinfo.so.0
    -lelf.1 => /usr/lib/libelf.so.1
    -lpcreposix.0 => /usr/pkg/lib//libpcreposix.so.0
    -lpcre.1 => /usr/pkg/lib//libpcre.so.1
    -lc.12 => /usr/lib/libsparc_v8.so.0

    Now tweak your zabbix_agentd.conf as you wish and then you're ready to start using your zabbix agent.
    Enjoy !
  • bikasgaur
    Junior Member
    • Apr 2018
    • 1

    #2
    Recently purchased Andzabbix Pro from Google Play it ran smooth on my Google Pixel 2 XL running Android 7.0. However upon upgrading to Android 8.1 now the app constantly crashing right on the startup. Can anyone help me fix it?


    Bikas Gaur
    Appvalley Tutuapp Tweakbox

    Comment

    Working...