First download Activestate Python 2.7
https://www.activestate.com/activepython/downloads
Then open cmd and enter:
python -m easy_install pywbem
Download nagios vmware plugin from this post its attached or here: https://exchange.nagios.org/directory/Plugins/Operating-Systems/%2A-Virtual-Environments/VMWare/Check-hardware-running-VMware-ESXi/details
Put this file somewhere on your drive like C:\Scripts
Open your agents config file (nxagentd.conf) and add:
ExternalParameter = ESXIStatusServer2:python.exe C:\Scripts\check_esx_wbem.py https://ip.to.esxi.server:5989 username password
ExecTimeout = 10000
ip.to.esxi.server=ip to your esxi server
username=username to esxi server
password=password to esxi server
Open upp netxms server configuration and change AgentCommandTimeout = 10000
Restart agent
After a while you can collect this information from you data collection configuration on the server you installed this script.
If nothing shows up you can stop your netxms agent and start it manually in cmd nxagentd.exe -f -D 5 that way you can see whats happening and if something is wrong.
Howto show the DCI on the ESXI node instead of the polling server.
Open up data collection configuration on the node making the checks and right click on the DCI choose move to another node and select your ESXI server.
Then you open your ESXI nodes data collection configuration your DCI check should be here, edit this one and on the General page you will find an option called "source node" select the node that runs the script. Thanks Victor
https://www.activestate.com/activepython/downloads
Then open cmd and enter:
python -m easy_install pywbem
Download nagios vmware plugin from this post its attached or here: https://exchange.nagios.org/directory/Plugins/Operating-Systems/%2A-Virtual-Environments/VMWare/Check-hardware-running-VMware-ESXi/details
Put this file somewhere on your drive like C:\Scripts
Open your agents config file (nxagentd.conf) and add:
ExternalParameter = ESXIStatusServer2:python.exe C:\Scripts\check_esx_wbem.py https://ip.to.esxi.server:5989 username password
ExecTimeout = 10000
ip.to.esxi.server=ip to your esxi server
username=username to esxi server
password=password to esxi server
Open upp netxms server configuration and change AgentCommandTimeout = 10000
Restart agent
After a while you can collect this information from you data collection configuration on the server you installed this script.
If nothing shows up you can stop your netxms agent and start it manually in cmd nxagentd.exe -f -D 5 that way you can see whats happening and if something is wrong.
Howto show the DCI on the ESXI node instead of the polling server.
Open up data collection configuration on the node making the checks and right click on the DCI choose move to another node and select your ESXI server.
Then you open your ESXI nodes data collection configuration your DCI check should be here, edit this one and on the General page you will find an option called "source node" select the node that runs the script. Thanks Victor
