I managed to make the VirtualMachines zenpack running. 1) install the zenpack and restart zopectl 2) Before you add a server to the class /Devices/Server/ESX you have to go to the zProperties of that class en fill in at the zPythonClass this rule of text
Code: ZenPacks.vmware.VirtualMachines.VMDevice This add's the Virtual machines tab to every new device you add to /Devices/Server/ESX If you already have a device in the class ESX you have to move it to another class and move it back to the ESX class. 3) add a esx server to /Devices/Server/ESX 4) Now you see the tab Virtual machines. To make the CPU_Utilization graph work you have to make a change in the template. 1) Navigate to you esx server and go to Virtual Machines. Click on a virutal machine. 2) Click on the tab templates 3) Click on the VirtualMachine template 4) Click on the Data source CPU_Utilization 5) Check if the path for the check_esx2 command is set correctly, test it thru your terminal I get when I put Code: /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vmware.VirtualMachines-1.2-py2.4.egg/ZenPacks/vmware/VirtualMachines/libexec/check_esx2 this Code: No ESX server hostname specified with -H This means the path is set correct. Now the fault is in the sed command. I think that the result of the check_esx2 command wasn't correctly parsed. I found this thru the command zencommand run --device=devicename.domain.local -v10 I saw that the check_ping command has parsed the output to Code: DEBUG:zen.zencommand:The result of "/usr/local/zenoss/common/libexec/check_ping -H esx-cr01.iconos.be -w 180,100% -c 300,100% | sed -e 's# - Packet loss#|LOSS#;s#%,##;s#ms##;s# = #=#g'" was "'PING OK|LOSS=28 RTA=1.03 |rta=1.031000ms;180.000000;300.000000;0.000000 pl=28%;100;100;0\n'" DEBUG:zen.zencommand:Queueing event {'severity': 0, 'performanceData': 'LOSS=28 RTA=1.03 |rta=1.031000ms;180.000000;300.000000;0.000000 pl=28%;100;100;0', 'component': '', 'agent': 'zencommand', 'summary': 'PING OK', 'manager': 'localhost', 'eventKey': 'ipcheck', 'device': 'esx-cr01.iconos.be', 'message': 'PING OK', 'eventClass': '/Status/Ping'} You see that the result is devided in vertical bars. But with the esx_check2 is wasn't. So... 6) on the Datasource CPU_utilization you edit the command from Code: /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vmware.VirtualMachines-1.2-py2.4.egg/ZenPacks/vmware/VirtualMachines/libexec/check_esx2 -N -H ${dev/id} -C ${here/zSnmpCommunity} -v ${here/vmDisplayName} -l CPU -w 90 -c 95 |sed -e 's/.*CPU\susage\sis\s/cpuUtil=/;s#%##;s/on.*(/cpuSec=/;s#s##;s/average.*$$//' TO Code: /usr/local/zenoss/zenoss/ZenPacks/ZenPacks.vmware.VirtualMachines-1.2-py2.4.egg/ZenPacks/vmware/VirtualMachines/libexec/check_esx2 -N -H ${dev/id} -C ${here/zSnmpCommunity} -v ${here/vmDisplayName} -l CPU -w 90 -c 95 |sed -e 's/.*CPU\susage\sis\s/|cpuUtil=/;s#%##;s/on.*(/cpuSec=/;s#s##;s/average.*//' So delete the two $$ on the end and add a vertical bar | before cpuUtil Now the command should be parsed correctly. You can test this in you terminal and if you get something like Code: |cpuUtil=5.88 cpuSec=68 I have Zenoss Core 2.4.1 on a Ubunut 8.04.2 and installed the ZenPack: ZenPacks.vmware.VirtualMachines-1.2-py2.4.egg Sorry for my bad English. If you have a question I'm glad to help you. -------------------- m2f -------------------- Read this topic online here: http://forums.zenoss.com/viewtopic.php?p=35857#35857 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list zenoss-users@zenoss.org http://lists.zenoss.org/mailman/listinfo/zenoss-users