Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: vmotion link on a specific cluster

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    18

    vmotion link on a specific cluster

    Hello,

    I'm trying to use the vmotion plugin for my installation.
    But the vcenter of the company has something like 25 clusters for each sites. I only want to check my cluster. Is there any options to not discover the whole vcenter and only one cluster ?

    Thanks

  2. #2
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,130

    Re: vmotion link on a specific cluster

    No sorry. But the links will be only created for hosts that are already defined, it will just be far slower.
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3
    Junior Member
    Join Date
    Feb 2013
    Posts
    18

    Re: vmotion link on a specific cluster

    I'm back with my problem.
    I read the script and replaced this line which display all the esx hosts

    list_host_cmd = [check_esx_path, '-D', vcenter, '-u', user, '-p', password, '-l', 'runtime', '-s', 'listhost']

    by this one which display the esx hosts of my cluster (what i want)

    list_host_cmd = [check_esx_path, '-D', vcenter, ' -C mycluster -u', user, '-p', password, '-l', 'runtime', '-s', 'listhost']

    I ran this command manually and it works but with the script i have this error :

    Traceback (most recent call last):
    File "/usr/local/shinken/libexec/link_vmware_host_vm.py", line 183, in <module>
    main(**opts.__dict__)
    File "/usr/local/shinken/libexec/link_vmware_host_vm.py", line 131, in main
    hosts = get_vmware_hosts(check_esx_path, vcenter, user, password)
    File "/usr/local/shinken/libexec/link_vmware_host_vm.py", line 65, in get_vmware_hosts
    hsts_raw = parts[1].split('|&#039[0]
    IndexError: list index out of range

  4. #4
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,130

    Re: vmotion link on a specific cluster

    There should be an additional line output by the command that should be catch by the script in oder to avoid this crash.
    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #5
    Junior Member
    Join Date
    Feb 2013
    Posts
    18

    Re: vmotion link on a specific cluster

    Found the bug (syntax..), and now it works

    list_host_cmd = [check_esx_path, '-D', vcenter, '-C', 'mycluster' -u', user, '-p', password, '-l', 'runtime', '-s', 'listhost']

    Hope this trick can help

  6. #6
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,130

    Re: vmotion link on a specific cluster

    Do you have a patch?
    No direct support by personal message. Please open a thread so everyone can see the solution

  7. #7
    Junior Member
    Join Date
    Feb 2013
    Posts
    18

    Re: vmotion link on a specific cluster

    Not really, i just edited the script link_vmware_host_vm.py at line 60 and added the option -C to pick a specific Cluster. Otherwise the full scan takes too long

  8. #8
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,130

    Re: vmotion link on a specific cluster

    So aside this -C the script is unchanged? I can add such an option so
    No direct support by personal message. Please open a thread so everyone can see the solution

  9. #9
    Junior Member
    Join Date
    Feb 2013
    Posts
    18

    Re: vmotion link on a specific cluster

    Yes rest is unchanged.
    It'd be nice to add this option as an argument.

  10. #10
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,130

    Re: vmotion link on a specific cluster

    Indeed

    I open a github ticket to remember it
    No direct support by personal message. Please open a thread so everyone can see the solution

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •