Discussion:
ESX/ESXi esxtop zenpack - listing more than just VMs
zenuser30
2012-04-30 19:46:14 UTC
Permalink
zenuser30 [http://community.zenoss.org/people/zenuser30] created the discussion

"Re: ESX/ESXi esxtop zenpack - listing more than just VMs"

To view the discussion, visit: http://community.zenoss.org/message/66152#66152

--------------------------------------------------------------
When running
/usr/local/zenoss/zenoss/ZenPacks/ZenPacks.zenoss.EsxTop-1.0.3-py2.6.egg/ZenPacks/zenoss/EsxTop/libexec/check_esxtop, there is a column "%VMWAIT". It appears that the VMs actually list a percentage value with other processes list a hypen "-". If filtering is done by "%VMWAIT", then the notVms and notVmsRegexes arrays would not be needed.

It also seems that it does not list powered-off VMs, but I suppose check_esxtop is for "running" processes anways.

Added the following for ESXi 5.0.0 build 469512:

notVms:
|
| 'retiredmem', |
|
| 'ft', |
|
| 'vimuser', |
|
| 'Infrastructure', |
|
| 'MPage', |
|
| 'Heap', |
|
| 'WorldStore', |
|
| 'BadMPNBitmap', |
|
| 'World', |
|
| 'root', |
|
| 'etc', |
|
| 'LPage', |
|
| 'VMXSharedRegion', |
|
| 'imgdb.tgz', |
|
| 'state.tgz', |
|
| 'sfcb_aux', |
|
| 'vprobed', |
|
| 'logging', |
|
| 'vmkeventd', |
|
| 'vmkdevmgr', |
|
| 'sioc', |
|
| 'net-daemons', |
|
| 'memScrubber', |
|
| 'uwdaemons', |
|
| 'vmkiscsid', |
|
| 'terminal', |
|
| 'ssh', |
|
| 'hhrc', |
|

notVmsRegexes

|
| 'asyncTokenSlab-*', |
|
| 'asyncTokenFrameSlab-*', |
|
| 'ScsiCmd-*', |
|
| 'ScsiDeviceCommandFrame-*', |
|
| 'ScsiMidlayerFrameSlab-*', |
|
| 'ScsiFragmentFrameSlab-*', |
|
| 'ScsiSplitInfoSlab-*', |
|
| 'vscsiData-*', |
|
| 'VSCSIAsyncIODoneFrame-*', |
|
| 'vscsiSG-*', |
|
| 'vmmData-*', |
|
| 'pvscsiSlab-*', |
|
| 'ata-pata\.v[0-9]+', |
|
| 'block-cc\.v[0-9]+', |
|
| 'ehci-ehc\.v[0-9]+', |
|
| 's\.v[0-9]+', |
|
| 'ima-qla4\.v[0-9]+', |
|
| 'ipmi-ipm\.v[0-9]+', |
|
| 'misc-cni\.v[0-9]+', |
|
| 'misc-dri\.v[0-9]+', |
|
| 'net-be2n\.v[0-9]+', |
|
| 'net-bnx2\.v[0-9]+', |
|
| 'net-cnic\.v[0-9]+', |
|
| 'net-e100\.v[0-9]+', |
|
| 'net-enic\.v[0-9]+', |
|
| 'net-forc\.v[0-9]+', |
|
| 'net-igb\.v[0-9]+', |
|
| 'net-ixgb\.v[0-9]+', |
|
| 'net-nx-n\.v[0-9]+', |
|
| 'net-r816\.v[0-9]+', |
|
| 'net-s2io\.v[0-9]+', |
|
| 'net-sky2\.v[0-9]+', |
|
| 'net-tg3\.v[0-9]+', |
|
| 'ohci-usb\.v[0-9]+', |
|
| 'sata-ahc\.v[0-9]+', |
|
| 'sata-ata\.v[0-9]+', |
|
| 'sata-sat\.v[0-9]+', |
|
| 'scsi-aac\.v[0-9]+', |
|
| 'scsi-adp\.v[0-9]+', |
|
| 'scsi-aic\.v[0-9]+', |
|
| 'scsi-bnx\.v[0-9]+', |
|
| 'scsi-fni\.v[0-9]+', |
|
| 'scsi-hps\.v[0-9]+', |
|
| 'scsi-ips\.v[0-9]+', |
|
| 'scsi-lpf\.v[0-9]+', |
|
| 'scsi-meg\.v[0-9]+', |
|
| 'scsi-mpt\.v[0-9]+', |
|
| 'scsi-qla\.v[0-9]+', |
|
| 'uhci-usb\.v[0-9]+', |
|
| 'vmsyslogd\.[0-9]+', |
|
| 'vmkplexer-*', |
|
| 'vmkplxrScsiCmdMempool-*', |
|
| 'vmklinux-*', |
|
| 'vmklnx_vmklinux_*', |
|
| 'vmklnxVmallocHeap-*', |
|
| 'vmklnx_tpm_tis-*', |
|
| 'vmklnx_random-*', |
|
| 'vmklnx_usb-*', |
|
| 'vmklnx_ehci-hcd-*', |
|
| 'vmklnx_usb-uhci-*', |
|
| 'vmklnx_hid-*', |
|
| 'nmpCmdFrame-*', |
|
| 'vmw_psp_libCFSLab-*', |
|
| 'vmw_psp_rrCFSLab-*', |
|
| 'vmklnx_libata-*', |
|
| 'vmklnx_usb-storage-*', |
|
| 'vmklnx_cnic_register-*', |
|
| 'vmklnx_bnx2-*', |
|
| 'vmklnx_bnx2_skb-*', |
|
| 'vmklnx_e1000e-*', |
|
| 'vmklnx_e1000e_skb-*', |
|
| 'vmklnx_e1000-*', |
|
| 'vmklnx_e1000_skb-*', |
|
| 'vmklnx_mptsas-*', |
|
| 'vmklnx_usbnet-*', |
|
| 'vmklnx_usbnet_skb-*', |
|
| 'vmklnx_cdc_ether-*', |
|
| 'vmklnx_cdc_ether_skb-*', |
|
| 'vmklnx_cnic-*', |
|
| 'vmklnx_cnic_skb-*', |
|
| 'vmklnx_iscsi_linux-*', |
|
| 'vmklnx_bnx2i-*', |
|
| 'vmklnx_libfc-*', |
|
| 'vmklnx_libfc_skb-*', |
|
| 'vmklnx_libfcoe-*', |
|
| 'vmklnx_libfcoe_skb-*', |
|
| 'vmklnx_ata_piix-*', |
|
| 'vmklnx_megaraid_sas-*', |
|
| 'vmkdevmgr\.[0-9]+', |
|
| 'NFSIOInfo-*', |
|
| 'NFSIOInfoArgsResult-*', |
|
| 'SunRPC_CallInfo-*', |
|
| 'vmklnx_ipmi_msghandler-*', |
|
| 'vmklnx_ipmi_si_drv-*', |
|
| 'vmklnx_ipmi_devintf-*', |
|
| 'HbrBitmapMemPool-*', |
|
| 'lsassd\.[0-9]+', |
|
| 'netlogond\.[0-9]+', |
|
| 'lwiod\.[0-9]+', |
|
| 'dcbd\.[0-9]+', |
|
| 'vmware-usbarbitrator\.[0-9]+', |
|
| 'vaaiCmdFrame-*', |
|
| 'vm-vmx\.[0-9]+', |
|
| 'vm-vmm\.[0-9]+', |
|
| 'sleep\.[0-9]+', |
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/66152#66152]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
zenuser30
2012-05-01 13:12:29 UTC
Permalink
zenuser30 [http://community.zenoss.org/people/zenuser30] created the discussion

"Re: ESX/ESXi esxtop zenpack - listing more than just VMs"

To view the discussion, visit: http://community.zenoss.org/message/66176#66176

--------------------------------------------------------------
Downloaded check_exetop from Keith Howlette (Awesome work!)
http://community.zenoss.org/docs/DOC-12909 http://community.zenoss.org/docs/DOC-12909

Some of the processes were still showing up in our ESX/ESXi 5.0 environment. Made a simple tweak that will hopefully eliminate the need for notVms and notVmsRegexes.

Tested with ESX 4.0, ESX 5.0, and ESXi 5.0. We are using Ubuntu 10.04.3 LTS 64-bit.

Search for: matchRegex = ".*Group Cpu\([0-9]+:([^)]*)\)"
Replace with: matchRegex = ".*\\Vcpu\([0-9]+:([^)].*):[0-9]+:(vmx|vmware-vmx)\)"

Commented the following:
        #elif name in self.notVms:
        #    return False

        #for regex in self.notVmsRegexes:
        #    if regex.match(name):
        #        return False
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/66176#66176]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...