Check_esx_host_vmfs plugin issue while monitoring ESXi DS

Hello,

I setup a check_esx_host_vmfs plugin for monitoring datastore status on ESXi server. But on configuring this plugin, this is working fine but it displays "WARNING" status on UI of Nagios every time.
Currently my datastore size is 926.50 GB and right now free space available is 570.60 GB but still it showing warning on UI.

In command.cfg i mentioned the below one for this plugin.

define command{
        command_name check_esx_host_vmfs
        command_line $USER1$/check_esx3 -H $HOSTADDRESS$ -u $USER11$ -p $USER12$ -l vmfs -w $ARG2$ -c $ARG3$
}

In my services.cfg file i defined the below lines to check the status of datastore using the above mentioned command.

# check for datasource usage
define service{
        use                            generic-service
        action_url                     /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$' onMouseOver='showGraphPopup(this)' onMouseOut='hi                                       deGraphPopup()' rel='/nagiosgraph/cgi-bin/showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$
        host_name                      ESXiserver
        service_description            ESXi Datasource Usage
        is_volatile                    0
        check_period                   24x7
        max_check_attempts             3
        normal_check_interval          3
        retry_check_interval           1
        contact_groups                 vmwareadmins
        notification_interval          120
        notification_period            24x7
        notification_options           u,c,r
        check_command                  check_esx_host_vmfs!90!98
      }

Warning message is 90% and Critical is 98%, but right now its 61% but shows a warning on Nagios UI.

Is i am define something wrong here to setup this plugin or this is a bug in this.

Attached is the screenshot of Nagios UI having warning displaying.

Hello,

After googling for this issue and found that the check_esx3 script is throwing WARNING and CRITICAL status if we use %age for datastore [w 90% and c 95%].
This works fine if we set triggers in MBs [Total size/trigger%][ -w 853862 -c 901299]

/usr/lib64/nagios/plugins/c;901H 104.10.50.218 -u admin -p password1234 -l vmfs -o used -w 853862 -c 901299
CHECK_ESX3 OK - Storages : datastore1=364443 MB (38.41%) | datastore1=364443MB;853862;901299
# /usr/lib64/nagios/plugins/check_esx3 -H 104.10.50.218 -u admin -p password1234 -l vmfs -o used
CHECK_ESX3 OK - Storages : datastore1=364443 MB (38.41%) | datastore1=364443MB;;

To set the trigger we have to define the -w and -c as per the disk capacity on each esx hosts.

Detail is given on this link
[URL="http://exchange.nagios.org/directory/Plugins/Operating-Systems/*-Virtual-Environments/VMWare/Vmware-ESX-%26-VM-host/details"]

Better to fix this script to use %age instead of MBs