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 ?
Nagios XI vs resource pools in Vmware vCenter 5.1.0
Nagios XI vs resource pools in Vmware vCenter 5.1.0
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0
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/
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/
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0
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.slansing wrote:Troy's new plugin may have what you are looking for: http://exchange.nagios.org/directory/Pl ... re/details
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0
Thx Box293 for your response and very nice script !
However, I have a couple of questions about the following commands :
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 ?
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.
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:15Is 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:MBWhat do you understand under Available cores 0 & Used Mhz 0 ?
These 2 never seem to change on several Clusters.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0
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
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
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
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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0
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.
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.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0
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:
Replace the username and password values with real ones and let me know if this works.
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"As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0
Nope:
Can't call method "name" on an undefined value at ./box293_check_vmware.pl line 2927.
OK: VMware vCenter Server 5.1.0 build-947673
Code: Select all
./box293_check_vmware.pl --server 10.77.254.64 --check Guest_Snapshot --datacenter "Datacenter DCO01 - NFR 5.1" --username administrator --password "******"Code: Select all
./box293_check_vmware.pl --server 10.77.254.64 --check vCenter_Name_Version --username administrator --password "******"- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios XI vs resource pools in Vmware vCenter 5.1.0
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.
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.