Hello Team,
We have got a new request to monitor the usage for VMware vCenter Datastores. can you please suggest if there is any plugin available or by which means we an monitor the same. I believe we can not install any agent at vCentre level hence please suggest for the same.
Note: We are using vCenter 6.5 Linux based appliance.
Please let me know, in case you need some more information.
Regards,
Aditya Anand
Monitoring of vCenter datastores!
Re: Monitoring of vCenter datastores!
You can run the vmware wizard against your vCenter machine. Please review our official documentation on monitoring vmware with Nagios XI here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Here's an example of a datastore check, run from the command line along with the output of it:
Is this what you were looking for?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Here's an example of a datastore check, run from the command line along with the output of it:
Code: Select all
/usr/local/nagios/libexec/check_vmware_api.pl -H "x.x.x.x" -f "/usr/local/nagiosxi/etc/components/vmware/xxx_auth.txt" -l "VMFS"
CHECK_VMWARE_API.PL OK - Storages : 'ESX Volume 1'(free)=17494305.69 MB (57.61%), 'datastore1-r620'(free)=1869852.00 MB (49.13%), 'backups'(free)=17055427.53 MB (45.64%), 'ESX Volume 2'(free)=7363872.04 MB (24.25%), 'ISOs'(free)=17487503.93 MB (57.59%) | 'ESX Volume 1'=17494305.69MB;; datastore1-r620=1869852.00MB;; backups=17055427.53MB;; 'ESX Volume 2'=7363872.04MB;; ISOs=17487503.93MB;;Be sure to check out our Knowledgebase for helpful articles and solutions!
-
aditya.c.anand
- Posts: 56
- Joined: Mon Mar 20, 2017 7:16 am
Re: Monitoring of vCenter datastores!
Hello Team,
When we tried to configure using the document , below error was encountered:
-bash-4.2$ /usr/local/nagios/libexec/check_vmware_api.pl -H "boc-v-vmwesx01p.unity.media.corp" -f "/usr/local/nagiosxi/etc/components/vmware/boc_v_vmwesx01p_unity_media_corp_auth.txt" -l "VMFS"
CHECK_VMWARE_API.PL CRITICAL - SOAP request error - possibly a protocol issue: <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="HostSystem">ha-host</obj><propSet><name>datastore</name><val xsi:type="ArrayOfManagedObjectReference"><ManagedObjectReference type="Datastore" xsi:type="ManagedObjectReference">5164fbcd-3c8bc27a-d0df-d89d67285020</ManagedObjectReference><ManagedObjectReference type="Datastore" xsi:type="ManagedObjectReference">515d0037-1ab1ed9f-87a4-d89d67285020</ManagedObjectReference></val></propSet><propSet><name>name</name><val xsi:type="xsd:string">boc-v-vmwesx01p.unity.media.corp</v
Can you please specify what next needs to be done.
Regards,
Aditya Anand
When we tried to configure using the document , below error was encountered:
-bash-4.2$ /usr/local/nagios/libexec/check_vmware_api.pl -H "boc-v-vmwesx01p.unity.media.corp" -f "/usr/local/nagiosxi/etc/components/vmware/boc_v_vmwesx01p_unity_media_corp_auth.txt" -l "VMFS"
CHECK_VMWARE_API.PL CRITICAL - SOAP request error - possibly a protocol issue: <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<RetrievePropertiesResponse xmlns="urn:vim25"><returnval><obj type="HostSystem">ha-host</obj><propSet><name>datastore</name><val xsi:type="ArrayOfManagedObjectReference"><ManagedObjectReference type="Datastore" xsi:type="ManagedObjectReference">5164fbcd-3c8bc27a-d0df-d89d67285020</ManagedObjectReference><ManagedObjectReference type="Datastore" xsi:type="ManagedObjectReference">515d0037-1ab1ed9f-87a4-d89d67285020</ManagedObjectReference></val></propSet><propSet><name>name</name><val xsi:type="xsd:string">boc-v-vmwesx01p.unity.media.corp</v
Can you please specify what next needs to be done.
Regards,
Aditya Anand
Re: Monitoring of vCenter datastores!
Try downgrading the LWP perl module by running the following commands:
Let us know if this fixed your issue. Thank you!
Code: Select all
cd /tmp
wget https://www.cpan.org/modules/by-module/LWP/GAAS/libwww-perl-5.837.tar.gz
tar xvf libwww-perl-5.837.tar.gz
cd libwww-perl-5.837/
perl Makefile.PL
make
make test
make installBe sure to check out our Knowledgebase for helpful articles and solutions!
-
aditya.c.anand
- Posts: 56
- Joined: Mon Mar 20, 2017 7:16 am
Re: Monitoring of vCenter datastores!
Hello Team,
Thanks, this fixed the issue. But we have some important questions to ask :
> Currently we have configured the datastore monitoring via ESXi Host. Now the question is : If the datastore is shared with 20 ESXi hosts and suppose that datastore gets full, then alert will be generated on all 20 Hosts or how the alert mechanism will work?
> Can we monitor the datastore which are under datastore cluster directly via vCenter?
Just for your FYI : We are using vCentre 6.5 linux based appliance.
Please let me know, in case you need some more information.
Regards,
Aditya Anand
Thanks, this fixed the issue. But we have some important questions to ask :
> Currently we have configured the datastore monitoring via ESXi Host. Now the question is : If the datastore is shared with 20 ESXi hosts and suppose that datastore gets full, then alert will be generated on all 20 Hosts or how the alert mechanism will work?
> Can we monitor the datastore which are under datastore cluster directly via vCenter?
Just for your FYI : We are using vCentre 6.5 linux based appliance.
Please let me know, in case you need some more information.
Regards,
Aditya Anand
Re: Monitoring of vCenter datastores!
You've only configured a datastore check for the one host server, correct? In that case you would only get one alert.
I'm not certain what you mean by monitoring the datastore cluster directly via VCenter. Can you clarify?
I'm not certain what you mean by monitoring the datastore cluster directly via VCenter. Can you clarify?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
aditya.c.anand
- Posts: 56
- Joined: Mon Mar 20, 2017 7:16 am
Re: Monitoring of vCenter datastores!
Hello Team,
Actually we wanted to ask like:
when we are monitoring datastore volume via host esxhst57p then the output is like:
/usr/local/nagios/libexec/check_vmware_api.pl -H "ker-v-esxhst57p.unity.media.corp" -f "/usr/local/nagiosxi/etc/components/vmware/ker_v_esxhst57p_unity_media_corp_auth.txt" -l "VMFS"
CHECK_VMWARE_API.PL OK - Storages : 'KER-3PAR-VC5-ISO'(free)=1358028.00 MB (64.76%), 'KER-3PAR1-CTX-SBC-FS6-001'(free)=997300.00 MB (95.13%), 'KER-3PAR1-CTX-SBC-FS6-002'(free)=1015889.00 MB (96.91%) | KER-3PAR-VC5-ISO=1358028.00MB;; KER-3PAR1-CTX-SBC-FS6-001=997300.00MB;; KER-3PAR1-CTX-SBC-FS6-002=1015889.00MB;;
Simultaneously when we are monitoring datastore volume via esxhst58p then the output is:
[nagios@ker-l-appmon01p ~]$ /usr/local/nagios/libexec/check_vmware_api.pl -H "ker-v-esxhst58p.unity.media.corp" -f "/usr/local/nagiosxi/etc/components/vmware/ker_v_esxhst57p_unity_media_corp_auth.txt" -l "VMFS"
CHECK_VMWARE_API.PL OK - Storages : 'KER-3PAR-VC5-ISO'(free)=1353439.00 MB (64.54%), 'KER-3PAR1-CTX-SBC-FS6-001'(free)=997300.00 MB (95.13%), 'KER-3PAR1-CTX-SBC-FS6-002'(free)=1015889.00 MB (96.91%) | KER-3PAR-VC5-ISO=1353439.00MB;; KER-3PAR1-CTX-SBC-FS6-001=997300.00MB;; KER-3PAR1-CTX-SBC-FS6-002=1015889.00MB;;
Here you will see the same output as datastore is being shared by both the hosts.
The question was , if datastore volume will cross the threshold then the alert will be generated on both the hosts for the same issue right?
If yes then can we avoid it anyway. We are expecting only one alert per datastore.
Hence we were asking, if we can monitor the datastore volume directly via vCentre?
Please let us know, in case you need some more information.
Regards,
Aditya Anand
Actually we wanted to ask like:
when we are monitoring datastore volume via host esxhst57p then the output is like:
/usr/local/nagios/libexec/check_vmware_api.pl -H "ker-v-esxhst57p.unity.media.corp" -f "/usr/local/nagiosxi/etc/components/vmware/ker_v_esxhst57p_unity_media_corp_auth.txt" -l "VMFS"
CHECK_VMWARE_API.PL OK - Storages : 'KER-3PAR-VC5-ISO'(free)=1358028.00 MB (64.76%), 'KER-3PAR1-CTX-SBC-FS6-001'(free)=997300.00 MB (95.13%), 'KER-3PAR1-CTX-SBC-FS6-002'(free)=1015889.00 MB (96.91%) | KER-3PAR-VC5-ISO=1358028.00MB;; KER-3PAR1-CTX-SBC-FS6-001=997300.00MB;; KER-3PAR1-CTX-SBC-FS6-002=1015889.00MB;;
Simultaneously when we are monitoring datastore volume via esxhst58p then the output is:
[nagios@ker-l-appmon01p ~]$ /usr/local/nagios/libexec/check_vmware_api.pl -H "ker-v-esxhst58p.unity.media.corp" -f "/usr/local/nagiosxi/etc/components/vmware/ker_v_esxhst57p_unity_media_corp_auth.txt" -l "VMFS"
CHECK_VMWARE_API.PL OK - Storages : 'KER-3PAR-VC5-ISO'(free)=1353439.00 MB (64.54%), 'KER-3PAR1-CTX-SBC-FS6-001'(free)=997300.00 MB (95.13%), 'KER-3PAR1-CTX-SBC-FS6-002'(free)=1015889.00 MB (96.91%) | KER-3PAR-VC5-ISO=1353439.00MB;; KER-3PAR1-CTX-SBC-FS6-001=997300.00MB;; KER-3PAR1-CTX-SBC-FS6-002=1015889.00MB;;
Here you will see the same output as datastore is being shared by both the hosts.
The question was , if datastore volume will cross the threshold then the alert will be generated on both the hosts for the same issue right?
If yes then can we avoid it anyway. We are expecting only one alert per datastore.
Hence we were asking, if we can monitor the datastore volume directly via vCentre?
Please let us know, in case you need some more information.
Regards,
Aditya Anand
Re: Monitoring of vCenter datastores!
So all hosts have a service check to check the same datastore? In this case you would get multiple alerts. The work around would be to disable all but one of these checks or use the check_cluster plugin to group these checks into a single check. See https://assets.nagios.com/downloads/nag ... sters.html for more information on this plugin and https://support.nagios.com/forum/viewto ... =6&t=38273 for an example.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.