Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jul 23, 2019 7:27 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 239 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16
Author Message
 Post subject: Re: Monitor Vmware ESX
PostPosted: Tue Jul 24, 2012 4:08 am 
Offline

Joined: Fri May 11, 2012 9:10 am
Posts: 3
@Khue did you install nagios?

I have nagios on the same server as cacti.


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Fri Jul 27, 2012 8:10 am 
Offline

Joined: Fri Jun 29, 2012 3:43 pm
Posts: 45
@wica128

I did not realize that was a requirement for this setup. I must have missed something. I am probably going to abandon this. Seems like too many moving parts.


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Mon Nov 12, 2012 2:41 am 
Offline

Joined: Mon Nov 12, 2012 2:29 am
Posts: 1
Hi all,

I try to use this ESXI tepmlete to monitor VMware vSphere5, But when I use the Data Query Debug Information get the foloowing result
----------------------------------------------
Data Query Debug Information

+ Running data query [8].
+ Found type = '6' [Script Query - Script Server].
+ Found data query XML file at '/var/www/html/resource/script_server/vmware_cpu.xml'
+ XML file parsed ok.
+ Invalid field <index_order>vmDisplayName:vmID:vmIndex</index_order>
+ Must contain <direction>input</direction> fields only

-----------------------------------------------------
I tey to to use MIB brower to watch teh MIB mwVMIdx OID : 1.3.6.1.4.1.6876.2.1.1.1 show can't accessble
snmpwalk -c public -v2C 192.168.11.216 .1.3.6.1.4.1.6876.2.1.1.1 show no such object available on this agent at this OID....

Should I use the SNMP V3 to get this OID value, otherwise teh data query can't get teh right value~~


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Tue Dec 18, 2012 9:42 am 
Offline

Joined: Sun Nov 25, 2012 6:44 am
Posts: 34
It's not a problem of SNMP Version used to get data, but the issue is related to an OID declared OBSOLETE from Vmware.
When you launch this query you ask to Vsphere 5 to send VM CPU Usage (oid .1.3.6.1.4.1.6876.3.1.2.1.3), but this information is not more provided by Vmware (see this article http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.monitoring.doc_50%2FGUID-12926DA1-A8E5-46BE-977D-C006384F0E50.html). So this is the reason why query doesn't work anymore.
Now the question is how to get Cpu Utilization without this OID ? I think we need to change the script, but i'am not a programmer and my knowledge is really bad.


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Thu Jan 03, 2013 2:28 pm 
Offline

Joined: Sun Apr 12, 2009 7:51 pm
Posts: 48
nandozzi wrote:
Now the question is how to get Cpu Utilization without this OID ? I think we need to change the script, but i'am not a programmer and my knowledge is really bad.


You can't. 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.


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Mon Feb 04, 2013 3:50 am 
Offline

Joined: Mon Feb 04, 2013 3:30 am
Posts: 1
prospero63 wrote:
nandozzi wrote:
Now the question is how to get Cpu Utilization without this OID ? I think we need to change the script, but i'am not a programmer and my knowledge is really bad.


You can't. 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.



the vmware is too arrogant!
:evil:


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Mon Aug 12, 2013 4:12 am 
Offline

Joined: Wed Aug 22, 2007 8:01 am
Posts: 41
Hi. So, if I understand, it's impossible to monitore ESXi 5.1 with SNMP ? (without add third party)


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Wed Jul 16, 2014 2:52 am 
Offline
Cacti User

Joined: Wed Feb 15, 2012 10:32 pm
Posts: 85
Hi all,

I using vmware_esx_cacti_0.8.7[x]-20091009.zip from Dickys, every step import is fine.

But when create graphics step i have some errors:

1. Data query can not get some information from VMware: Image

2. I run data query in debug mode one of them and it's appear: Image

CPU get:
Image

My system:
cacti version 8.8.b
OS: Centos 5.8
Mysql : 5.5.38-cll-lve
ESX: 4.0

Any help is appreciate.


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Wed Jul 16, 2014 6:06 am 
Offline
User avatar

Joined: Thu Jul 03, 2014 1:35 am
Posts: 39
I think you have an issue with the snmp configuration on the esx server...

What is the output from
[code]
snmpwalk -v 2c -c <your community> <your host> .1.3.5.1.4.1.2021.9.1.1 [code]

Maybe the OID is wrong or something like that.

_________________
Three tomatoes are walking down the street pappa tomato, mamma tomato, and a little baby tomato.Baby tomato starts lagging behind. Poppa tomato gets angry, goes over to the baby tomato, and smooshes him... and says, "Catch up"


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Wed Jul 16, 2014 8:31 pm 
Offline
Cacti User

Joined: Wed Feb 15, 2012 10:32 pm
Posts: 85
Hi um3n,

I checked with your OID but not get data, it's appear :
Quote:
SNMPv2-SMI::org.5.1.4.1.2021.9.1.1 = No Such Object available on this agent at this OID

If i only using:
Code:
snmpwalk -v 2c -c <My community> <My IP server>
, will show many information.

These are snmp file that i have had build:
snmp.xml:
Code:
<config>
  <snmpSettings>
    <communities>public</communities>
    <enable>true</enable>
    <port>171</port>
    <targets>[email protected]/public</targets>
  </snmpSettings>
</config>


snmpd.conf:
Code:
load  99 99 99
syslocation Serverraum
syscontact  "ESX Administrator"
rocommunity  public
view systemview included .1.3.6.1.4.1.6876
proxy -v 1 -c public 127.0.0.1:171 .1.3.6.1.4.1.6876


