Archived community.zenoss.org | full text search
Skip navigation
1 2 Previous Next 38368 Views 21 Replies Latest reply: Oct 12, 2012 5:49 AM by Ryan Matte RSS
Matt Ray Rank: Zen Master 2,484 posts since
Apr 5, 2008
Currently Being Moderated

Mar 9, 2010 6:22 PM

New VMware ESXi ZenPack

Thanks to Zenoss Master David Nalley for providing his VMware ESXi ZenPack.  Currently this ZenPack provides monitoring for host hardware of  VMware ESXi. This works on supported host platforms, and monitors fans,  temperature, RAID arrays, controllers, individual drives, raid card  batteries, power supplies, and storage.

 

The WBEM Classes that it checks are:

CIM_ComputerSystem
CIM_NumericSensor
CIM_Memory
CIM_Processor
CIM_RecordLog
OMC_DiscreteSensor
OMC_Fan
OMC_PowerSupply
VMware_StorageExtent
VMware_Controller
VMware_StorageVolume
VMware_Battery
VMware_SASSATAPort

 

Currently  it checks - and if ok, reports OK, if there is a problem, it creates an  event listing the specific component and problem.(ie which DIMM Slot a  problem is occurring with and what the problem is)

 

Thanks David!

  • fearthepenguin Rank: White Belt 75 posts since
    Mar 20, 2007
    Currently Being Moderated
    1. Mar 9, 2010 8:18 PM (in response to Matt Ray)
    Re: New VMware ESXi ZenPack

    bombs out with

     

    File "./check_esx_wbmem.py", line 78, in ?
        instance_list = wbemclient.EnumerateInstances(classe)
      File "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/lib/pywbem/cim_operations.py", line 403, in EnumerateInstances
        ClassName = CIMClassName(ClassName),
      File "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/lib/pywbem/cim_operations.py", line 219, in imethodcall
        raise CIMError(code, tt[1]['DESCRIPTION'])
    pywbem.cim_operations.CIMError: (6, u'The requested object could not be found')

     

    on 2.5.0. I have verified correct username and password.

  • fearthepenguin Rank: White Belt 75 posts since
    Mar 20, 2007
    Currently Being Moderated
    2. Mar 9, 2010 8:36 PM (in response to fearthepenguin)
    Re: New VMware ESXi ZenPack

    upgraded to 2.5.2 ,  same error.  Also seems to crash zenmodeler, but that could be unrelated.

     

    Traceback (most recent call last):

      File "./check_esx_wbmem.py", line 78, in ?

        instance_list = wbemclient.EnumerateInstances(classe)

      File "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/lib/pywbem/cim_operations.py", line 403, in EnumerateInstances

        ClassName = CIMClassName(ClassName),

      File "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/lib/pywbem/cim_operations.py", line 219, in imethodcall

        raise CIMError(code, tt[1]['DESCRIPTION'])

    pywbem.cim_operations.CIMError: (6, u'The requested object could not be found')

  • hbokh Rank: White Belt 16 posts since
    Jan 10, 2009
    Currently Being Moderated
    3. Mar 10, 2010 10:10 AM (in response to Matt Ray)
    Re: New VMware ESXi ZenPack

    Great - thanks! I've been waiting for this one.

     

    But where (in zProperties? "zCommandUsername"?) do I set the login and password to the HTTPS-server? All I get now are error-events...

     

    Cmd:  /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/check_esx_wbmem.py  https://192.168.x.y:5989 user  - Code: 1 - Msg: General error

     

    Update:

     

    I found out it has to be "zCommandUsername" and "zCommandpassword":

     

    ../ZenPacks/dnalley/VMwareESXi# grep -r zComm *
    objects/objects.xml:${here/ZenPackManager/packs/ZenPacks.dnalley.VMwareESXi/path}/check_esx_wbmem.py https://${dev/manageIp}:5989 ${dev/zCommandUsername} ${dev/zCommandPassword}

     

    Right, the password is there too now, but still a general error:

     

    Cmd:  /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/check_esx_wbmem.py  https://192.168.x.y:5989 user password - Code: 1 - Msg: General error

     

    Running the above command on the CLI on the Zenoss-host does work however.

     

    Update 2:

     

    Using the test-option in the template reveals even more issues:

     

    Executing command
    /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/check_esx_wbmem.py  https://192.168.x.y:5989 user password
    against 192.168.x.y

    'import site' failed; use -v for traceback
    Traceback (most recent call last):
    File  "/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/check_esx_wbmem.py",  line 24, in <module>
    import sys,os
    ImportError: No module named os


    DONE in 0 seconds

     

    Message was edited by: hbokh

  • trosebrook Newbie 4 posts since
    Mar 11, 2010
    Currently Being Moderated
    4. Mar 11, 2010 4:30 PM (in response to hbokh)
    Re: New VMware ESXi ZenPack

    I had the same error, but running zenoss restart as the zenoss user fixed it....

  • Jaajog Newbie 2 posts since
    Mar 12, 2010
    Currently Being Moderated
    5. Mar 12, 2010 1:35 AM (in response to fearthepenguin)
    Re: New VMware ESXi ZenPack

    I get the exact same error as fearthepenguin, fresh VMware image, 2.5.2

     

     

    /home/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/check_esx_wbmem.py https://ip root password
    Traceback (most recent call last):
      File "/home/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/check_esx_wbmem.py", line 78, in ?
        instance_list = wbemclient.EnumerateInstances(classe)
      File "/home/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/lib/pywbem/cim_operations.py", line 403, in EnumerateInstances
        ClassName = CIMClassName(ClassName),
      File "/home/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/lib/pywbem/cim_operations.py", line 219, in imethodcall
        raise CIMError(code, tt[1]['DESCRIPTION'])
    pywbem.cim_operations.CIMError: (6, u'The requested object could not be found')
  • hbokh Rank: White Belt 16 posts since
    Jan 10, 2009
    Currently Being Moderated
    6. Mar 12, 2010 6:25 AM (in response to trosebrook)
    Re: New VMware ESXi ZenPack

    I had the same error, but running  zenoss restart as the zenoss user fixed it....

     

    That's somewhat of a fix indeed. I get some events now.

    Weird... because restarting the zenoss_stack from /etc/init.d/ as root (Ubuntu Linux 9.10 x86_64) won't!

  • Ekstreme Rank: White Belt 11 posts since
    Mar 18, 2010
    Currently Being Moderated
    7. Mar 18, 2010 1:01 AM (in response to hbokh)
    Re: New VMware ESXi ZenPack

    I was having th esame issue as hbokh.  Turns out the script does not like the complex password that I had set for my root account. Started and ended with a #

     

    Once I changed it to somethign simple (temporarily I hope) it worked.

     

    Hopefuly this can be corrected

  • maayanay Rank: White Belt 23 posts since
    Jan 5, 2010
    Currently Being Moderated
    8. Mar 25, 2010 10:07 PM (in response to Matt Ray)
    Re: New VMware ESXi ZenPack

    everything seems to work ok but there is no Data collected.

     

    • i created the device path /device/server/vmware/esxi
    • i added the Zenpack with no problems.
    • i varified that the ESXi template is added to ESXi organizer
    • i discovered a new ESXi device
    • no data is collected - also no errors on the output or in the new discovered device events. Model Device output:
    2010-03-26 02:02:41INFOzen.UtilsExecuting command:  /usr/local/zenoss/zenoss/bin/zenmodeler run --now --monitor localhost -F  -d 192.168.x.x --weblog
    2010-03-26 02:02:43INFOzen.ZenModelerConnecting to localhost:8789
    2010-03-26 02:02:43INFOzen.ZenModelerConnected to ZenHub
    2010-03-26 02:02:43INFOzen.ZenModelerCollecting for device 192.168.x.x
    2010-03-26 02:02:43INFOzen.ZenModelerNo WMI plugins found for 192.168.x.x
    2010-03-26 02:02:43INFOzen.ZenModelerNo Python plugins found for  192.168.x.x
    2010-03-26 02:02:43INFOzen.ZenModelerNo command plugins found for  192.168.x.x
    2010-03-26 02:02:43INFOzen.ZenModelerSNMP monitoring off for 192.168.x.x
    2010-03-26 02:02:43INFOzen.ZenModelerNo portscan plugins found for  192.168.x.x
    2010-03-26 02:02:43INFOzen.ZenModelerScan time: 0.17 seconds
    2010-03-26 02:02:43INFOzen.ZenModelerDaemon ZenModeler shutting down
    2010-03-26 02:02:45INFOzen.PerformanceConfconfiguration collected

     

    • Test ESXi template Data Source look ok :
    Executing command
    /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.dnalley.VMwareESXi-1.0-py2.4.egg/ZenPacks/dnalley/VMwareESXi/check_esx_wbmem.py  https://192.168.x.x:5989 root ******
    against 192.168.x.x

    OK


    DONE in 3 seconds


    But after all this there is no data in the Tabs (Hardware,status,OS,Perf)!!!!!!

     

    please help!

  • Ekstreme Rank: White Belt 11 posts since
    Mar 18, 2010
    Currently Being Moderated
    9. Mar 26, 2010 12:35 AM (in response to maayanay)
    Re: New VMware ESXi ZenPack

    I don’t think this ZenPack actually shows any info. Just warns if there is a problem. Correct me if I'm wrong

  • maayanay Rank: White Belt 23 posts since
    Jan 5, 2010
    Currently Being Moderated
    10. Mar 26, 2010 7:35 AM (in response to Ekstreme)
    Re: New VMware ESXi ZenPack

    the first post said:

     

    "Currently  it checks - and if ok, reports OK, if there is a problem, it  creates an  event listing the specific component and problem.(ie which  DIMM Slot a  problem is occurring with and what the problem is)"

  • maayanay Rank: White Belt 23 posts since
    Jan 5, 2010
    Currently Being Moderated
    11. Mar 29, 2010 2:05 PM (in response to Matt Ray)
    Re: New VMware ESXi ZenPack

    Can someone help with this?

     

    someone installed it already and it is working?

    can you tell me what should i see in the Zenoss?

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    12. Mar 30, 2010 2:23 PM (in response to maayanay)
    Re: New VMware ESXi ZenPack

    Well, nothing really - you bind it to the class you want to have your

    ESXi hosts in, and then it goes... Nothing happens unless there is a

    problem, in which case an event is created. It doesn't claim to do

    graphs for instance.

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

     

     

     

    maayanay wrote, On 3/29/2010 2:05 PM:

    Can someone help with this?

     

    someone installed it already and it is working?

    can you tell me what should i see in the Zenoss?

    >

  • maayanay Rank: White Belt 23 posts since
    Jan 5, 2010
    Currently Being Moderated
    13. Mar 30, 2010 4:41 PM (in response to jmp242)
    Re: New VMware ESXi ZenPack

    it si not suppose to show something like

     

    Processor: OK

    Storage: OK

    Fans: OK

     

    like in the ESXi GUI?!?

     

    do i have some way to make sure that zenoss is really able to monitor it correctly without taking out a DISK.

     

    I ask this because all of my Zenoss tabs for this device are totaly empty i even don't have the OS MODEL, OS version, SYSTEM UP TIME

    nothing... is this ok?

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007
    Currently Being Moderated
    14. Mar 31, 2010 9:12 AM (in response to maayanay)
    Re: New VMware ESXi ZenPack

    I can't say, I didn't write the zenpack, nor do I use it - that's just

    what the documentation says. Of course, feel free to improve the zenpack

    and submit updates. I'm sure the community would benefit.

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

     

     

     

    maayanay wrote, On 3/30/2010 4:41 PM:

    it si not suppose to show something like

     

    Processor: OK

    Storage: OK

    Fans: OK

     

    like in the ESXi GUI?!?

     

    do i have some way to make sure that zenoss is really able to monitor it correctly without taking out a DISK.

     

    I ask this because all of my Zenoss tabs for this device are totaly empty i even don't have the OS MODEL, OS version, SYSTEM UP TIME

    nothing... is this ok?

    >

1 2 Previous Next

More Like This

  • Retrieving data ...