Check_esx3 vfms warning and critical values
Posted: Tue Dec 18, 2018 1:32 pm
Hey Gents,
Can anyone actually explain how the warning and critical values work with the vmfs command?
I cannot ascertain how it is working with trial and error. Examples below:
If I use -c 10 I get a return code of OK when there is 6.59% free < 10%
"/usr/local/nagiosxi/etc/components/vmware/cafaroesx73_cafaroco_com_auth.txt" -l "VMFS" -s Prod-VMs-Data-Drives -c 10%
CHECK_ESX3.PL OK - Storages : 'Prod-VMs-Data-Drives'(free)=202.28 GB (6.59%) | Prod-VMs-Data-Drives=6.59%;;10
To make this more confusing if I use -c 5 I get critical value when there is 6.59% > than 5%
"/usr/local/nagiosxi/etc/components/vmware/cafaroesx73_cafaroco_com_auth.txt" -l "VMFS" -s Prod-VMs-Data-Drives -c 5
CHECK_ESX3.PL CRITICAL - Storages : 'Prod-VMs-Data-Drives'(free)=202.25 GB (6.58%) | Prod-VMs-Data-Drives=202.25GB;;5
I am not blaming the check I assume I am thinking of this incorrectly but I believe, given the values above, that -c 10 should return a critical value and -c 5 should return an OK value. I however get the opposite...
Can anyone shed any light? I looked through many forums and didn't find the same problem. Also using or not using the percent sign makes no difference as well.
Plugin Version: 0.7.1
Nagios XI 5.5.1
CentOS 6.8
VMware 6.5
Can anyone actually explain how the warning and critical values work with the vmfs command?
I cannot ascertain how it is working with trial and error. Examples below:
If I use -c 10 I get a return code of OK when there is 6.59% free < 10%
"/usr/local/nagiosxi/etc/components/vmware/cafaroesx73_cafaroco_com_auth.txt" -l "VMFS" -s Prod-VMs-Data-Drives -c 10%
CHECK_ESX3.PL OK - Storages : 'Prod-VMs-Data-Drives'(free)=202.28 GB (6.59%) | Prod-VMs-Data-Drives=6.59%;;10
To make this more confusing if I use -c 5 I get critical value when there is 6.59% > than 5%
"/usr/local/nagiosxi/etc/components/vmware/cafaroesx73_cafaroco_com_auth.txt" -l "VMFS" -s Prod-VMs-Data-Drives -c 5
CHECK_ESX3.PL CRITICAL - Storages : 'Prod-VMs-Data-Drives'(free)=202.25 GB (6.58%) | Prod-VMs-Data-Drives=202.25GB;;5
I am not blaming the check I assume I am thinking of this incorrectly but I believe, given the values above, that -c 10 should return a critical value and -c 5 should return an OK value. I however get the opposite...
Can anyone shed any light? I looked through many forums and didn't find the same problem. Also using or not using the percent sign makes no difference as well.
Plugin Version: 0.7.1
Nagios XI 5.5.1
CentOS 6.8
VMware 6.5