Page 1 of 1

esxi storage threshold

Posted: Thu Jun 25, 2020 11:51 am
by progressive.nagiosXI
Hi ,

Please help how to configure threshold for ESXI storage(Datastore usage for VMHost).

how can we put threshold for all drives in once in percentage(like 70% ,80% etc)

Code: Select all

Status Information

CHECK_VMWARE_API.PL OK - Storages : '3PAR-TIER1-LUN05'(free)=776466.00 MB (37.03%), '3PAR-TIER1-LUN11'(free)=868874.00 MB (41.44%), '3PAR-TIER1-LUN10'(free)=571166.00 MB (27.24%), '3PAR-TIER1-LUN08'(free)=622180.00 MB (29.67%), '3PAR-TIER1-LUN02'(free)=80

Thanks

Re: esxi storage threshold

Posted: Fri Jun 26, 2020 10:51 am
by lmiltchev
You can use something like this:

Code: Select all

/usr/local/nagios/libexec/check_vmware_api.pl -H x.x.x.x -f "/usr/local/nagiosxi/etc/components/vmware/<hostname>_auth.txt" -l "VMFS" -w 30%: -c 20%:
If the free space on any of the datastores falls under 30%, you would get a warning. If it falls even further (under 20%), you would get a critical.

You can read more about using thresholds/ranges here:

https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT

Re: esxi storage threshold

Posted: Fri Jun 26, 2020 12:36 pm
by progressive.nagiosXI
Hi ,

Thanks for update

Please also help me to understand threshold as per snapshot.

service name Datastore usage for VMHost >> no threshold set
Created service name Datastore usage for VMHost - Test for testing threshold and set below threshold as in command but it shows warning for those where space is left more than 80%

Code: Select all

[b]Datastore usage for VMHost - Test[/b]

/usr/local/nagios/libexec/check_vmware_api.pl -H "10.101.103.77" -f "/usr/local/nagiosxi/etc/components/vmware/auth.txt" -l "VMFS" -w 20%: -c 10%:
Thanks

Re: esxi storage threshold

Posted: Fri Jun 26, 2020 1:23 pm
by lmiltchev
Can you show us the actual command, run from the command line along with the output of it? The output in the screenshot is "cut off", so I cannot see all of it. Please hide/obfuscate sensitive info. Thanks!