ESXi 5.x template - no perl SDK, pure snmp

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Author
Message
johnpoz
Posts: 1
Joined: Sat Sep 13, 2014 6:43 am

Re: ESXi 5.x template - no perl SDK, pure snmp

#16 Post by johnpoz » Sat Sep 13, 2014 6:47 am

The query for running hosts, etc. doesn't seem to be working.. Something changed in new build of 5.5?

snmpwalk -v2c -c public 192.168.1.40 .1.3.6.1.4.1.6876
iso.3.6.1.4.1.6876.1.1.0 = STRING: "VMware ESXi"
iso.3.6.1.4.1.6876.1.2.0 = STRING: "5.5.0"
iso.3.6.1.4.1.6876.1.4.0 = STRING: "1892794"
iso.3.6.1.4.1.6876.1.5.0 = STRING: "1"
iso.3.6.1.4.1.6876.1.6.0 = STRING: "28"
iso.3.6.1.4.1.6876.3.1.1.0 = Gauge32: 1
iso.3.6.1.4.1.6876.3.2.1.0 = Gauge32: 8354936
iso.3.6.1.4.1.6876.3.2.2.0 = Gauge32: 0
iso.3.6.1.4.1.6876.3.2.3.0 = Gauge32: 8354936
iso.3.6.1.4.1.6876.3.5.1.0 = INTEGER: 6

snmpwalk -v2c -c public 192.168.1.40 .1.3.6.1.4.1.6876.2
iso.3.6.1.4.1.6876.2 = No Such Object available on this agent at this OID

edit: Never mind I had to restart snmp and now its there

ubuntu:~$ snmpwalk -v2c -c public 192.168.1.40 .1.3.6.1.4.1.6876.2
iso.3.6.1.4.1.6876.2.1.1.2.1 = STRING: "pfsense-vm"
iso.3.6.1.4.1.6876.2.1.1.2.5 = STRING: "w7"
iso.3.6.1.4.1.6876.2.1.1.2.9 = STRING: "Ubuntu"
iso.3.6.1.4.1.6876.2.1.1.2.10 = STRING: "XP"
iso.3.6.1.4.1.6876.2.1.1.2.11 = STRING: "storage"
iso.3.6.1.4.1.6876.2.1.1.2.12 = STRING: "w81"

macan
Cacti User
Posts: 141
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: ESXi 5.x template - no perl SDK, pure snmp

#17 Post by macan » Wed Sep 24, 2014 9:34 am

johnpoz wrote:The query for running hosts, etc. doesn't seem to be working.. Something changed in new build of 5.5?

snmpwalk -v2c -c public 192.168.1.40 .1.3.6.1.4.1.6876
iso.3.6.1.4.1.6876.1.1.0 = STRING: "VMware ESXi"
iso.3.6.1.4.1.6876.1.2.0 = STRING: "5.5.0"
iso.3.6.1.4.1.6876.1.4.0 = STRING: "1892794"
iso.3.6.1.4.1.6876.1.5.0 = STRING: "1"
iso.3.6.1.4.1.6876.1.6.0 = STRING: "28"
iso.3.6.1.4.1.6876.3.1.1.0 = Gauge32: 1
iso.3.6.1.4.1.6876.3.2.1.0 = Gauge32: 8354936
iso.3.6.1.4.1.6876.3.2.2.0 = Gauge32: 0
iso.3.6.1.4.1.6876.3.2.3.0 = Gauge32: 8354936
iso.3.6.1.4.1.6876.3.5.1.0 = INTEGER: 6

snmpwalk -v2c -c public 192.168.1.40 .1.3.6.1.4.1.6876.2
iso.3.6.1.4.1.6876.2 = No Such Object available on this agent at this OID

edit: Never mind I had to restart snmp and now its there

ubuntu:~$ snmpwalk -v2c -c public 192.168.1.40 .1.3.6.1.4.1.6876.2
iso.3.6.1.4.1.6876.2.1.1.2.1 = STRING: "pfsense-vm"
iso.3.6.1.4.1.6876.2.1.1.2.5 = STRING: "w7"
iso.3.6.1.4.1.6876.2.1.1.2.9 = STRING: "Ubuntu"
iso.3.6.1.4.1.6876.2.1.1.2.10 = STRING: "XP"
iso.3.6.1.4.1.6876.2.1.1.2.11 = STRING: "storage"
iso.3.6.1.4.1.6876.2.1.1.2.12 = STRING: "w81"
Did you see, message from user ksdjfh (31 May 2013, 21:06). He had the same problem. I don't know why, I haven't any experiences with this problem.

kelargo
Posts: 16
Joined: Wed Jun 16, 2010 11:01 am

Re: ESXi 5.x template - no perl SDK, pure snmp

#18 Post by kelargo » Wed Jan 21, 2015 4:13 pm

Hello,

