Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Oct 17, 2018 11:11 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 67 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Wed Aug 31, 2016 1:41 am 
Offline

Joined: Wed Jul 06, 2016 2:09 pm
Posts: 6
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 3028 times ]
Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Tue Sep 20, 2016 6:40 am 
Offline
Cacti User

Joined: Tue Mar 18, 2008 2:30 am
Posts: 124
Location: Czech
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

_________________
Author of:
Intropage/Dashboard plugin
TopX plugin
ESXi template
Ping History (PiHi) plugin
FreeBSD template
Multicore CPU average graph
HP MSM wifi controller 7xx


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Tue Oct 04, 2016 11:04 am 
Offline
Cacti User

Joined: Mon Sep 10, 2012 5:54 pm
Posts: 76
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)


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Tue Nov 22, 2016 2:29 pm 
Offline
Cacti User

Joined: Tue Mar 18, 2008 2:30 am
Posts: 124
Location: Czech
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.

_________________
Author of:
Intropage/Dashboard plugin
TopX plugin
ESXi template
Ping History (PiHi) plugin
FreeBSD template
Multicore CPU average graph
HP MSM wifi controller 7xx


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Fri Dec 23, 2016 5:04 am 
Offline
Cacti User

Joined: Tue Mar 18, 2008 2:30 am
Posts: 124
Location: Czech
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

_________________
Author of:
Intropage/Dashboard plugin
TopX plugin
ESXi template
Ping History (PiHi) plugin
FreeBSD template
Multicore CPU average graph
HP MSM wifi controller 7xx


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Thu Feb 16, 2017 9:57 am 
Offline

Joined: Fri Aug 30, 2013 1:39 am
Posts: 2
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/microsites/search.do?language=en_US&cmd=displayKC&externalId=2144598


Attachments:
ss_esxi_vhosts.zip [944 Bytes]
Downloaded 277 times
Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Fri Sep 08, 2017 6:41 am 
Offline

Joined: Fri Sep 08, 2017 6:38 am
Posts: 4
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


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Thu Jan 04, 2018 12:35 am 
Offline

Joined: Tue Apr 12, 2016 8:45 pm
Posts: 13
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.


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Thu Jan 04, 2018 12:36 am 
Offline

Joined: Tue Apr 12, 2016 8:45 pm
Posts: 13
I can confirm that this template works for an ESXi 6.5.0u1.


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Thu Jan 04, 2018 12:03 pm 
Offline

Joined: Thu Jan 04, 2018 11:55 am
Posts: 1
Location: Germany
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?


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Tue Mar 20, 2018 2:17 pm 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 147
Location: Long Island, New York, USA
Quote:
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.

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.1.36 @ CentOS 7.4.1708
Test: Cacti 1.1.37 @ CentOS 7.5.1804


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Sun Jun 10, 2018 6:57 am 
Offline

Joined: Sun Jun 10, 2018 6:55 am
Posts: 3
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? :-?


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Mon Jun 11, 2018 9:57 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1503
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.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Mon Jun 11, 2018 12:51 pm 
Offline
Cacti User
User avatar

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 147
Location: Long Island, New York, USA
HBA is Host Bus Adapter, where the media plugs in.

_________________
See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.1.36 @ CentOS 7.4.1708
Test: Cacti 1.1.37 @ CentOS 7.5.1804


Top
 Profile  
 
 Post subject: Re: ESXi 5.x template - no perl SDK, pure snmp
PostPosted: Mon Jun 11, 2018 4:12 pm 
Offline

Joined: Sun Jun 10, 2018 6:55 am
Posts: 3
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:
File comment: vmhba chart
vmhba chart.PNG
vmhba chart.PNG [ 211.25 KiB | Viewed 329 times ]
File comment: vmnic chart
vmnic chart.PNG
vmnic chart.PNG [ 116.89 KiB | Viewed 329 times ]
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 67 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group