If i wrong OID, how to get the right OID?

Any help is appreciated,


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Tue Jul 22, 2014 5:23 am 
Offline
User avatar

Joined: Thu Jul 03, 2014 1:35 am
Posts: 39
Hey,

sorry for the late answer... i have to deal with a lot of work :)

Please try this Link...
https://communities.vmware.com/thread/167927
Or maybe this one could help you out :)
http://pubs.vmware.com/vsphere-4-esx-vcenter/index.jsp?topic=/com.vmware.vsphere.dcadmin.doc_41/vsp_dc_admin_guide/snmp_config/r_vmware_mib_files.html
Coming to an end... a little overview
http://www.oidview.com/mibs/6876/md-6876-1.html

I hope you will find the right OID there...

Please let me know, if i could help you.

Greetings

_________________
Three tomatoes are walking down the street pappa tomato, mamma tomato, and a little baby tomato.Baby tomato starts lagging behind. Poppa tomato gets angry, goes over to the baby tomato, and smooshes him... and says, "Catch up"


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Thu Jul 31, 2014 9:54 pm 
Offline
Cacti User

Joined: Wed Feb 15, 2012 10:32 pm
Posts: 85
Hi all,

If i using:
Code:
"/usr/bin/php" -q ss_vmware_disk.php ESXHOST -d

It's appear:
Code:
PHP Warning:  Missing argument 3 for ss_vmware_esx_disk() in ss_vmware_disk.php on line 20
PHP Warning:  Missing argument 4 for ss_vmware_esx_disk() in ss_vmware_disk.php on line 20
PHP Notice:  Undefined variable: snmp_auth in /var/www/html/sysmon/scripts/ss_vmware_disk.php on line 21
PHP Notice:  Undefined offset: 1 in ss_vmware_disk.php on line 23
PHP Notice:  Undefined offset: 2 in ss_vmware_disk.php on line 24
PHP Notice:  Undefined offset: 3 in ss_vmware_disk.php on line 25
PHP Notice:  Undefined offset: 4 in ss_vmware_disk.php on line 26
PHP Notice:  Undefined offset: 5 in ss_vmware_disk.php on line 44
PHP Notice:  Undefined variable: cmd in ss_vmware_disk.php on line 59
PHP Notice:  Undefined variable: cmd in ss_vmware_disk.php on line 65
PHP Notice:  Undefined variable: cmd in ss_vmware_disk.php on line 121

Here is my ss_vmware_disk.php file from line 20
Quote:
function ss_vmware_esx_disk($hostname, $host_id, $snmp_auth, $cmd, $arg1 = "", $arg2 = "") {
$snmp = explode(":", $snmp_auth);
$snmp_version = $snmp[0];
$snmp_port = $snmp[1];
$snmp_timeout = $snmp[2];
$ping_retries = $snmp[3];
$max_oids = $snmp[4];

$snmp_auth_username = "";
$snmp_auth_password = "";
$snmp_auth_protocol = "";
$snmp_priv_passphrase = "";
$snmp_priv_protocol = "";
$snmp_context = "";
$snmp_community = "";

if ($snmp_version == 3) {
$snmp_auth_username = $snmp[6];
$snmp_auth_password = $snmp[7];
$snmp_auth_protocol = $snmp[8];
$snmp_priv_passphrase = $snmp[9];
$snmp_priv_protocol = $snmp[10];
$snmp_context = $snmp[11];
}else{
$snmp_community = $snmp[5];
}

$oids = array(
"index" => ".1.3.6.1.4.1.6876.3.3.1.1",
"hbaname" => ".1.3.6.1.4.1.6876.3.3.1.2",
"numreads" => ".1.3.6.1.4.1.6876.3.3.1.5",
"kbread" => ".1.3.6.1.4.1.6876.3.3.1.6",
"vmid" => ".1.3.6.1.4.1.6876.2.1.1.7",
"displayname" => ".1.3.6.1.4.1.6876.2.1.1.2",
"hbavmid" => ".1.3.6.1.4.1.6876.3.3.1.3",
"numwrites" => ".1.3.6.1.4.1.6876.3.3.1.7",
"kbwritten" => ".1.3.6.1.4.1.6876.3.3.1.8"
);
...............



Are these something wrong with my file?

Any help is appreciated,


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Fri Aug 01, 2014 11:02 am 
Offline
User avatar

Joined: Thu Jul 03, 2014 1:35 am
Posts: 39
Hey trungmv,

i think there is a problem in your script, but my php skills are not very high :)
Please post the entire script in a Code block? Maybe i can get some information...

To the oids...

Please check these oids with a snmpwalk... then you will get an error if the are the wrong oids.
Code:
snmpwalk -v 2c Host -c SNMP-Community 1.3.6.1.4.1.6876.3.3.1.1

-v 2c is your securitylevel.

_________________
Three tomatoes are walking down the street pappa tomato, mamma tomato, and a little baby tomato.Baby tomato starts lagging behind. Poppa tomato gets angry, goes over to the baby tomato, and smooshes him... and says, "Catch up"


Top
 Profile  
 
 Post subject: Re: Monitor Vmware ESX
PostPosted: Fri Aug 15, 2014 4:42 am 
Offline
Cacti User

Joined: Wed Feb 15, 2012 10:32 pm
Posts: 85
Hi all,

I can not found any other OID excepted .1.3.6.1.4.1.6876 in my vmware.

Are these templates only for old cacti version or whatever?

Currently, i can not get all data from template on forum

Any help is appreciated,


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 239 posts ]  Go to page Previous  1 ... 12, 13, 14, 15, 16

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 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