I am trying to get this template to work.. I finding an error with two xML queries. I'm trying to understand how to debug these queries and I'm not very familar with xml scripting. Is there a way to execute these from the command line to get better debug info?
snmp on the ESXi and the OIDs are correct.. I can get values from snmpwalk.

Code: Select all

Running data query [29].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/esxi_cpu.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/esxi_cpu.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/esxi_cpu.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/esxi_cpu.xml'
and

Code: Select all

Data Query Debug Information
+ Running data query [30].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/esxi_hw.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/esxi_hw.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/esxi_hw.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/esxi_hw.xml'

kelargo
Posts: 16
Joined: Wed Jun 16, 2010 11:01 am

Re: ESXi 5.x template - no perl SDK, pure snmp

#19 Post by kelargo » Wed Jan 21, 2015 4:29 pm

never mind. file permissions on the XML files were not correct.

nice template, btw! :-)

fmoreira86
Posts: 6
Joined: Mon Jul 28, 2014 10:20 am

Re: ESXi 5.x template - no perl SDK, pure snmp

#20 Post by fmoreira86 » Wed Feb 25, 2015 5:04 am

Hi!

On CPU and HW I'm getting something like:

+ Running data query [18].
+ Found type = '3' [SNMP Query].
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/esxi_cpu.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/esxi_cpu.xml'
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/esxi_cpu.xml'
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/esxi_cpu.xml'

Permissions are ok.

Any hints?

Version 0.8.8c

Thanks

macan
Cacti User
Posts: 141
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: ESXi 5.x template - no perl SDK, pure snmp

#21 Post by macan » Thu Feb 26, 2015 10:24 am

fmoreira86 wrote:Hi!

On CPU and HW I'm getting something like:

+ Running data query [18].
+ Found type = '3' [SNMP Query].
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/esxi_cpu.xml'
+ Error parsing XML file into an array.
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/esxi_cpu.xml'
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/esxi_cpu.xml'
+ Could not find data query XML file at '/var/www/cacti/resource/snmp_queries/esxi_cpu.xml'

Permissions are ok.

Any hints?

Version 0.8.8c

Thanks
Did you copy xml file to right directory?
Please send result of this command:
ls -al /var/www/cacti/resource/snmp_queries/

arnoldkcentos
Posts: 5
Joined: Sat Aug 22, 2015 9:18 pm

Re: ESXi 5.x template - no perl SDK, pure snmp

#22 Post by arnoldkcentos » Sat Aug 22, 2015 9:22 pm

Hello,

I have a generic Q

I like the template, gr8 job

I am new to this tool..

mine is 32 CPU Host, i would like to get rid of the H/w piece of the graphs ( is it possible) , also want to re-arrange the graphs location on home page

Also this one works for a single host, i wanted to add a cluster at a time, is that possible ?

Also i wanted to change the host name , i did not got any option

Please guide.

stoneii
Posts: 14
Joined: Thu Jul 09, 2015 11:42 pm

Re: ESXi 5.x template - no perl SDK, pure snmp

#23 Post by stoneii » Mon Aug 24, 2015 8:37 am

Super Thank runs under cacti 8.8.a and ESXi5.5 update 4
:lol:

arnoldkcentos
Posts: 5
Joined: Sat Aug 22, 2015 9:18 pm

Re: ESXi 5.x template - no perl SDK, pure snmp

#24 Post by arnoldkcentos » Wed Aug 26, 2015 2:02 am

arnoldkcentos wrote:Hello,

I have a generic Q

I like the template, gr8 job

I am new to this tool..

mine is 32 CPU Host, i would like to get rid of the H/w piece of the graphs ( is it possible) , also want to re-arrange the graphs location on home page

Also this one works for a single host, i wanted to add a cluster at a time, is that possible ?

Also i wanted to change the host name , i did not got any option

Please guide.



Sorry i mean by "Also i wanted to change the host name , i did not got any option" change the lable of the graph

i was able to do that ..


but still other things not clear .. can we arrange the individual graph (trees view)


