Ad Widget

Collapse

Zabbix is no longer providing Zabbix 5 server package for NetBSD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #1

    Zabbix is no longer providing Zabbix 5 server package for NetBSD

    As I remember back then at NetBSD 8.0 there was a Zabbix binary packages which can be downloaded from this site.

    /usr/zabbix4/sbin/zabbix_server -V
    zabbix_server (Zabbix) 4.0.2
    Revision 87228 26 November 2018, compilation time: Dec 7 2018 13:11:44

    Copyright (C) 2018 Zabbix SIA
    License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it according to
    the license. There is NO WARRANTY, to the extent permitted by law.
    According to the latest pkgsrc binary packages:



    Sadly only the agent has version 5 not the whole server so now I'm spending time building it from pkgsrc and crossing fingers that it won't break.

    Please consider making binary package in the future again.
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #2
    Also the issue with building the 5 is that it uses a newer version of libxml2 than whats in the binary repo so that and all it's dependencies like git, curl needed to be removed so pkgsrc can install the newer libxml2.
    This of course will mean that all these packages can't be installed from binary at this point on the box but needed to be also built from pkgsrc...
    Yeah talking of NetBSD 9.1 amd64 the latest version.

    Comment

    • registration_is_lame
      Senior Member
      • Nov 2007
      • 148

      #3
      Oh man I thought this is going to be BAD as it is....

      To start with:
      /usr/pkgsrc/sysutils/zabbix50-server

      Seems to be some postgres only version so no matter how hard I try to turn on mysql support.

      make PKG_OPTIONS.zabbix50-server="mysql ipmi" install clean; make clean-depends

      or /etc/mk.conf

      PKG_OPTIONS.zabbix50-server+=mysql ipmi

      The results is always the same it's building it with Postgres.

      Code:
      /usr/pkg/sbin/zabbix_server:
      -lpq.5 => /usr/pkg/lib/libpq.so.5
      -lssl.14 => /usr/lib/libssl.so.14
      -lcrypto.14 => /usr/lib/libcrypto.so.14
      -lcrypt.1 => /lib/libcrypt.so.1
      -lc.12 => /usr/lib/libc.so.12
      -lgssapi.11 => /usr/lib/libgssapi.so.11
      -lkrb5.27 => /usr/lib/libkrb5.so.27
      -lhx509.6 => /usr/lib/libhx509.so.6
      -lasn1.10 => /usr/lib/libasn1.so.10
      -lcom_err.8 => /usr/lib/libcom_err.so.8
      -lroken.20 => /usr/lib/libroken.so.20
      -lutil.7 => /usr/lib/libutil.so.7
      -lwind.1 => /usr/lib/libwind.so.1
      -lheimbase.2 => /usr/lib/libheimbase.so.2
      -lsqlite3.1 => /usr/lib/libsqlite3.so.1
      -lheimntlm.5 => /usr/lib/libheimntlm.so.5
      -lintl.1 => /usr/lib/libintl.so.1
      -lpthread.1 => /usr/lib/libpthread.so.1
      -lxml2.2 => /usr/pkg/lib/libxml2.so.2
      -lz.1 => /usr/lib/libz.so.1
      -llzma.2 => /usr/lib/liblzma.so.2
      -lm.0 => /usr/lib/libm.so.0
      -lnetsnmp.35 => /usr/pkg/lib/libnetsnmp.so.35
      -lssh2.1 => /usr/pkg/lib/libssh2.so.1
      -lOpenIPMI.0 => /usr/pkg/lib/libOpenIPMI.so.0
      -lOpenIPMIutils.0 => /usr/pkg/lib/libOpenIPMIutils.so.0
      -lexecinfo.0 => /usr/lib/libexecinfo.so.0
      -lelf.2 => /usr/lib/libelf.so.2
      -lgcc_s.1 => /usr/lib/libgcc_s.so.1
      -lOpenIPMIposix.0 => /usr/pkg/lib/libOpenIPMIposix.so.0
      -levent.4 => /usr/lib/libevent.so.4
      -lldap.4 => /usr/lib/libldap.so.4
      -llber.3 => /usr/lib/liblber.so.3
      -lcurl.4 => /usr/pkg/lib/libcurl.so.4
      -lnghttp2.14 => /usr/pkg/lib/libnghttp2.so.14
      -lidn2.0 => /usr/pkg/lib/libidn2.so.0
      -lunistring.2 => /usr/pkg/lib/libunistring.so.2
      -lkvm.6 => /usr/lib/libkvm.so.6
      -lpcre.1 => /usr/pkg/lib/libpcre.so.1
      Give me a break...

      Code:
       1156:20210517:161046.285 Cannot connect to the database. Exiting...
      11309:20210517:161341.915 Starting Zabbix Server. Zabbix 5.0.8 (revision d3c78f993a).
      11309:20210517:161341.916 ****** Enabled features ******
      11309:20210517:161341.916 SNMP monitoring: YES
      11309:20210517:161341.916 IPMI monitoring: YES
      11309:20210517:161341.916 Web monitoring: YES
      11309:20210517:161341.916 VMware monitoring: YES
      11309:20210517:161341.916 SMTP authentication: YES
      11309:20210517:161341.916 ODBC: NO
      11309:20210517:161341.916 SSH support: YES
      11309:20210517:161341.916 IPv6 support: YES
      11309:20210517:161341.916 TLS support: YES
      11309:20210517:161341.916 ******************************
      11309:20210517:161341.916 using configuration file: /usr/pkg/etc/zabbix_server.conf
      11309:20210517:161341.919 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused
      Is the server running on host "localhost" (::1) and accepting
      TCP/IP connections on port 5432?
      could not connect to server: Connection refused
      Is the server running on host "localhost" (127.0.0.1) and accepting
      TCP/IP connections on port 5432?

      Comment

      • registration_is_lame
        Senior Member
        • Nov 2007
        • 148

        #4
        I have actually fixed it but wasted the whole afternoon on it. For some reason the NetBSD makefile does not take the condition properly. Removing all pgsql statements and the if statements on the mysql part will work. Thanks for myself

        Code:
        # $NetBSD: options.mk,v 1.1 2020/11/03 22:44:43 otis Exp $
        
        PKG_OPTIONS_VAR= snmp mysql
        PKG_SUPPORTED_OPTIONS+= inet6 ipmi libssh libssh2 snmp
        PKG_OPTIONS_OPTIONAL_GROUPS= database
        PKG_OPTIONS_GROUP.database= mysql
        PKG_SUGGESTED_OPTIONS+= ipmi libssh2 snmp
        
        .if empty(MISSING_FEATURES:Minet6)
        PKG_SUGGESTED_OPTIONS+= inet6
        .endif
        
        .include "../../mk/bsd.options.mk"
        
        PLIST_VARS+= mysql
        
        .if !empty(PKG_OPTIONS:Minet6)
        CONFIGURE_ARGS+= --enable-ipv6
        .endif
        
        .if !empty(PKG_OPTIONS:Mlibssh)
        CONFIGURE_ARGS+= --with-ssh=${BUILDLINK_PREFIX.libssh}
        .include "../../security/libssh/buildlink3.mk"
        .endif
        
        .if !empty(PKG_OPTIONS:Mlibssh2)
        CONFIGURE_ARGS+= --with-ssh2=${BUILDLINK_PREFIX.libssh2}
        .include "../../security/libssh2/buildlink3.mk"
        .endif
        
        CONFIGURE_ARGS+= --with-mysql
        .include "../../mk/mysql.buildlink3.mk"
        ZABBIX_DB_TYPE= mysql
        
        .if !empty(PKG_OPTIONS:Msnmp)
        CONFIGURE_ARGS+= --with-net-snmp
        .include "../../net/net-snmp/buildlink3.mk"
        .endif
        
        .if !empty(PKG_OPTIONS:Mipmi)
        CONFIGURE_ARGS+= --with-openipmi=${PREFIX}
        .include "../../sysutils/openipmi/buildlink3.mk"
        .endif

        Comment

        Working...