This support forum board is for support questions relating to
Nagios XI , our flagship commercial network monitoring solution.
progressive.nagiosXI
Posts: 277 Joined: Mon Jul 31, 2017 5:54 am
Post
by progressive.nagiosXI » Thu Jun 25, 2020 11:51 am
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
You do not have the required permissions to view the files attached to this post.
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Fri Jun 26, 2020 10:51 am
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
Be sure to check out our
Knowledgebase for helpful articles and solutions!
progressive.nagiosXI
Posts: 277 Joined: Mon Jul 31, 2017 5:54 am
Post
by progressive.nagiosXI » Fri Jun 26, 2020 12:36 pm
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
You do not have the required permissions to view the files attached to this post.
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Fri Jun 26, 2020 1:23 pm
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!
Be sure to check out our
Knowledgebase for helpful articles and solutions!