We confirmed that the free ESXi version does not allow SNMP gets, only traps.
The original script was taken from here:
http://communities.vmware.com/docs/DOC-7170
Modified script:
http://mirakulo.com/pub/esxi/check_esx_wbmem.py
We added Fan and power supply, hinted from this page:
http://www.stephenjc.com/2009/01/whatsup-vmware-esxi-monitor-these.html
Use this guide to add the Data source:
http://www.zenoss.com/community/docs/howtos/create-modify-nagios-templates
Added as template under:
/Devices /Server /VMWare /ESXi /Templates /esxi-monitor /check_esx_wbmem
Name: check_esx_wbmem
Source Type: Command
Enable true
Use SSH false
Component: blank
Event class: /VMWare/ESXi
Severity: Error
Cycle time: 60
Parser: auto
Command template:
/usr/local/zenoss/python/bin/python /opt/zenoss/libexec/check_esx_wbmem.py https://${dev/manageIp}:5989 root passwd
To bind this template to ESXi nodes, go to the device:
Example: /Devices /Server /VMWare /ESXi /esxi-01.prod.corp.org
then to its templates:
http://site/zport/dmd/Devices/Server/VMWare/ESXi/devices/esxi-01.prod.corp.org/objTemplates
Menu > Bind templates > Select both the default plus newly created esxi-monitor perf template.
Go back to ESXi suborg, ie:
/Devices /Server /VMWare /ESXi
Access zProperties:
http://site/zport/dmd/Devices/Server/VMWare/ESXi/zPropertyEdit
Change zCommandCommandTimeout from 15 to 30.
zencommand restart.
The original script was taken from here:
http://communities.vmware.com/docs/DOC-7170
Modified script:
http://mirakulo.com/pub/esxi/check_esx_wbmem.py
We added Fan and power supply, hinted from this page:
http://www.stephenjc.com/2009/01/whatsup-vmware-esxi-monitor-these.html
Use this guide to add the Data source:
http://www.zenoss.com/community/docs/howtos/create-modify-nagios-templates
Added as template under:
/Devices /Server /VMWare /ESXi /Templates /esxi-monitor /check_esx_wbmem
Name: check_esx_wbmem
Source Type: Command
Enable true
Use SSH false
Component: blank
Event class: /VMWare/ESXi
Severity: Error
Cycle time: 60
Parser: auto
Command template:
/usr/local/zenoss/python/bin/python /opt/zenoss/libexec/check_esx_wbmem.py https://${dev/manageIp}:5989 root passwd
To bind this template to ESXi nodes, go to the device:
Example: /Devices /Server /VMWare /ESXi /esxi-01.prod.corp.org
then to its templates:
http://site/zport/dmd/Devices/Server/VMWare/ESXi/devices/esxi-01.prod.corp.org/objTemplates
Menu > Bind templates > Select both the default plus newly created esxi-monitor perf template.
Go back to ESXi suborg, ie:
/Devices /Server /VMWare /ESXi
Access zProperties:
http://site/zport/dmd/Devices/Server/VMWare/ESXi/zPropertyEdit
Change zCommandCommandTimeout from 15 to 30.
zencommand restart.
Comments
I'm just new on the subject of ESX(i) and snmp..
Is there MIB also for zenoss, to show the entries for esxi in a nice way?
The most important thing is can see if a hd crashed or any other hardware component fails...
When I test the check I only get a message with an "OK" as a result. is this correct? is there any way to show details on the zenoss's dashboard?
Thanks!
Nicolas Solop
ESXi only supports snmp traps and not snmp get requests like ESX. So you might be able to trap info regarding major things.
Jeeva,
Yea this should work under ESX but it is a lot easier under ESX since you can install net-snmp and do it using snmp and making setup much easier.
Thanks
Robert
great! But how can i mount the file in my runnin zenoss? Sorry but i am a noob in zenoss. :)