Page 1 of 1

DataStore Vcenter show minimun DataStores

Posted: Thu Jul 30, 2020 11:52 pm
by FCC_Nagios_Support
Good morning,

I am trying to monitorize DataStore of ESXI, VM, Vcenter.
I ask my Vcenter but shows me a little bit of DataStores, not the total:
a2vimgv100p.fcc.intfcc.local = VCENTER
[nagios@a2nagio001p ~]$ /usr/local/nagios/libexec/check_vmware_api.pl -H "a2vimgv100p.fcc.intfcc.local" -f "/usr/local/nagiosxi/etc/components/vmware/a2vimgv100p_fcc_intfcc_local_auth.txt" -l "VMFS" -w 80% -c 99.50%
CHECK_VMWARE_API.PL WARNING - Storages : 'LocalStorage-a0vzh001p'(free)=131379.00 MB (99.26%), 'CLITXDMZ_VMFS_A0NNAPP001P_aggr1_LUN10'(free)=543208.00 MB (34.54%), 'CLITXDMZ_VMFS_A0NNAPP001P_aggr1_LUN11'(free)=602987.00 MB (16.43%), 'CLITXDMZ_VMFS_A0NNAPP002P_aggr1_LUN12'(free)=1044037.00 MB (39.83%) | LocalStorage-a0vzh001p=99.26%;80;99.5 CLITXDMZ_VMFS_A0NNAPP001P_aggr1_LUN10=34.54%;80;99.5 CLITXDMZ_VMFS_A0NNAPP001P_aggr1_LUN11=16.43%;80;99.5 CLITXDMZ_VMFS_A0NNAPP002P_aggr1_LUN12=39.83%;80;99.5

There is not de total of DataStore, am i missing one parameter.

Thanks in advance

Re: DataStore Vcenter show minimun DataStores

Posted: Fri Jul 31, 2020 12:35 pm
by lmiltchev
If you would like to monitor one specific datastore (not all of them), you could pass the name of it after the "-s" flag.

Example:

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H "a2vimgv100p.fcc.intfcc.local" -f "/usr/local/nagiosxi/etc/components/vmware/a2vimgv100p_fcc_intfcc_local_auth.txt" -l "VMFS" -s  'LocalStorage-a0vzh001p' -w 80% -c 99.50%
Is this what you were looking for?