Ad Widget

Collapse

VmBix 1.1.1 released

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

    #1

    VmBix 1.1.1 released

    Hi,

    1.1.2-beta is out.

    You will find the jar and zip archive here : https://drive.google.com/folderview?...p=sharing#list.

    The website is still https://code.google.com/p/vmbix/.

    Here is the changelog :
    1.1.2-beta
    - Added performance counters for ESX hosts :
    Code:
    # zabbix_get -s localhost -p 12050 -k esx.counter[esx0.domain.local,cpu.latency,,900]
    55
    - Added a default value for the performance counters interval (300s)
    - Added a python wrapper script to query vmbix :
    Code:
    # python vmbixget.py vm.memory[VM01,active]
    307
    This script must be put in the Zabbix externalscripts folder. This script is useful if you want to monitor your virtual machines also with a Zabbix agent, because VmBix already acts as a Zabbix agent.
    - Added new Zabbix templates :
    template_vmbix_vcenter.xml -> Query and discover the VMWare environment in "agent" mode.
    template_vmbix_vm.xml -> Query the VMs in "agent" mode.
    template_vmbix_esx.xml -> Query the ESX hosts in "agent" mode.
    template_vmbix_vcenter_wrapper.xml -> Query and discover the VMWare environment using the python wrapper script.
    template_vmbix_esx_wrapper.xml -> Query the VMs using the python wrapper script.
    template_vmbix_vm_wrapper.xml -> Query the VMs using the python wrapper script.


    I've updated Vmbix to v1.1.1.
    You will find the jar and zip archive here : https://drive.google.com/folderview?...p=sharing#list. Or you can clone the SVN repo and compile it yourself.

    The website is still https://code.google.com/p/vmbix/.

    Here is the changelog :
    1.1.1
    - Added performance counters for ESX hosts.
    - Added new methods for datastores (danrog):
    Code:
     datastore.size[name,provisioned]
     datastore.size[name,uncommitted]
    - vmbix now displays a version number when called without arguments.
    Last edited by tatapoum; 09-05-2014, 11:45. Reason: Version 1.1.2-beta released
  • sgiaicheca
    Junior Member
    • Feb 2014
    • 18

    #2
    Thanks for this newer version, but when i start vmbixd i've got this error



    May 7 18:19:40 localhost vmbixd: vm.memory[name,shared]
    May 7 18:19:40 localhost vmbixd: vm.memory[name,swapped]
    May 7 18:19:40 localhost vmbixd: vm.memory[name,total]
    May 7 18:19:40 localhost vmbixd: vm.counter[name,counter,[instance,interval]]
    May 7 18:19:40 localhost vmbixd: vm.powerstate[name]
    May 7 18:19:40 localhost vmbixd: vm.status[name]
    May 7 18:19:40 localhost vmbixd: vm.storage.committed[name]
    May 7 18:19:40 localhost vmbixd: vm.storage.uncommitted[name]
    May 7 18:19:40 localhost vmbixd: vm.storage.unshared[name]
    May 7 18:19:40 localhost vmbixd: java.lang.NumberFormatException: null

    thanks for your help

    Comment

    • tatapoum
      Senior Member
      • Jan 2014
      • 185

      #3
      Do you use vmbix init script as explained on the website ?
      How does your config file look like?

      Comment

      • tatapoum
        Senior Member
        • Jan 2014
        • 185

        #4
        I see. A new parameter was introduced in 1.1.0, setting the default interval for performance metrics queries.
        Add this to vmbix.conf :
        Code:
        interval=300
        I'm going to improve the error handling and add a message for this.

        Comment

        • sgiaicheca
          Junior Member
          • Feb 2014
          • 18

          #5
          Vmbix installation was ok with the first version. I've got This error since vmbix.jar has been replaced with your version. If i replace the original version, vmbix Start without errors

          Comment

          • tatapoum
            Senior Member
            • Jan 2014
            • 185

            #6
            Dis you add the interval parameter?

            Comment

            • sgiaicheca
              Junior Member
              • Feb 2014
              • 18

              #7
              Thanks a lot with interval parameter vmbix is OK

              Comment

              • sgiaicheca
                Junior Member
                • Feb 2014
                • 18

                #8
                another help ....

                in another post you put a script to discover VMs

                Requirements are zabbix_api and zget
                When i run this script i've got zabbix_api import error
                Please could you help me ? i'm a newbie with zabbix_api

                Comment

                • tatapoum
                  Senior Member
                  • Jan 2014
                  • 185

                  #9
                  What do you see in the /var/log/zabbix/vmbix-discovery.log file ? Are you sure that your zabbix URL and credentials are correct ?

                  Comment

                  • aib
                    Senior Member
                    • Jan 2014
                    • 1615

                    #10
                    Hello!

                    Thank you for nice tool to monitor VMWare environment.
                    I try it and it works as a black box.
                    But because of lack of examples/templates, I cannot integrate it to Zabbix environment.

                    It was deleted with the tears in my eyes

                    Sorry.
                    Sincerely yours,
                    Aleksey

                    Comment

                    • sgiaicheca
                      Junior Member
                      • Feb 2014
                      • 18

                      #11
                      vmbix-discovery has been configured but when i try to launch http://zabbixserver/api_jsonrpc.php there an error 404

                      Another problem, when i import your template there is an error
                      Cannot find value map "VMWare ESX Connection Status" used for item "ESX Connection state" on "Template VMBIX ESX".


                      thanks

                      Comment

                      • tatapoum
                        Senior Member
                        • Jan 2014
                        • 185

                        #12
                        Originally posted by sgiaicheca
                        Thanks a lot with interval parameter vmbix is OK
                        I've added a 1.1.2-beta release. It solves the issue with the "interval" parameter. The zip also contains a bunch of Zabbix templates and a python script the query VmBix. Could you please test them and give me a feedback ?

                        Comment

                        • tatapoum
                          Senior Member
                          • Jan 2014
                          • 185

                          #13
                          Originally posted by sgiaicheca
                          vmbix-discovery has been configured but when i try to launch http://zabbixserver/api_jsonrpc.php there an error 404

                          Another problem, when i import your template there is an error
                          Cannot find value map "VMWare ESX Connection Status" used for item "ESX Connection state" on "Template VMBIX ESX".


                          thanks
                          You must replace "zabbixserver" with your Zabbix server hostname for the URL to be valid.
                          The template that is attached to the other thread makes use of value maps. I think I posted them in the thread. You can also test the templates in the 1.1.2-beta version zip. I removed the value maps.

                          Comment

                          • sgiaicheca
                            Junior Member
                            • Feb 2014
                            • 18

                            #14
                            I've uploaded new Template v 1.1.2, all is ok

                            url zabbix server in vmbix-discovery was written correctly but i got this error
                            Traceback (most recent call last):
                            File "./vmbix-discovery.py", line 12, in <module>
                            from zabbix_api import ZabbixAPI
                            ImportError: cannot import name ZabbixAPI

                            I've tried a simple script auth.pl, and i got this error
                            Can't locate JSON/RPC/Client.pm

                            Comment

                            • tatapoum
                              Senior Member
                              • Jan 2014
                              • 185

                              #15
                              Did you install zabbix_api (https://github.com/gescheit/scripts/tree/master/zabbix) ?
                              Code:
                              pip install zabbix_api
                              Should do it.

                              Comment

                              Working...