Monitor Vmware ESX

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

Moderators: Developers, Moderators

Post Reply
Diceman
Cacti User
Posts: 142
Joined: Tue Oct 25, 2005 10:01 am

Post by Diceman »

i am also looking for esx 3.5 scripts. snmp appears to be fairly dumbed down on 3.5.

what i would really like is to find out where esx is storing the data in the performance tab and rip that into cacti. i'll be looking into that once my migration is complete.
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

So, does this template work with VMware ESX 3.5? And which template file (post number?) + patches do I need?
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

I've now imported the templates, but I don't get any query results for the VMware oids. I'm running ESX 3.5, snmp is enabled and I've changed config.php -> global.php in the script files. Version 0.8.7b on debian etch.
Attachments
cacti-vmware-esx-35.jpg
cacti-vmware-esx-35.jpg (76.53 KiB) Viewed 20951 times
NightRaver
Posts: 4
Joined: Sun Apr 01, 2007 4:18 am

Post by NightRaver »

zeki wrote:i'm trying to get the network traffic on the VMs and i'm getting bogus data.
like 200G 100G. I set the maximum for Data Source Item Fields [traffic_in]
and traffic_out to 100000000 during the creation of the rra, yet i'm still getting this bogus data.

Any ideas what is going on?


ds[traffic_in].max = 1.0000000000e+08

ds[traffic_out].max = 1.0000000000e+08
Same problem here, anybody with a solution??

Thnx in advanced.
David1975
Posts: 1
Joined: Wed Oct 29, 2008 4:32 am

Post by David1975 »

Can someone tell me what templates we need to use to monitor our esx 3.5 environment with Cacti?
I don't see any templates here which are marked as working for 3.5

Thx

David
james.walklin
Posts: 1
Joined: Thu Oct 30, 2008 3:49 pm

Post by james.walklin »

trap oids for ESX changed in esx 3.5, at least for virtual center traps
So I had to update my mibs, then reload mibs, reloaded new traps for other
snmp systems, now all is fine.
cynicismic
Posts: 13
Joined: Thu Nov 22, 2007 5:05 am

Post by cynicismic »

David1975 wrote:Can someone tell me what templates we need to use to monitor our esx 3.5 environment with Cacti?
I don't see any templates here which are marked as working for 3.5

Thx

David
The templates here work fine on 3.5, but the SNMP configuration on ESX 3.5 is a little different..
aceg3905
Posts: 12
Joined: Wed Nov 24, 2004 9:11 am
Location: Manchester, UK

Post by aceg3905 »

what needs to be done to the snmp configuration to get a working result? im running 3.5 and get 0 response from the esx template
scpetand
Posts: 5
Joined: Wed Nov 12, 2008 3:31 am
Location: Sweden

Create Cacti or op5 Statistics graphs with op5 ESX3 plugin

Post by scpetand »

Hi

I have created a howto to graph Vmware ESX IO by using a nagios plugin developed by op5.
Take a look at http://www.it-slav.net/blogs/?p=262

Regards
Peter Andersson
peter@it-slav.net
aceg3905
Posts: 12
Joined: Wed Nov 24, 2004 9:11 am
Location: Manchester, UK

Post by aceg3905 »

Hi, the graphs are great and ive got VS IO Load working fine however with VM when running the script I get the following response

./esxiograph.sh io_vm vmware-stockholm demo.op5.com -p xxxx -u yyyy

usage:to read:at write:Login

any ideas?

Aceg3905
scpetand
Posts: 5
Joined: Wed Nov 12, 2008 3:31 am
Location: Sweden

Post by scpetand »

Ouups it is a typo in my description try:
./esxiograph.sh io_vm vmware-stockholm demo.op5.com <user> <password>

If you run the command without any parameters:
[root@demo custom]# ./esxiograph.sh
Usage: esxiograph.sh <Command> <VS Host> <VM Name> <Username> <Password>
Command can be any of either: io_vm, io_vs
When using a *_vs command you cannot specify a VM Name

so you can se the syntax

I will update my instructions

Thanks and it makes me happy to see that somebody actually uses my stuff :-)
Check it out at http://www.it-slav.net/blogs/?p=262

/peter@it-slav.net
david35
Posts: 12
Joined: Wed Sep 24, 2008 7:48 am

disk and nics pb

Post by david35 »

Hello,

I have imported the templates successfully.
I can generate graphs for CPU and memory ==> OK
But I have problems with disk and net graphs.
Ex for disk at import :
Cacti has imported the following items:

GPRINT Preset

[success] Normal [update]

Data Input Method

[success] Get Script Server Data (Indexed) [update]

Data Template

[success] VMware ESX - VM disk read/write operations [new]
[success] VMware ESX - VM disk read/write (kB) [new]

Graph Template

[success] VMware ESX - VM disk read/write operations [new]
[success] VMware ESX - VM disk read/write (kB) [new]

Data Query

[success] VMware ESX - Get VM disk statistics [new]


And I obtain :
Attachments
1.JPG
1.JPG (22.81 KiB) Viewed 18805 times
david35
Posts: 12
Joined: Wed Sep 24, 2008 7:48 am

Post by david35 »

I just want to precise that I have no pb with CPU and MEM.
It's only for nic and disk that I have 0 Item, 0 Row.
aceg3905
Posts: 12
Joined: Wed Nov 24, 2004 9:11 am
Location: Manchester, UK

Post by aceg3905 »

scpetand wrote:Ouups it is a typo in my description try:
./esxiograph.sh io_vm vmware-stockholm demo.op5.com <user> <password>

If you run the command without any parameters:
[root@demo custom]# ./esxiograph.sh
Usage: esxiograph.sh <Command> <VS Host> <VM Name> <Username> <Password>
Command can be any of either: io_vm, io_vs
When using a *_vs command you cannot specify a VM Name

so you can se the syntax

I will update my instructions

Thanks and it makes me happy to see that somebody actually uses my stuff :-)
Check it out at http://www.it-slav.net/blogs/?p=262

/peter@it-slav.net
its working great ill try this and let you know, the script is great keep up the good work ;)

Okay im still getting an issue just with io_vm so I understand it the synatx should be check_esx3.pl <Virtual Machine Host> <Virtual machine> <Username> <Password>

with this i still get

usage:Unknown read: write:

any ideas? im using the virtual machine name is identified in VIC and from the list generate from

check_esx3.pl -H -u xxxxx -p yyyyyy
-l runtime -s list

im kinda stuck now
Last edited by aceg3905 on Thu Dec 04, 2008 7:06 am, edited 1 time in total.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi,

For ESX 3.5 you need to check the following:

in /etc/hosts there must be (!) an entry for localhost:

Code: Select all

127.0.0.1  localhost

Here's my snmpd.conf file:

Code: Select all

###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity public

###########################################################################
# SECTION: Extending the Agent
#
#   You can extend the snmp agent to have it return information
#   that you yourself define.

# dlmod: dynamically extend the agent using a shared-object
#   arguments:  module-name module-path

dlmod SNMPESX /usr/lib/vmware/snmp/libSNMPESX.so
dlmod cmaX /usr/lib/libcmaX.so.1

#
# Unknown directives read in from other files by snmpconf
#
smuxpeer .1.3.6.1.4.1.674.10892.1
smuxpeer .1.3.6.1.4.1.6876.1

to start the snmp dameon

Code: Select all

# to enable snmpd thorugh the firewall
esxcfg-firewall -e snmpd
# to start snmpd
service snmpd restart
# to start snmpd automatically after reboot
chkconfig snmpd on 

After that, cacti is able to get the snmp data.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests