Here's another way to monitor ESXi hardware health using Windows and PowerShell. This is still fairly new and I will post updates if there is interest. To Setup:
On Zabbix:
On a Windows computer (like the one that has vSphere Manager):
Once this is complete, you should be able to open a cmd prompt, go into powershell and test:
unable to post more without error "too many live links". The short version is to schedule the CMD via windows task manager
On Zabbix:
- Import the two templates (one for Dell, one for HP)
- Setup your VMWare host using IP address that you use for vSphere
- Link one of the templates to your host. Even if you don't have Dell or HP hardware you can still use one of the templates and get basic hardware status.
On a Windows computer (like the one that has vSphere Manager):
- Make sure Powershell is installed. It's included in Windows 7 and Windows Server 2008. For Windows XP and windows Server 2003: http://support.microsoft.com/kb/968929
- Make sure Zabbix agent is installed. You will need Zabbix_Sender.exe
- Install the VMWare VSphere Power CLI: See http://www.vmware.com/go/powercli
- Verify that PowerCLI is working.
- To allow local scripts to run, you need to modify PowerShell with "Set-ExecutionPolicy RemoteSigned" http://technet.microsoft.com/en-us/l.../ee176961.aspx
- Save PostVMWareStatus.CMD and PostVMWareStatus.ps1 to a folder. (C:\Scripts was used)
- Edit the CMD file and list the vmware servers that you want to check including the Zabbix host name, ip address, userid and password.
- Edit the PS1 file and update the IP Address of your Zabbix proxy or server. Verify that the path to Zabbix_Sender is correct. On Win7 you might need to right click on the file, properties and "Unblock".
Once this is complete, you should be able to open a cmd prompt, go into powershell and test:
Code:
C:\Scripts>powershell Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved. PS C:\Scripts> .\PostVMWareStatus.ps1 vmware1.localhost.net 192.168.1.1 root password -test
Comment