the mirc channel is so poor in response :(

macan
Cacti User
Posts: 141
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: ESXi 5.x template - no perl SDK, pure snmp

#25 Post by macan » Wed Aug 26, 2015 8:07 am

arnoldkcentos wrote:
Sorry i mean by "Also i wanted to change the host name , i did not got any option" change the lable of the graph

i was able to do that ..

but still other things not clear .. can we arrange the individual graph (trees view)

the mirc channel is so poor in response :(
Console -> graph management -> select host -> click to graph title -> change title


Single host/cluster - this is single host template. I don't know how vmware cluster works (one IP, more IP, common snmp, ...), because I haven't access to any vm cluster.

DQM
Posts: 9
Joined: Tue Sep 23, 2014 9:47 pm

Re: ESXi 5.x template - no perl SDK, pure snmp

#26 Post by DQM » Thu Sep 03, 2015 1:42 am

Dear all,

I'm using CactiEZ 0.7 (CentOS 6.7, cacti0.8.8b) to monitor ESXi 6.0. But looks like it doesn't work :(
Attached file is the result on the cacti

I cannot create graphs for below items:
- ucd/net - Get Monitored Partitions
- VMware ESX - Get VM CPU usage
- VMware ESX - Get VM disk statistics
- VMware ESX - Get VM memory usage
- VMware ESX - Get VM NIC statistics

Could you please help me on the issue?

Thank you,
DQM
Attachments
cacti01.JPG
cacti01.JPG (115.8 KiB) Viewed 5794 times

macan
Cacti User
Posts: 141
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: ESXi 5.x template - no perl SDK, pure snmp

#27 Post by macan » Tue Sep 15, 2015 6:11 am

DQM wrote:Dear all,

I'm using CactiEZ 0.7 (CentOS 6.7, cacti0.8.8b) to monitor ESXi 6.0. But looks like it doesn't work :(
Attached file is the result on the cacti

I cannot create graphs for below items:
- ucd/net - Get Monitored Partitions
- VMware ESX - Get VM CPU usage
- VMware ESX - Get VM disk statistics
- VMware ESX - Get VM memory usage
- VMware ESX - Get VM NIC statistics

Could you please help me on the issue?

Thank you,
DQM
I think, that ESXi doesn't support UCD MIB. Supported mibs are here:
http://kb.vmware.com/selfservice/micros ... Id=1013445

VMware ESX isn't my template, I cannot help you

remotecontrol
Posts: 3
Joined: Thu Dec 03, 2015 7:18 am

Re: ESXi 5.x template - no perl SDK, pure snmp

#28 Post by remotecontrol » Thu Dec 03, 2015 7:20 am

hello, just trying out your script on ESXi 5.5.0 build-3029944 and i can't seem to get the Real Memory graph to list in order to create it. Am i missing something?

Let me know if i can provide any more info, thanks!
Attachments
Screen Shot 2015-12-03 at 4.16.12 AM.png
Screen Shot 2015-12-03 at 4.16.12 AM.png (129.06 KiB) Viewed 5065 times

macan
Cacti User
Posts: 141
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech
Contact:

Re: ESXi 5.x template - no perl SDK, pure snmp

#29 Post by macan » Thu Dec 03, 2015 7:40 am

remotecontrol wrote:hello, just trying out your script on ESXi 5.5.0 build-3029944 and i can't seem to get the Real Memory graph to list in order to create it. Am i missing something?

Let me know if i can provide any more info, thanks!
Maybe any change in newer build. Try snmpwalk and query .1.3.6.1.2.1.25.2.3.1:

6.0.0 build-2494585:
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: /vmfs/volumes/4611b2e0-68f9ece3-f94f-eb7cc66923d1
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: /vmfs/volumes/96cdf4eb-ab64c1bb-8d38-a1af11528fec
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: /vmfs/volumes/563a3246-57aed540-577f-5820b1014f14
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /vmfs/volumes/55f82818-92576870-ffe8-5820b100855a
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /vmfs/volumes/55f8280b-0c39d4d8-0840-5820b100855a
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Real Memory
..

On 5.5.0 build-2068190:
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-MIB::hrStorageTypes.20
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: /vmfs/volumes/fe5a83ec-565719a1-92ad-cde9c7380496
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: /vmfs/volumes/7f276aed-e4ac24f2-7bed-1d5857ffc4a7
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: /vmfs/volumes/510bfb90-5c4f8fe4-ab39-2c768a50f195
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /vmfs/volumes/5175196b-a70c065c-7da1-2c768a50f194
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /vmfs/volumes/510c0522-63355616-95ae-2c768a50f195
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Real Memory
...

remotecontrol
Posts: 3
Joined: Thu Dec 03, 2015 7:18 am

Re: ESXi 5.x template - no perl SDK, pure snmp

#30 Post by remotecontrol » Thu Dec 03, 2015 8:19 am

thanks for your quick reply, output below, i also did an snmpwalk grep for StorageRam but it came up empty...

HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageNetworkDisk
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: /vmfs/volumes/55c101bf-9811b526-3fa8-f8bc12053bc0
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: /vmfs/volumes/ba2e4679-b132ce15-e4a7-ebef7411d5ab
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: /vmfs/volumes/2997a57e-baa5d1fb-cc26-fc34a1de75c2
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /vmfs/volumes/55c101b7-3708b1f2-1c89-f8bc12053bc0
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /vmfs/volumes/nfs_vmware_10g
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /vmfs/volumes/55c101be-a90836a8-b667-f8bc12053bc0
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 8192 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1048576 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 65515
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 63929
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 63929
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 36586
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 1342177280
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 277760
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 478
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 44970
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 44793
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 24699
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 261127508
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 973
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.6 = Counter32: 0

Post Reply