[Request] Template ESXi 6.x standalone with Cacti 1.2.x

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

Moderators: Developers, Moderators

Post Reply
oijkn
Posts: 18
Joined: Mon Mar 05, 2018 5:41 am

[Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by oijkn »

Hi all,

VMware (vSphere 5 or higher) has dropped support of SNMP. We can use CIM/SMASH in order to obtain hardware status, etc. We can 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.

Does any of you have a template to share to retrieve ESXi metrics without vCenter, please ?

Thank you for your help, regards.
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by bmfmancini »

I dont know of any
Hoewver you could write one to pull the data using the script server
your script would call on the vcenter API to get the data and return it
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
oijkn
Posts: 18
Joined: Mon Mar 05, 2018 5:41 am

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by oijkn »

seanmancini wrote: Sun Jan 17, 2021 10:08 am I dont know of any
Hoewver you could write one to pull the data using the script server
your script would call on the vcenter API to get the data and return it
Hi Sean,

Glad to see you here again :)

As I said it would be without using the vCenter, some of my ESXi are in standalone.

It's surprising that nothing exists for Cacti because it would interest a lot of people I guess :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by TheWitness »

I think whole plugins have been written to streamline this, but not everyone shares.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
bmfmancini
Cacti User
Posts: 250
Joined: Wed Mar 13, 2019 3:37 pm
Location: toronto
Contact:

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by bmfmancini »

oijkn wrote: Sun Jan 17, 2021 10:30 am
seanmancini wrote: Sun Jan 17, 2021 10:08 am I dont know of any
Hoewver you could write one to pull the data using the script server
your script would call on the vcenter API to get the data and return it
Hi Sean,

Glad to see you here again :)

As I said it would be without using the vCenter, some of my ESXi are in standalone.

It's surprising that nothing exists for Cacti because it would interest a lot of people I guess :)
I am always here :)

Hey I didn't know they axed SNMP on 6.x

in fact I found this procedure to enable it

How to enable SNMP on ESXi 6.x

SSH or Telnet to your ESXi node using root-level credentials.
Execute the following commands. Replace YOUR_STRING with your desired community string.

esxcli system snmp set -r
esxcli system snmp set -c YOUR_STRING
esxcli system snmp set -p 161
esxcli system snmp set -L "City, State, Country"
esxcli system snmp set -C noc@example.com
esxcli system snmp set -e yes

If you selected a community string other than public or private, enter that string into Auvik by following these steps.
If in Step 2 you chose to “Apply these credentials to all devices we discover that meet the criteria below” ensure that:
Device Type = All Device Types
Vendor = All Vendors

Maybe give this a try ?
Telecom Lifer, Monitoring and performance enthusiast, Father, Husband

Cacti Bug Hunter and Member

www.seanmancini.com
sean(at)seanmancini.com
github.com/bmfmancini

My Cacti scripts and templates ( Non official)
Cacti install wizard https://github.com/bmfmancini/cacti-install-wizard
Cacti templates https://github.com/bmfmancini/Cacti-templates

Always willing to help!
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by camerabob »

seanmancini wrote: Tue Jan 19, 2021 10:06 am
oijkn wrote: Sun Jan 17, 2021 10:30 am
seanmancini wrote: Sun Jan 17, 2021 10:08 am I dont know of any
Hoewver you could write one to pull the data using the script server
your script would call on the vcenter API to get the data and return it
Hi Sean,

Glad to see you here again :)

As I said it would be without using the vCenter, some of my ESXi are in standalone.

It's surprising that nothing exists for Cacti because it would interest a lot of people I guess :)
I am always here :)

Hey I didn't know they axed SNMP on 6.x

in fact I found this procedure to enable it

How to enable SNMP on ESXi 6.x

SSH or Telnet to your ESXi node using root-level credentials.
Execute the following commands. Replace YOUR_STRING with your desired community string.

esxcli system snmp set -r
esxcli system snmp set -c YOUR_STRING
esxcli system snmp set -p 161
esxcli system snmp set -L "City, State, Country"
esxcli system snmp set -C noc@example.com
esxcli system snmp set -e yes

If you selected a community string other than public or private, enter that string into Auvik by following these steps.
If in Step 2 you chose to “Apply these credentials to all devices we discover that meet the criteria below” ensure that:
Device Type = All Device Types
Vendor = All Vendors

Maybe give this a try ?
See the links in my signature.
Attachments
ESXi-graph.zip
(18.59 KiB) Downloaded 512 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
MABP
Posts: 3
Joined: Mon Nov 29, 2021 7:33 am

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by MABP »

camerabob wrote: Mon Sep 20, 2021 10:40 am
See the links in my signature.

Hi there,
i try to use you templates, thats show in you signature
download/file.php?id=36808

and i recive some error - when i try to import the esxi_cpu.xml and esxi_hw.xml the system says that
"IMPORT parse_xml_hash ERROR wrong hash format for hash: name" for both files.

what it's can it mean?
and may be you can explain why it's hapening.


Sorry for my English :oops: .
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by camerabob »

Hit my links: http://www.camerabob.com/cacti

Download the ESXI .zip file and try that. The link you posted was a part of the total package.
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
MABP
Posts: 3
Joined: Mon Nov 29, 2021 7:33 am

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by MABP »

camerabob wrote: Fri Dec 03, 2021 9:12 am Hit my links: http://www.camerabob.com/cacti

Download the ESXI .zip file and try that. The link you posted was a part of the total package.
Hi
Yes, I downloaded exactly these files
and when importing the esxi_cpu & hw file, I get an error with an incorrect hash
I'm using Cacti 1.2.19
streitleak
Posts: 1
Joined: Wed May 11, 2022 11:05 pm

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by streitleak »

camerabob wrote: Fri Dec 03, 2021 9:12 am Hit my links: http://www.camerabob.com/cacti

Download the ESXI .zip file and try that. The link you posted was a part of the total package.
Looks your site is down.

And in the Zip file. 2 files can't import. Log is showing parser "name" is error.
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by camerabob »

Yes, my site is down. Thank Verizon. Anyhow, I don't know why you're getting any errors. I am currently using those templates on my system at this time.
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
jamculi1
Posts: 1
Joined: Wed Jun 15, 2022 7:09 am
Location: NYC USA

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by jamculi1 »

Useful Information
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: [Request] Template ESXi 6.x standalone with Cacti 1.2.x

Post by TheWitness »

Camerabob,

Is it okay to publish this in the 1.2.23 release of Cacti? I would need to get/find the multi-cpu average script. I'll be changing both to only pass in the device id.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests