Ad Widget

Collapse

Zabbix 2.0.1 and https

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sergeyarl
    Junior Member
    • Jul 2010
    • 24

    #1

    Zabbix 2.0.1 and https

    Is https monitoring supported in Zabbix 2.0.1?
    I have found in official documentation that HTTPs monitoring was going to be supported in Zabbix 2.0. http://www.zabbix.com/documentation/...vice&s[]=https But when I try to get the value of net.tcp.service[https] from agent with zabbix_get I receive ZBX_NOTSUPPORTED. Howerever net.tcp.service[http] returns correct value as expected.

    Code:
    # zabbix_get -s 11.22.33.44 -p 10050 -k "net.tcp.service[https]"
    ZBX_NOTSUPPORTED
  • sergeyarl
    Junior Member
    • Jul 2010
    • 24

    #2
    any ideas? does anybody use net.tcp.service[https] ?

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      which operating system ? also :
      Code:
      zabbix_get -s 11.22.33.44 -k agent.version
      Zabbix 3.0 Network Monitoring book

      Comment

      • sergeyarl
        Junior Member
        • Jul 2010
        • 24

        #4
        Originally posted by richlv
        which operating system ? also :
        Code:
        zabbix_get -s 11.22.33.44 -k agent.version
        Debian 6.0 x86_64 GNU/Linux

        Code:
        # zabbix_get -s 11.22.33.44 -k agent.version
        2.0.1

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          ldd zabbix_agentd
          Zabbix 3.0 Network Monitoring book

          Comment

          • sergeyarl
            Junior Member
            • Jul 2010
            • 24

            #6
            Code:
            root@zabbix-test:~# ldd /usr/sbin/zabbix_agentd
                    linux-vdso.so.1 =>  (0x00007fffa5dff000)
                    libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007f60ef0c5000)
                    liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007f60eeeb7000)
                    libm.so.6 => /lib/libm.so.6 (0x00007f60eec34000)
                    librt.so.1 => /lib/librt.so.1 (0x00007f60eea2c000)
                    libresolv.so.2 => /lib/libresolv.so.2 (0x00007f60ee816000)
                    libc.so.6 => /lib/libc.so.6 (0x00007f60ee4b3000)
                    libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007f60ee29a000)
                    libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007f60edff8000)
                    libpthread.so.0 => /lib/libpthread.so.0 (0x00007f60edddb000)
                    /lib64/ld-linux-x86-64.so.2 (0x00007f60ef316000)
                    libdl.so.2 => /lib/libdl.so.2 (0x00007f60edbd7000)
                    libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007f60ed9c7000)
                    libz.so.1 => /usr/lib/libz.so.1 (0x00007f60ed7af000)
                    libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x00007f60ed537000)
                    libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f60ed334000)

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              hmm... it is possible you did not have curl development headers when the agent was compiled. can you try installing them & recompiling the agent ?
              Zabbix 3.0 Network Monitoring book

              Comment

              • sergeyarl
                Junior Member
                • Jul 2010
                • 24

                #8
                Originally posted by richlv
                hmm... it is possible you did not have curl development headers when the agent was compiled. can you try installing them & recompiling the agent ?
                I recomplied zabbix agent with the following options
                ./configure --with-libcurl --enable-agent --with-ldap --with-openipmi --enable-ipv6 --prefix=/opt/zabbix201agent --bindir=/opt/zabbix201agent/usr/bin --sbindir=/opt/zabbix201agent/usr/sbin --datarootdir=/opt/zabbix201agent/usr/share --mandir=/opt/zabbix201agent/usr/share/man --sysconfdir=/opt/zabbix201agent/etc/zabbix

                Code:
                dpkg -l |grep -i curl
                ii  curl                                7.21.0-2.1+squeeze2          Get a file from an HTTP, HTTPS or FTP server 
                ii  libcurl3                            7.21.0-2.1+squeeze2          Multi-protocol file transfer library (OpenSSL)    
                ii  libcurl3-gnutls                     7.21.0-2.1+squeeze2          Multi-protocol file transfer library (GnuTLS)     
                ii  libcurl4-gnutls-dev                 7.21.0-2.1+squeeze2          Development files and documentation for libcurl (GnuTLS)
                ldd output:

                Code:
                	linux-vdso.so.1 =>  (0x00007fffee744000)
                	libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007f01bd835000)
                	liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007f01bd627000)
                	libm.so.6 => /lib/libm.so.6 (0x00007f01bd3a4000)
                	librt.so.1 => /lib/librt.so.1 (0x00007f01bd19c000)
                	libresolv.so.2 => /lib/libresolv.so.2 (0x00007f01bcf86000)
                	libc.so.6 => /lib/libc.so.6 (0x00007f01bcc23000)
                	libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007f01bca0a000)
                	libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007f01bc768000)
                	libpthread.so.0 => /lib/libpthread.so.0 (0x00007f01bc54b000)
                	/lib64/ld-linux-x86-64.so.2 (0x00007f01bda89000)
                	libdl.so.2 => /lib/libdl.so.2 (0x00007f01bc347000)
                	libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007f01bc137000)
                	libz.so.1 => /usr/lib/libz.so.1 (0x00007f01bbf1f000)
                	libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x00007f01bbca7000)
                	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f01bbaa4000)
                I'm still getting ZBX_NOTSUPPORTED when I try to get the value of net.tcp.service[https]

                Comment

                • richlv
                  Senior Member
                  Zabbix Certified Trainer
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Oct 2005
                  • 3112

                  #9
                  doesn't seem to be linking against libcurl still. i'd probably look for curl related messages in config.log
                  Zabbix 3.0 Network Monitoring book

                  Comment

                  • bogus
                    Junior Member
                    • Jun 2007
                    • 9

                    #10
                    I use it but as the simple check and it works fine

                    Comment

                    • xoJIog
                      Junior Member
                      • Jan 2013
                      • 2

                      #11
                      I have the same problem:
                      Code:
                      ldd /usr/sbin/zabbix_agent
                              linux-vdso.so.1 (0x0000027803c7b000)
                              librt.so.1 => /lib64/librt.so.1 (0x0000027803852000)
                              libresolv.so.2 => /lib64/libresolv.so.2 (0x000002780363b000)
                              libc.so.6 => /lib64/libc.so.6 (0x0000027803293000)
                              libpthread.so.0 => /lib64/libpthread.so.0 (0x0000027803076000)
                              /lib64/ld-linux-x86-64.so.2 (0x0000027803a5b000)
                      Code:
                      zabbix_agent -c /etc/zabbix/zabbix_agent.conf -t net.tcp.service[http]
                      net.tcp.service[http]                         [u|1]
                      Code:
                      zabbix_agent -c /etc/zabbix/zabbix_agent.conf -t net.tcp.service[https]
                      net.tcp.service[https]                        [m|ZBX_NOTSUPPORTED]
                      Zabbix version: zabbix-2.0.4-r1
                      OS: Gentoo Linux

                      Comment

                      Working...