Page 1 of 1

Nagios XI vs resource pools in Vmware vCenter 5.1.0

Posted: Mon Jul 14, 2014 4:52 am
by DennisPR
I would like to monitor and report resource pools in Vmware vCenter 5.1.0?
Would it be possible to monitor the following items in a resource pool ?
vCenter.PNG

Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0

Posted: Mon Jul 14, 2014 9:38 am
by slansing
You've got a few options, one would be scraping the vcenter web interface for this information with an http check, (may not be the most fun to set up, but it can be done).

You can also run the vmware wizard and see if you can get what you need, though I'm not sure it covers this.

Troy's new plugin may have what you are looking for: http://exchange.nagios.org/directory/Pl ... re/details

There may also be a plugin that does this located here: http://exchange.nagios.org/

Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0

Posted: Mon Jul 14, 2014 8:02 pm
by Box293
slansing wrote:Troy's new plugin may have what you are looking for: http://exchange.nagios.org/directory/Pl ... re/details
I don't have specific Resource Pool checks in the box293_check_vmware plugin, however I think that some of the cluster oriented checks would work against a resource pool.

Specifically what is it in a resource pool that you want to report on? I could add resource pool oriented checks to the box293_check_vmware plugin.

Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0

Posted: Wed Jul 16, 2014 9:38 am
by DennisPR
Thx Box293 for your response and very nice script !

However, I have a couple of questions about the following commands :

Code: Select all

./box293_check_vmware.pl --server M.y.I.P --check Guest_Snapshot --datacenter 'MyDataCenter' --warning snapshot_age:5 --critical snapshot_age:15
Returns : Can't call method "name" on an undefined value at ./box293_check_vmware.pl line 2920.
Is this a bug or am I missing a parameter ?

Code: Select all

./box293_check_vmware.pl --server M.y.I.P --check Cluster_Resource_Info --cluster 'MyCluster' --reporting_si CPU_Speed:MHz,Memory_Size:MB
Returns : OK: Cluster 'Cluster DCO - NFR' [Hosts {Total: 8} {Available: 8}] [{Cores (Total: 96) (Available: 0)} {CPU (Free: 229,576 MHz) (Used: 0 MHz) (Effective: 229,576 MHz) (Total: 255,936 MHz)}] [Memory {Free: 578,414 MB} {Used: 546,415 MB} {Effective: 1,124,829 MB} {Total: 1,179,565.8 MB}]|'Hosts Total'=8 'Hosts Available'=8 'Cores Total'=96 'Cores Available'=0 'CPU Free'=229576MHz 'CPU Used'=0MHz 'CPU Effective'=229576MHz 'CPU Total'=255936MHz 'Memory Free'=578414MB 'Memory Used'=546415MB 'Memory Effective'=1124829MB 'Memory Total'=1179565.8MB

What do you understand under Available cores 0 & Used Mhz 0 ?
These 2 never seem to change on several Clusters.

Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0

Posted: Wed Jul 16, 2014 3:24 pm
by Box293
Hi Dennis,
Great to hear you've found the plugin usefull.

I checked the plugin on the Nagios Exchange and it looks like I didn't upload the latest version to it :oops:

I've just uploaded the latest version which should resolve those two issues you've reported, let me know if they don't.

http://exchange.nagios.org/directory/Pl ... re/details

Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0

Posted: Thu Jul 17, 2014 3:16 am
by DennisPR
Hi

The new version of you script fixed the issue with the CPU performance data but the snapshot command line still returns : Can't call method "name" on an undefined value at ./box293_check_vmware.pl line 2927.

Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0

Posted: Thu Jul 17, 2014 9:05 pm
by Box293
Excellent, I'm glad we resolved one of the issues.

The other issue I beleive is caused by permissions granted to the account querying vCenter. We can confirm if this is the case by performing the check as a top level admin. Example:

Code: Select all

./box293_check_vmware.pl --server M.y.I.P --check Guest_Snapshot --datacenter 'MyDataCenter' --warning snapshot_age:5 --critical snapshot_age:15 --username administrator --password "D0nt Gu3ss This"
Replace the username and password values with real ones and let me know if this works.

Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0

Posted: Fri Jul 18, 2014 4:04 am
by DennisPR
Nope:

Code: Select all

./box293_check_vmware.pl --server 10.77.254.64 --check Guest_Snapshot --datacenter "Datacenter DCO01 - NFR 5.1" --username administrator --password "******"
Can't call method "name" on an undefined value at ./box293_check_vmware.pl line 2927.

Code: Select all

./box293_check_vmware.pl --server 10.77.254.64 --check vCenter_Name_Version --username administrator --password "******"
OK: VMware vCenter Server 5.1.0 build-947673

Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0

Posted: Fri Jul 18, 2014 7:42 pm
by Box293
Well that blows my permissions theory out of the water.

I'll get you to send an email to [email protected] and we'll work on this problem offline.

Once I get your email I'll send you a version of the plugin with lots of debugging enabled so we can get to the root of the problem.