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

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

Moderators: Developers, Moderators

netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

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

Post by netniV »

More than likely if it's in the VMware templates but it won't be an Interface it'll be a disk throughput or space graph.

If not, it'd have to be a customised template but I'm sure it would already existed as others would have needed it before now.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

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

Post by macan »

Slixor wrote:Point is, in the web UI of ESXI, you can view vmhba adapters in a simular view to vmnics, so can cacti get the same data? (see pics attached).
I quess that vmhba information isn't in any snmp MIB. I can't see it in snmp walk.
Let the Cacti grow!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

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

Post by netniV »

Wait, there is a caveat that I've just thought of. I'm sure it also depends on whether you are using the "Free" version. VMware limit the management information you can get out of a VMware "free" license over their paid for licenses.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Slixor
Posts: 3
Joined: Sun Jun 10, 2018 6:55 am

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

Post by Slixor »

macan wrote:
Slixor wrote:Point is, in the web UI of ESXI, you can view vmhba adapters in a simular view to vmnics, so can cacti get the same data? (see pics attached).
I quess that vmhba information isn't in any snmp MIB. I can't see it in snmp walk.
I've done some research and this is right. To quote another user, "VMware has dropped support of SNMP. You have to use CIM/SMASH in order to obtain hardware status, etc. You have to use their API in order to obtain "higher level" performance stats like CPU utilization, Memory utilization, Disk IO, etc. AFAIK Cacti doesn't have a means for doing either of those."

So I wrote a script in powershell that would output the data I needed for my weathermap. Problem solved.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

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

Post by netniV »

Cacti would need a Script Server script to be able to query for those. If I ever get work to commit to having a proper VMware environment, I may create some proper VMware templates.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

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

Post by camerabob »

I'm currently running the free version 6.0.0 3620759 and I see the vmhba screen, so it's not a free vs pay issue.
vmhba.png
vmhba.png (43.44 KiB) Viewed 6480 times
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

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

Post by netniV »

Yes, that is via the VMware tools though, not via SNMP. I'm pretty sure it is a free vs paid thing when it comes to querying that kind of information via SNMP.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
jolomo
Posts: 1
Joined: Wed Apr 14, 2021 1:41 pm

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

Post by jolomo »

It's been a few years since there's been activity here, but just wanted to update that I was able to get things working with the newest version of Cacti and my ESXI 6.5 hosts. Note: It didn't work until I downloaded the vmware MIB's
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

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

Post by macan »

jolomo wrote: Wed Apr 14, 2021 1:47 pm It's been a few years since there's been activity here, but just wanted to update that I was able to get things working with the newest version of Cacti and my ESXI 6.5 hosts. Note: It didn't work until I downloaded the vmware MIB's
I still using this version for esxi 5.x, 6.x and all is working. Please describe what you had to do.
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests