Archived community.zenoss.org | full text search
Skip navigation
1 2 Previous Next 20198 Views 19 Replies Latest reply: May 1, 2012 9:12 AM by zenuser30 RSS
Matthew Kitchin (public) Rank: Green Belt 170 posts since
Nov 12, 2009
Currently Being Moderated

Oct 27, 2010 11:05 PM

ESX/ESXi esxtop zenpack - listing more than just VMs

I'm trying to get the ESX/ESXi esxtop working, and I'm very excited about it's potential!

-I upgraded from 3.0.2 to 3.0.3 today

-ZenPacks.zenoss.EsxTop = 1.0.2

-ZenPacks.zenoss.ZenossVirtualHostMonitor = 2.3.6

-openssl = 0.9.8e-12.el5_4.6

-ESXi 4.1 host is in /Server/Virtual Machine Host/EsxTop

 

I followed all the steps. Instead of just seeing the guest VMs under components/virtual machines/ I see about 105 extra things. They appear to be processes and devices on the ESXi host.The last test command from the setup steps shows the same thing (see below). It seems as if maybe the --showvms switch isn't working for me?

 

Thanks,

Matthew

 

[zenoss@nshplmon1 libexec]$ $ZENHOME/ZenPacks/Ze*EsxTop*/Z*/z*/E*/libexec/check_esxtop --server=NSHPVMW1.unix --user=root --password=********** --showvms
minfree
vmvisor
fastslab
asyncTokenSlab
asyncTokenFrameSlab
netPageSlab
ScsiCmd
ScsiDeviceCommandFrame
ScsiMidlayerFrameSlab
ScsiFragmentFrameSlab
ScsiSplitInfoSlab
sgArray7

  • bomek Rank: White Belt 29 posts since
    Nov 10, 2009

    I also have this problem with 3.0.3 and ESXi 4.0

  • kkearney ZenossEmployee 118 posts since
    Sep 23, 2008

      The resxtop command doesn't actually supply us with a list of VMs, so the check_esxtop command guesses them given the process listing (as you've already surmised).  At the moment the list of names to ignore is in the check_esxtop script itself, and will need to be modified.

     

    Edit the ZenPack's libexec/check_esxtop command and add the strings to exclude to the VmPrinter class.  Specifically, the 'notVms' array or the 'notVmsRegexes' regular array.

     

    Seeing as how there are two reports of this already, I'm opened an enhancement ticket to make this a little more flexible.

     

    http://dev.zenoss.com/trac/ticket/7461 Allow more flexibility in determing VMs

     

     

    kells

  • cgriebel Rank: Green Belt 175 posts since
    Nov 29, 2007

    I am not seeing a virtual machines tab under components.  I verified that esxtop is configured correctly, device is in /.../EsxTop device class with correct zCommandUsername and password and SNMP community.  When I run a verbose remodel of the ESX host on the command line I see the list of VMs printed via call to check_esxtop (and the CPU and Memory stats as well) but there is no component container for VMs in the web interface.  I see the esxtop memory and cpu stats in the graphs but that is all.

     

    Any ideas?

     

    Chock

  • bomek Rank: White Belt 29 posts since
    Nov 10, 2009

    Regex did the trick. But unfortunately, there is no component showing up on my device page. When i model the device with debug, it seems to work ok but it says: "No change in configuration detected"

  • kkearney ZenossEmployee 118 posts since
    Sep 23, 2008

    When you run

     

    zenmodeler run -v10 -d deviceName

     

      do you see any warning or error messages?  Any tracebacks?  Are there any messages in the zenhub.log file that may indicate other issues?

     

      Also, when you say that there are graphs for the hosts, are the graphs populated with actual data or are they empty?

     

     

    kells

  • cgriebel Rank: Green Belt 175 posts since
    Nov 29, 2007

    As I mentioned when I do a zenmodel I see that esxtop lists the VMs just

    fine.  The graphs for esxtop (cpu and mem) are showing the data so the

    zencommand collection is working fine.

     

    I hadn't thought of looking at zenhub.log.  Indeed it does indicate a

    problem:

    2010-10-29 08:18:45,307 WARNING zen.ApplyDataMap: no

    relationship:guestDevices found on:my-esx-target (

    ZenPacks.zenoss.ZenossVirtualHostMonitor.VirtualMachineHost)

     

    Not sure what I should do about this.

     

    Chock

  • kkearney ZenossEmployee 118 posts since
    Sep 23, 2008

      If there's a relations problem then it's probably best to re-install the ZenossVirtualHostMonitor zenpack and then do a

     

    zenoss restart

     

     

    kells

  • cgriebel Rank: Green Belt 175 posts since
    Nov 29, 2007

    I had done that already.  I just deleted device, re-added, remodeled and

    now I see the Virtual Machines in the components!

     

    Thanks for the suggestion.

  • bomek Rank: White Belt 29 posts since
    Nov 10, 2009

    Nope, no tracebacks. The check_esxtop seem to work fine as it lists all my devices.

     

    The EsxTop monitoring template is graphing the host ok. I just don't see my VMs in components

  • cgriebel Rank: Green Belt 175 posts since
    Nov 29, 2007
    Currently Being Moderated
    13. Oct 29, 2010 10:45 AM (in response to bomek)
    Re: ESX/ESXi esxtop zenpack - listing more than just VMs

    Same problem that I had.  Do you get the relations error in zenhub.log

    that I mentioned earlier in this thread?

     

    Try to reinstall the VirtualHostMonitor zenpack (I didn't remove it, just

    reinstalled it), delete the ESX device and re-add it.  Configure

    zCommandUsername and zCommandPassword, remodel.

     

    See if that works.

  • baptista Newbie 3 posts since
    Feb 27, 2009

    Any way to maybe use an include method for getting vm's? For instance if all our vm's are using fqdn names then only show processes with *.google.com instead of trying to guess/predict all future process names.

     

    I would think both include and exclude options would be needed for maximum flexibility, but for those that have a standard naming convention might be able to use that to filter the vm list.

     

    Robert

1 2 Previous Next

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points