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
DataStore Vcenter show minimun DataStores
-
FCC_Nagios_Support
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: DataStore Vcenter show minimun DataStores
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:
Is this what you were looking for?
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%Be sure to check out our Knowledgebase for helpful articles and solutions!