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

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

Moderators: Developers, Moderators

Ololz
Posts: 6
Joined: Wed Jul 06, 2016 2:09 pm

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

Post by Ololz »

Hello,

Sorry for the delay, I was on vacation for the past two weeks.

2) copy file scripts/ss_esxi_vhosts.php to your_cacti_instalation/scripts/ > OK : rwxr-xr-x for root
3) copy files resource/snmp_queries to your_cacti_instalation/resource/snmp_queries/ > OK : rwxr-xr-x for root

Data Query ESXI - hw " shows only empty graphs
For example : (see picture)

Thanks for your help !
Attachments
bug cacti.PNG
bug cacti.PNG (40.88 KiB) Viewed 7612 times
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 »

Ololz wrote:Hello,

Sorry for the delay, I was on vacation for the past two weeks.

2) copy file scripts/ss_esxi_vhosts.php to your_cacti_instalation/scripts/ > OK : rwxr-xr-x for root
3) copy files resource/snmp_queries to your_cacti_instalation/resource/snmp_queries/ > OK : rwxr-xr-x for root

Data Query ESXI - hw " shows only empty graphs
For example : (see picture)

Thanks for your help !

I found problem. My template for ESXi doesn't not support nothing like HW state CPU pkg/ID/Node. I guess that you install another vmware template and mixed both templates together
Let the Cacti grow!
smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

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

Post by smiles »

I keep getting this error in the cacti log:

2016-10-04 10:36:00 - ERROR PHP NOTICE: Use of undefined constant value - assumed 'value' in file: /var/www/html/cacti/scripts/ss_esxi_vhosts.php on line: 33
2016-10-04 10:36:00 - CMDPHP PHP ERROR NOTICE Backtrace: (/script_server.php: 221 call_user_func_array)(ss_esxi_vhosts)(/scripts/ss_esxi_vhosts.php: 33 CactiErrorHandler)(/lib/functions.php: 4165 cacti_debug_backtrace)
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 »

smiles wrote:I keep getting this error in the cacti log:

2016-10-04 10:36:00 - ERROR PHP NOTICE: Use of undefined constant value - assumed 'value' in file: /var/www/html/cacti/scripts/ss_esxi_vhosts.php on line: 33
2016-10-04 10:36:00 - CMDPHP PHP ERROR NOTICE Backtrace: (/script_server.php: 221 call_user_func_array)(ss_esxi_vhosts)(/scripts/ss_esxi_vhosts.php: 33 CactiErrorHandler)(/lib/functions.php: 4165 cacti_debug_backtrace)
thank you, I will release new version (maybe next week) and there will be fix for this.
Let the Cacti grow!
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 »

avantat wrote:That could be. We are running Dell servers with a customized image. I'm upgrading them to ESXi 6.x later this year, possibly I get the real memory there.
Thanks again for the great template though!
Yesterday I updated my ESXi (from 5.5. to 6.0) on HP Proliant and result is that Real memory disapeared. So it depends on ESXi version too, not only vendor
Let the Cacti grow!
juronius
Posts: 2
Joined: Fri Aug 30, 2013 1:39 am

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

Post by juronius »

smiles wrote:I keep getting this error in the cacti log:

2016-10-04 10:36:00 - ERROR PHP NOTICE: Use of undefined constant value - assumed 'value' in file: /var/www/html/cacti/scripts/ss_esxi_vhosts.php on line: 33
2016-10-04 10:36:00 - CMDPHP PHP ERROR NOTICE Backtrace: (/script_server.php: 221 call_user_func_array)(ss_esxi_vhosts)(/scripts/ss_esxi_vhosts.php: 33 CactiErrorHandler)(/lib/functions.php: 4165 cacti_debug_backtrace)
Replace $value[value] to $value["value"]

Me also problem to show memory.
Edit : https://kb.vmware.com/selfservice/micro ... Id=2144598
Attachments
ss_esxi_vhosts.zip
(944 Bytes) Downloaded 462 times
rcsmota
Posts: 7
Joined: Fri Sep 08, 2017 6:38 am

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

Post by rcsmota »

Replace $value[value] to $value["value"] at ss_esxi_vhosts.php solved my problem.

In my case this value were on line 33, 40 and 42
Corsaire
Posts: 13
Joined: Tue Apr 12, 2016 8:45 pm

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

Post by Corsaire »

rcsmota wrote:Replace $value[value] to $value["value"] at ss_esxi_vhosts.php solved my problem.

In my case this value were on line 33, 40 and 42
I had the same with Cacti 1.1.28, fixed the same way.
Corsaire
Posts: 13
Joined: Tue Apr 12, 2016 8:45 pm

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

Post by Corsaire »

I can confirm that this template works for an ESXi 6.5.0u1.
BlaSh
Posts: 1
Joined: Thu Jan 04, 2018 11:55 am
Location: Germany

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

Post by BlaSh »

Hi,

I'm new at cacti. :roll: I'm running Cacti 1.1.29 with this script to monitor ESXi 6.5. Works like a charm. :D

But i am not able to aggregate both CPU cores in one graph with different colours. Can anybody help me?
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 »

Hi,

I'm new at cacti. :roll: I'm running Cacti 1.1.29 with this script to monitor ESXi 6.5. Works like a charm. :D

But i am not able to aggregate both CPU cores in one graph with different colours. Can anybody help me?
See the bottom of page #1 in this thread for the average CPU template for ESXi.
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
Slixor
Posts: 3
Joined: Sun Jun 10, 2018 6:55 am

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

Post by Slixor »

Hi I'm new to Cacti, and am trying to graph stats to use in a weathermap. I'm scratching my head trying to work out how to graph vmhba adapters?

Using this template, I get all my vmnic's just fine, as you can see here:
Image

How could I get the vmhba adapters to also appear in this auto generated list? :-?
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 »

The list that you have there is for interfaces, as in network interfaces. Aren't vmhba hard drive's? If so, you need to look at the disks instead.
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 »

HBA is Host Bus Adapter, where the media plugs in.
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
Slixor
Posts: 3
Joined: Sun Jun 10, 2018 6:55 am

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

Post by Slixor »

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).
Attachments
vmhba chart
vmhba chart
vmhba chart.PNG (211.25 KiB) Viewed 4914 times
vmnic chart
vmnic chart
vmnic chart.PNG (116.89 KiB) Viewed 4914 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests