Ad Widget

Collapse

Improved VMWare Monitoring with VmBix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tatapoum
    Senior Member
    • Jan 2014
    • 185

    #46
    It means that the VmBix server works properly, but there is an issue with the loadable module.
    Can you post the first lines of the Zabbix log when you start it ? It should display something like :
    Code:
      6455:20160907:111033.185 Loading VmBix module configuration file /etc/zabbix/vmbix_module.conf
    You can test the loadable module if you load it into a Zabbix agent by adding these parameters to the agent configuration file :
    Code:
    LoadModulePath=/usr/lib/zabbix/modules
    LoadModule=vmbix.so
    After an agent restart, you should be able to query VmBix through the agent's loadable module with :
    Code:
    zabbix_agentd -t "vmbix[vm.guest.tools.running,MYVM]"
    zabbix_agentd [19417]: Loading VmBix module configuration file /etc/zabbix/vmbix_module.conf
    vmbix[vm.guest.tools.running,MYVM]       [s|1]
    Last edited by tatapoum; 09-09-2016, 10:51.

    Comment

    • dmayorgap
      Junior Member
      • Sep 2016
      • 9

      #47
      Originally posted by tatapoum
      It means that the VmBix server works properly, but there is an issue with the loadable module.
      Can you post the first lines of the Zabbix log when you start it ? It should display something like :
      Code:
        6455:20160907:111033.185 Loading VmBix module configuration file /etc/zabbix/vmbix_module.conf
      You can test the loadable module if you load it into a Zabbix agent by adding these parameters to the agent configuration file :
      Code:
      LoadModulePath=/usr/lib/zabbix/modules
      LoadModule=vmbix.so
      After an agent restart, you should be able to query VmBix through the agent's loadable module with :
      Code:
      zabbix_agentd -t "vmbix[vm.guest.tools.running,MYVM]"
      zabbix_agentd [19417]: Loading VmBix module configuration file /etc/zabbix/vmbix_module.conf
      vmbix[vm.guest.tools.running,MYVM]       [s|1]
      Hi! thanks for your answer, when i query vmbix throguh agent it works too:

      [root@redmine addons]# zabbix_agentd -t "vmbix[vm.guest.tools.running,SBG_mail]"
      zabbix_agentd [2373]: Loading VmBix module configuration file /etc/zabbix/vmbix_module.conf
      vmbix[vm.guest.tools.running,SBG_mail] [s|1]
      [root@redmine addons]#


      should i add the LoadModule lines in the zabbix_server.conf also?

      Thanks

      Regards,

      David M.

      Comment

      • tatapoum
        Senior Member
        • Jan 2014
        • 185

        #48
        Yes, this is necessary for the Zabbix server/proxy to load the module.

        Comment

        • dmayorgap
          Junior Member
          • Sep 2016
          • 9

          #49
          Originally posted by tatapoum
          Yes, this is necessary for the Zabbix server/proxy to load the module.
          Thanks! it worked when i load the modules in zabbix_server.conf

          Regards,

          David M.

          Comment

          • tatapoum
            Senior Member
            • Jan 2014
            • 185

            #50
            The version 2.5 was released. Here is the CHANGELOG :
            - ***BREAKING CHANGE*** : all parameters in the configuration file vmbix.conf and on the command line must now be in lowercase. The possible arguments in command line have also changed. See the "usage" output.
            - Improved the script vmbix-object-sync
            - Hacked the vm.guest.disk.* methods with a workaround for ZBX-10590. If a disk name ends with \, a space will be added at the end of the disk name. This is controlled by the parameter escapechars in the configuration file. It is set to false by default.
            - Fixed the ESX usage item in the template.
            - Code cleanup and better error handling
            - Added the vm.stats methods :
            vm.stats[threads] indicates the number of working threads
            vm.stats[queue] indicates the size of the connection queue
            vm.stats[requests] indicates the number of requests received by VmBix
            vmbix.stats[cachesize,(vm|esxi|ds|perf|counter|hri|cluster)] indicates the size of each cache
            vmbix.stats[hitrate,(vm|esxi|ds|perf|counter|hri|cluster)] indicates the hit rate of each cache (1.0 = 100% hits)
            - Exposed the following parameters in the configuration
            connecttimeout : the VmWare API connect timeout
            readtimeout : the VmWare API read timeout
            maxconnections : the maximum number of concurrent connections accepted by Vmbix

            Here are the download links for the VmBix packages and its Zabbix loadable module.

            Here are some screenshots of VmBix statistics :


            Last edited by tatapoum; 12-09-2016, 13:03.

            Comment

            • zqx
              Junior Member
              • Dec 2015
              • 6

              #51
              I successfully installed vmbix in my zabbix proxy server.
              But with default proxy config parameter, I see most items is unknown.
              My vcenter contains about 20 vms.
              When I try to get items by command like
              zabbix_agentd -t "vmbix[vm.powerstate,MGTCESQAS01V]"
              It works fine for me.

              [root@MGTZBPPRD01V zabbix]# zabbix_agentd -t "vmbix[vm.powerstate,MGTCESQAS01V]"
              zabbix_agentd [9086]: Warning: Executing command 'hostname -s'
              zabbix_agentd [9086]: VmBix module version 1.0
              zabbix_agentd [9086]: Loading VmBix module configuration file /etc/zabbix/vmbix_module.conf
              vmbix[vm.powerstate,MGTCESQAS01V] [s|1]

              It seems to be a performance problem? How to solve it?

              Thanks.

              Comment

              • Jason
                Senior Member
                • Nov 2007
                • 430

                #52
                I've just upgraded our zabbix server from 2.4 to 3.2 and have upgraded the zabbix module as well..

                Quite a few items are not reporting data and I'm seeing this in the vmbix log

                2017-02-25 16:50:07,750 ERROR [Thread-18] [VmBix.java:2742] An error occurred : java.lang.NullPointerException
                2017-02-25 16:50:07,752 ERROR [Thread-19] [VmBix.java:3172] An error occurred : java.lang.NullPointerException
                2017-02-25 16:50:07,761 ERROR [Thread-18] [VmBix.java:2742] An error occurred : java.lang.NullPointerException
                2017-02-25 16:50:07,763 ERROR [Thread-19] [VmBix.java:3172] An error occurred : java.lang.NullPointerException
                2017-02-25 16:50:07,772 ERROR [Thread-18] [VmBix.java:2742] An error occurred : java.lang.NullPointerException
                2017-02-25 16:50:07,774 ERROR [Thread-19] [VmBix.java:2742] An error occurred : java.lang.NullPointerException
                2017-02-25 16:50:07,783 ERROR [Thread-18] [VmBix.java:3172] An error occurred : java.lang.NullPointerException
                2017-02-25 16:50:07,784 ERROR [Thread-19] [VmBix.java:3725] An error occurred : java.lang.NullPointerException
                ^C

                #zabbix_get -s 127.0.0.1 -p 12050 -k "vmbix.version"
                2.6.0.157

                If I run a check manually then I'm getting this...

                # zabbix_get -s 127.0.0.1 -p 12050 -k "vm.memory[564d564a-f35a-a299-2c11-696e3e72064d,consumed]"
                zabbix_get [23573]: Check access restrictions in Zabbix agent configuration

                Comment

                • Jason
                  Senior Member
                  • Nov 2007
                  • 430

                  #53
                  If I drop the vmbix server down to 2.4 then it seems to run ok again...

                  Comment

                  • hernan
                    Member
                    • Sep 2016
                    • 67

                    #54
                    Hello Guys,

                    I have Zabbix 3.0.1 with vmbix 2.5 installed on my Ubuntu 14.04.

                    The problem that I have is that all values size value are in zeroes.

                    Do you know whay?

                    The zabbix_get command show me the following output:

                    zavatec@zabbixserver:/etc/zabbix/zabbix_agentd.d$ zabbix_agentd -t "vmbix[datastore.size,51034067-64c53b8c-fe41-3440b5e05b40,free]"
                    zabbix_agentd [6004]: Loading VmBix module configuration file /etc/zabbix/vmbix_module.conf
                    vmbix[datastore.size,51034067-64c53b8c-fe41-3440b5e05b40,free] [s|0]

                    Thanks for your help.

                    Regards.

                    Comment

                    • stav13
                      Member
                      • Oct 2013
                      • 66

                      #55
                      I found version 2.5 to be broken, try 2.4

                      Comment

                      • hernan
                        Member
                        • Sep 2016
                        • 67

                        #56
                        Originally posted by stav13
                        I found version 2.5 to be broken, try 2.4
                        Hi stav13, te sale error on the 2.4 versión.

                        The problem is that te zabbix_getd show me te sale info. Do you think that te problem is the vmbix Module?

                        Thanks in avance.

                        Regards

                        Comment

                        • northernlight
                          Junior Member
                          • Mar 2017
                          • 4

                          #57
                          I just started working with Zabbix and VMbix and have a question about configuring the Zabbix agent.
                          If no hostname is specified the agent's configuration file, it can be generated automatically via HostnameItem=system.hostname - but this reading out the real hostname, not the VM UUID which VMbix sets as hostname in Zabbix. Is it possible to change this key to something that can get the VM's UUID, or will I need to change that manually on every single host?

                          Comment

                          • toine7m
                            Member
                            • Feb 2017
                            • 93

                            #58
                            I think that u'll have to change it on every agentd.conf, but for future installation, you can script that

                            You can script the change too, it'll be faster

                            Comment

                            • northernlight
                              Junior Member
                              • Mar 2017
                              • 4

                              #59
                              Originally posted by toine7m
                              I think that u'll have to change it on every agentd.conf, but for future installation, you can script that

                              You can script the change too, it'll be faster
                              I haven't rolled out the agent yet so it would be new installs anyway. How would I do this? I already figured out how to speed up the rollout a bit with manually entering the UUID during the setup (so it gets written to the config file automatically), but I cannot find a zabbix key to read out the UUID automatically.

                              Comment

                              • Jason
                                Senior Member
                                • Nov 2007
                                • 430

                                #60
                                Is there a way of pulling out memory reservations for a virtual using this?

                                Comment

                                Working...