Check drives size displays too much information

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Check drives size displays too much information

Post by cdienger »

I haven't been able to reproduce this yet and want to clarify since the error seems to have changed. You get
Complex Format:_UsedSpace,#B,Used,, ,,
with this command(using -d):

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxxxxxxx -u xxxxxxxxxxx -p xxxxxxxxxxxxx -m checkdrivesize -a 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:' -w _FreeGB=10: -c _FreeGB=5:  --extrawmicarg "--debuglevel=4" -d 
and
Negative number not allowed in format_bytes at /usr/local/nagios/libexec/check_wmi_plus.pl line 1360
with this command(not using -d):

Code: Select all

/usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxxxxxxx -u xxxxxxxxxxx -p xxxxxxxxxxxxx -m checkdrivesize -a 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:' -w _FreeGB=10: -c _FreeGB=5: --extrawmicarg "--debuglevel=4" 
Correct? Or did something else change to get the different output?

Is this the only output? The code surrounding the "Complex" message would seem to suggest that a lot more should be printed to the screen when this message is seen.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Check drives size displays too much information

Post by Frédéric GRANAT »

Hi,
I upgraded to NagiosXI 5.6.3 from 5.3.0 and now I've got a new output :

Code: Select all

[[email protected] ~]$ /usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxx -u xxxxxx -p xxxxxx-m checkdrivesize -a 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:' -w _FreeGB=10: -c _FreeGB=5:
OK - C: Total=59.66GB, Used=16.10GB (27.0%), Free=43.55GB (73.0%)     OK - D: Total=70.00GB, Used=-31.01GB (-44.3%), Free=101.01GB (144.3%)     OK - E: Total=520.00GB, Used=465.58GB (89.5%), Free=54.42GB (10.5%)     OK - F: Total=25.00GB, Used=3.07GB (12.3%), Free=21.92GB (87.7%)     |'C: Space'=16.10GB; 'C: Utilisation'=27.0%; 'D: Space'=-31.01GB; 'D: Utilisation'=-44.3%; 'E: Space'=465.58GB; 'E: Utilisation'=89.5%; 'F: Space'=3.07GB; 'F: Utilisation'=12.3%;
So no more error message "Return code of 255 is out of bounds" , but now negative value for drive D: used

If I run with debug option

Code: Select all

[[email protected] ~]$ /usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxx -u xxxxxx -p xxxxxx -m checkdrivesize -a 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:' -w _FreeGB=10: -c _FreeGB=5:  --extrawmicarg "--debuglevel=4" -d 
Command Line (v1.6): /usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxxx -u USER -p PASS -m checkdrivesize -a C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R: -w _FreeGB=10: -c _FreeGB=5: --extrawmicarg --debuglevel=4 -d
Base Dir: /usr/local/nagios/libexec
Conf File Dir: /usr/local/nagios/libexec
Loaded Conf File /usr/local/nagios/libexec/check_wmi_plus.conf
Extra Wmic Arguments specified:--debuglevel=4
Round #1 of 1
QUERY: /usr/bin/wmic '--debuglevel=4' '-U' 'USER%PASS' '--namespace' 'root/cimv2' '//ws-fs09-sd' 'Select DeviceID,freespace,Size,VolumeName from Win32_LogicalDisk where DriveType=3'
OUTPUT: [param/loadparm.c:587:init_globals()] Initialising global parameters
[param/loadparm.c:2462:lp_load()] lp_load: refreshing parameters from /dev/null
[param/params.c:556:pm_process()] params.c:pm_process() - Processing configuration file "/dev/null"
[param/loadparm.c:2471:lp_load()] pm_process() returned Yes
[param/loadparm.c:1343:lp_add_hidden()] adding hidden service IPC$
[param/loadparm.c:1343:lp_add_hidden()] adding hidden service ADMIN$
[auth/credentials/credentials_krb5.c:171:cli_credentials_set_ccache()] failed to get principal from default ccache: No such file or directory: open(/tmp/krb5cc_500): No such file or directory
[auth/gensec/gensec.c:1229:gensec_register()] GENSEC backend 'sasl-DIGEST-MD5' registered
[auth/auth.c:447:auth_register()] AUTH backend 'winbind_samba3' registered
[auth/auth.c:447:auth_register()] AUTH backend 'winbind' registered
[auth/auth.c:447:auth_register()] AUTH backend 'name_to_ntstatus' registered
[auth/auth.c:447:auth_register()] AUTH backend 'fixed_challenge' registered
[auth/auth.c:447:auth_register()] AUTH backend 'unix' registered
[auth/auth.c:447:auth_register()] AUTH backend 'anonymous' registered
[auth/auth.c:447:auth_register()] AUTH backend 'sam' registered
[auth/auth.c:447:auth_register()] AUTH backend 'sam_ignoredomain' registered
[auth/gensec/gensec.c:1229:gensec_register()] GENSEC backend 'krb5' registered
[auth/gensec/gensec.c:1205:gensec_register()] gensec subsystem fake_gssapi_krb5 is disabled
[auth/gensec/gensec.c:1229:gensec_register()] GENSEC backend 'schannel' registered
[auth/gensec/gensec.c:1229:gensec_register()] GENSEC backend 'spnego' registered
[auth/gensec/gensec.c:1205:gensec_register()] gensec subsystem gssapi_spnego is disabled
[auth/gensec/gensec.c:1229:gensec_register()] GENSEC backend 'gssapi_krb5' registered
[auth/gensec/gensec.c:1229:gensec_register()] GENSEC backend 'gssapi_krb5_sasl' registered
[auth/gensec/gensec.c:1229:gensec_register()] GENSEC backend 'ntlmssp' registered
[lib/com/dcom/main.c:528:dcom_determine_rpc_binding()] Using binding ncacn_ip_tcp:ws-fs09-sd
[librpc/rpc/dcerpc_connect.c:513:continue_map_binding()] Mapped to DCERPC endpoint 135
[lib/com/dcom/main.c:413:determine_rpc_binding_continue2()] dcerpc_ndr_request_recv returned NT_STATUS_OK
[lib/com/dcom/main.c:417:determine_rpc_binding_continue2()] IObjectExporter::ServerAlive returned NT_STATUS_OK
[auth/kerberos/kerberos_util.c:236:kinit_to_ccache()] kinit for xxxxxxxx@xxxxxxxx failed (Cannot contact any KDC for requested realm: unable to reach any KDC in realm DOMCOMPTA)
[auth/credentials/credentials_krb5.c:300:cli_credentials_get_client_gss_creds()] Failed to get CCACHE for GSSAPI client: Cannot contact any KDC for requested realm
[auth/gensec/gensec_gssapi.c:354:gensec_gssapi_client_start()] Cannot reach a KDC we require
[auth/gensec/gensec.c:606:gensec_start_mech()] Failed to start GENSEC client mech gssapi_krb5: NT_STATUS_INVALID_PARAMETER
[auth/ntlmssp/ntlmssp_client.c:128:ntlmssp_client_challenge()] Got challenge flags:
[auth/ntlmssp/ntlmssp.c:72:debug_ntlmssp_flags()] Got NTLMSSP neg_flags=0x62898205
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_CHAL_TARGET_INFO
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
[auth/ntlmssp/ntlmssp_client.c:242:ntlmssp_client_challenge()] NTLMSSP: Set final flags:
[auth/ntlmssp/ntlmssp.c:72:debug_ntlmssp_flags()] Got NTLMSSP neg_flags=0x60088205
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
[lib/com/dcom/main.c:570:complete_activation()] Negotiated COM version: 5.1 using binding ncacn_ip_tcp:ws-fs09-sd[135]
[lib/com/dcom/main.c:1172:bind_new_pipe()] lib/com/dcom/main.c:1172: dcom_get_pipe: host=ws-fs09-sd, similar=WS-FS09-SD[49154]
[auth/ntlmssp/ntlmssp_client.c:128:ntlmssp_client_challenge()] Got challenge flags:
[auth/ntlmssp/ntlmssp.c:72:debug_ntlmssp_flags()] Got NTLMSSP neg_flags=0x62898215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_CHAL_TARGET_INFO
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
[auth/ntlmssp/ntlmssp_client.c:242:ntlmssp_client_challenge()] NTLMSSP: Set final flags:
[auth/ntlmssp/ntlmssp.c:72:debug_ntlmssp_flags()] Got NTLMSSP neg_flags=0x60088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
[auth/ntlmssp/ntlmssp_sign.c:318:ntlmssp_sign_init()] NTLMSSP Sign/Seal - Initialising with flags:
[auth/ntlmssp/ntlmssp.c:72:debug_ntlmssp_flags()] Got NTLMSSP neg_flags=0x60088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
[wmi/wmic.c:196:main()] OK   : Login to remote object.
[wmi/wmic.c:200:main()] OK   : WMI query execute.
[wmi/wmic.c:203:main()] OK   : Reset result of WMI query.
[wmi/wmic.c:212:main()] OK   : Retrieve result data.
CLASS: Win32_LogicalDisk
DeviceID|FreeSpace|Size|VolumeName
C:|46763061248|64055406592|System
D:|108454801408|75161927680|Data1
E:|58428981248|558342598656|Data2
F:|23539044352|26840395776|ClichesWindows

COLUMNS(last index=3):DeviceID|FreeSpace|Size|VolumeName
Now looking for (.*?)\n (use_split=1)
FIELDS (via Split):COLNAME=DeviceID,FIELD=C:
COLNAME=FreeSpace,FIELD=46763061248
COLNAME=Size,FIELD=64055406592
COLNAME=VolumeName,FIELD=System

Row Data Found OK
Summing for FIELD:"FreeSpace"
Summing for FIELD:"Size"
FIELDS (via Split):COLNAME=DeviceID,FIELD=D:
COLNAME=FreeSpace,FIELD=108454801408
COLNAME=Size,FIELD=75161927680
COLNAME=VolumeName,FIELD=Data1

Row Data Found OK
Summing for FIELD:"FreeSpace"
Summing for FIELD:"Size"
FIELDS (via Split):COLNAME=DeviceID,FIELD=E:
COLNAME=FreeSpace,FIELD=58428981248
COLNAME=Size,FIELD=558342598656
COLNAME=VolumeName,FIELD=Data2

Row Data Found OK
Summing for FIELD:"FreeSpace"
Summing for FIELD:"Size"
FIELDS (via Split):COLNAME=DeviceID,FIELD=F:
COLNAME=FreeSpace,FIELD=23539044352
COLNAME=Size,FIELD=26840395776
COLNAME=VolumeName,FIELD=ClichesWindows

Row Data Found OK
Summing for FIELD:"FreeSpace"
Summing for FIELD:"Size"
WMI DATA:$VAR1 = [
          [
            {
              'VolumeName' => 'System',
              '_QuerySum_Size' => '64055406592',
              '_ColSum_FreeSpace' => '237185888256',
              '_QuerySum_FreeSpace' => '46763061248',
              '_ChecksOK' => 1,
              '_ColSum_Size' => '724400328704',
              'DeviceID' => 'C:',
              'Size' => '64055406592',
              'FreeSpace' => '46763061248',
              '_ItemCount' => 4
            },
            {
              'DeviceID' => 'D:',
              'Size' => '75161927680',
              '_QuerySum_Size' => '75161927680',
              'VolumeName' => 'Data1',
              'FreeSpace' => '108454801408',
              '_QuerySum_FreeSpace' => '108454801408'
            },
            {
              'DeviceID' => 'E:',
              'Size' => '558342598656',
              '_QuerySum_Size' => '558342598656',
              'VolumeName' => 'Data2',
              'FreeSpace' => '58428981248',
              '_QuerySum_FreeSpace' => '58428981248'
            },
            {
              'DeviceID' => 'F:',
              'Size' => '26840395776',
              '_QuerySum_Size' => '26840395776',
              'VolumeName' => 'ClichesWindows',
              'FreeSpace' => '23539044352',
              '_QuerySum_FreeSpace' => '23539044352'
            }
          ]
        ];
WMI Index = 0
ROW BEFORE: $VAR1 = {
          'VolumeName' => 'System',
          '_QuerySum_Size' => '64055406592',
          '_ColSum_FreeSpace' => '237185888256',
          '_QuerySum_FreeSpace' => '46763061248',
          '_ChecksOK' => 1,
          '_ColSum_Size' => '724400328704',
          'DeviceID' => 'C:',
          'Size' => '64055406592',
          'FreeSpace' => '46763061248',
          '_ItemCount' => 4
        };
Testing TEST VALUES $VAR1 = {
          'VolumeName' => 'System',
          '_QuerySum_Size' => '64055406592',
          '_QuerySum_FreeSpace' => '46763061248',
          '_UsedSpace' => '17292345344',
          '_ChecksOK' => 1,
          '_ColSum_Size' => '724400328704',
          '_Free%' => '73.0',
          'Size' => '64055406592',
          'FreeSpace' => '46763061248',
          '_DriveSizeGB' => '59.66',
          '_ItemCount' => 4,
          '_Used%' => '27.0',
          '_ColSum_FreeSpace' => '237185888256',
          'DeviceID' => 'C:',
          '_FreeGB' => '43.55',
          '_UsedGB' => '16.10'
        };
WARNING SPECS: $VAR1 = [
          '_FreeGB=10:'
        ];
CRITICAL SPECS: $VAR1 = [
          '_FreeGB=5:'
        ];
------------ Critical Check ------------
Testing SPEC: _FreeGB=5:
SPEC=_FreeGB,,5,,,
Range Spec - FIELD=_FreeGB, AT= MIN=5 MINMULTIPLIER= MAX= MAXMULTIPLIER=
Testing MIN: '5' for Field _FreeGB which has value: 43.55
TEST2 43.55 < 5
Test of <5 (5) vs 43.55 yields 0
Test Result = 0, Perf Spec=5, Trigger Display=, Field Tested=_FreeGB
------------ Warning Check ------------
Testing SPEC: _FreeGB=10:
SPEC=_FreeGB,,10,,,
Range Spec - FIELD=_FreeGB, AT= MIN=10 MINMULTIPLIER= MAX= MAXMULTIPLIER=
Testing MIN: '10' for Field _FreeGB which has value: 43.55
TEST2 43.55 < 10
Test of <10 (10) vs 43.55 yields 0
Test Result = 0, Perf Spec=10, Trigger Display=, Field Tested=_FreeGB
------------ End Check ------------
Test Results:
Warn Perf Specs=$VAR1 = {
          '_FreeGB' => '10',
          '_Free%' => '',
          '_Used%' => '',
          '_UsedGB' => ''
        };
Warn Results=$VAR1 = [
          ''
        ];
Critical Perf Spec=$VAR1 = {
          '_FreeGB' => '5',
          '_Free%' => '',
          '_Used%' => '',
          '_UsedGB' => ''
        };
Critical Results=$VAR1 = [
          ''
        ];
Data Passed back from check: $VAR1 = {
          'VolumeName' => 'System',
          '_QuerySum_Size' => '64055406592',
          '_TestResult' => 0,
          '_QuerySum_FreeSpace' => '46763061248',
          '_UsedSpace' => '17292345344',
          '_ChecksOK' => 1,
          '_ColSum_Size' => '724400328704',
          '_Free%' => '73.0',
          'Size' => '64055406592',
          'FreeSpace' => '46763061248',
          '_DriveSizeGB' => '59.66',
          '_ItemCount' => 4,
          '_Used%' => '27.0',
          '_DisplayMsg' => 'OK',
          '_ColSum_FreeSpace' => '237185888256',
          '_StatusType' => 'OK',
          'DeviceID' => 'C:',
          '_FreeGB' => '43.55',
          '_UsedGB' => '16.10',
          '_Triggers' => ''
        };
---------- Building Up Display
Incoming Data $VAR1 = {
          '_submode' => '',
          'VolumeName' => 'System',
          '_QuerySum_Size' => '64055406592',
          '_TestResult' => 0,
          '_arg5' => '',
          '_UsedSpace' => '17292345344',
          '_ChecksOK' => 1,
          '_ColSum_Size' => '724400328704',
          '_nodatamode' => '',
          '_Free%' => '73.0',
          'Size' => '64055406592',
          '_mode' => 'checkdrivesize',
          'FreeSpace' => '46763061248',
          '_DriveSizeGB' => '59.66',
          '_ItemCount' => 4,
          '_arg1' => 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:',
          '_arg2' => '',
          '_bytefactor' => 1024,
          '_UsedGB' => '16.10',
          '_nodataexit' => '',
          '_nodatastring' => 'WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
',
          '_QuerySum_FreeSpace' => '46763061248',
          '_host' => 'ws-fs09-sd',
          '_savedbytefactor' => '',
          '_arg3' => '',
          '_Used%' => '27.0',
          '_DisplayMsg' => 'OK',
          '_ColSum_FreeSpace' => '237185888256',
          '_truncate_output' => 8192,
          'DiskDisplayName' => 'C:',
          '_timeout' => '',
          '_FreeGB' => '43.55',
          'DeviceID' => 'C:',
          '_StatusType' => 'OK',
          '_delay' => '',
          '_arg4' => undef,
          '_Triggers' => ''
        };
------- Processing _DisplayMsg||~|~| - ||
Complex Format:_DisplayMsg,,~,~, - ,,
_DisplayMsg||~|~| - || ----> OK -
------- Processing DiskDisplayName||~|~| ||
Complex Format:DiskDisplayName,,~,~, ,,
DiskDisplayName||~|~| || ----> C:
------- Processing _DriveSizeGB|GB|Total||||
Complex Format:_DriveSizeGB,GB,Total,,,,
_DriveSizeGB|GB|Total|||| ----> Total=59.66GB,
------- Processing _UsedGB|GB|Used|| ||
Complex Format:_UsedGB,GB,Used,, ,,
_UsedGB|GB|Used|| || ----> Used=16.10GB
------- Processing _Used%|%|~|~||(|)
Complex Format:_Used%,%,~,~,,(,)
_Used%|%|~|~||(|) ----> (27.0%),
------- Processing _FreeGB|GB|Free|| ||
Complex Format:_FreeGB,GB,Free,, ,,
_FreeGB|GB|Free|| || ----> Free=43.55GB
------- Processing _Free%|%|~|~||(|)
Complex Format:_Free%,%,~,~,,(,)
_Free%|%|~|~||(|) ----> (73.0%),
---------- Building Up Performance Data
------- Processing _UsedGB|GB|{DiskDisplayName} Space
Complex Format:_UsedGB,GB,{DiskDisplayName} Space
_UsedGB|GB|{DiskDisplayName} Space (Field=_UsedGB) ----> 'C: Space'=16.10GB;;;
------- Processing _Used%|%|{DiskDisplayName} Utilisation
Complex Format:_Used%,%,{DiskDisplayName} Utilisation
_Used%|%|{DiskDisplayName} Utilisation (Field=_Used%) ----> 'C: Utilisation'=27.0%;;;
---------- Done
OUT:OK - C: Total=59.66GB, Used=16.10GB (27.0%), Free=43.55GB (73.0%)|'C: Space'=16.10GB; 'C: Utilisation'=27.0%;

ROW AFTER: $VAR1 = {
          '_submode' => '',
          'VolumeName' => 'System',
          '_QuerySum_Size' => '64055406592',
          '_TestResult' => 0,
          '_arg5' => '',
          '_UsedSpace' => '17292345344',
          '_ChecksOK' => 1,
          '_ColSum_Size' => '724400328704',
          '_nodatamode' => '',
          '_Free%' => '73.0',
          'Size' => '64055406592',
          '_mode' => 'checkdrivesize',
          'FreeSpace' => '46763061248',
          '_DriveSizeGB' => '59.66',
          '_ItemCount' => 4,
          '_arg1' => 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:',
          '_arg2' => '',
          '_bytefactor' => 1024,
          '_UsedGB' => '16.10',
          '_nodataexit' => '',
          '_nodatastring' => 'WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
',
          '_QuerySum_FreeSpace' => '46763061248',
          '_host' => 'ws-fs09-sd',
          '_savedbytefactor' => '',
          '_arg3' => '',
          '_Used%' => '27.0',
          '_DisplayMsg' => 'OK',
          '_ColSum_FreeSpace' => '237185888256',
          '_truncate_output' => 8192,
          'DiskDisplayName' => 'C:',
          '_timeout' => '',
          '_FreeGB' => '43.55',
          'DeviceID' => 'C:',
          '_StatusType' => 'OK',
          '_delay' => '',
          '_arg4' => undef,
          '_Triggers' => ''
        };
ROW BEFORE: $VAR1 = {
          'DeviceID' => 'D:',
          'Size' => '75161927680',
          '_QuerySum_Size' => '75161927680',
          'VolumeName' => 'Data1',
          'FreeSpace' => '108454801408',
          '_QuerySum_FreeSpace' => '108454801408'
        };
Testing TEST VALUES $VAR1 = {
          '_Used%' => '-44.3',
          '_QuerySum_Size' => '75161927680',
          'VolumeName' => 'Data1',
          '_QuerySum_FreeSpace' => '108454801408',
          '_UsedSpace' => '-33292873728',
          '_FreeGB' => '101.01',
          'DeviceID' => 'D:',
          '_Free%' => '144.3',
          'Size' => '75161927680',
          'FreeSpace' => '108454801408',
          '_DriveSizeGB' => '70.00',
          '_UsedGB' => '-31.01'
        };
WARNING SPECS: $VAR1 = [
          '_FreeGB=10:'
        ];
CRITICAL SPECS: $VAR1 = [
          '_FreeGB=5:'
        ];
------------ Critical Check ------------
Testing SPEC: _FreeGB=5:
SPEC=_FreeGB,,5,,,
Range Spec - FIELD=_FreeGB, AT= MIN=5 MINMULTIPLIER= MAX= MAXMULTIPLIER=
Testing MIN: '5' for Field _FreeGB which has value: 101.01
TEST2 101.01 < 5
Test of <5 (5) vs 101.01 yields 0
Test Result = 0, Perf Spec=5, Trigger Display=, Field Tested=_FreeGB
------------ Warning Check ------------
Testing SPEC: _FreeGB=10:
SPEC=_FreeGB,,10,,,
Range Spec - FIELD=_FreeGB, AT= MIN=10 MINMULTIPLIER= MAX= MAXMULTIPLIER=
Testing MIN: '10' for Field _FreeGB which has value: 101.01
TEST2 101.01 < 10
Test of <10 (10) vs 101.01 yields 0
Test Result = 0, Perf Spec=10, Trigger Display=, Field Tested=_FreeGB
------------ End Check ------------
Test Results:
Warn Perf Specs=$VAR1 = {
          '_FreeGB' => '10',
          '_Free%' => '',
          '_Used%' => '',
          '_UsedGB' => ''
        };
Warn Results=$VAR1 = [
          ''
        ];
Critical Perf Spec=$VAR1 = {
          '_FreeGB' => '5',
          '_Free%' => '',
          '_Used%' => '',
          '_UsedGB' => ''
        };
Critical Results=$VAR1 = [
          ''
        ];
Data Passed back from check: $VAR1 = {
          '_Used%' => '-44.3',
          '_DisplayMsg' => 'OK',
          '_QuerySum_Size' => '75161927680',
          'VolumeName' => 'Data1',
          '_TestResult' => 0,
          '_QuerySum_FreeSpace' => '108454801408',
          '_UsedSpace' => '-33292873728',
          '_StatusType' => 'OK',
          '_FreeGB' => '101.01',
          'DeviceID' => 'D:',
          '_Free%' => '144.3',
          'Size' => '75161927680',
          'FreeSpace' => '108454801408',
          '_DriveSizeGB' => '70.00',
          '_UsedGB' => '-31.01',
          '_Triggers' => ''
        };
---------- Building Up Display
Incoming Data $VAR1 = {
          '_submode' => '',
          '_QuerySum_Size' => '75161927680',
          'VolumeName' => 'Data1',
          '_TestResult' => 0,
          '_arg5' => '',
          '_UsedSpace' => '-33292873728',
          '_nodatamode' => '',
          '_Free%' => '144.3',
          'Size' => '75161927680',
          '_mode' => 'checkdrivesize',
          'FreeSpace' => '108454801408',
          '_DriveSizeGB' => '70.00',
          '_arg1' => 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:',
          '_arg2' => '',
          '_bytefactor' => 1024,
          '_UsedGB' => '-31.01',
          '_nodataexit' => '',
          '_nodatastring' => 'WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
',
          '_QuerySum_FreeSpace' => '108454801408',
          '_host' => 'ws-fs09-sd',
          '_savedbytefactor' => '',
          '_arg3' => '',
          '_Used%' => '-44.3',
          '_DisplayMsg' => 'OK',
          '_truncate_output' => 8192,
          'DiskDisplayName' => 'D:',
          '_timeout' => '',
          '_StatusType' => 'OK',
          '_FreeGB' => '101.01',
          'DeviceID' => 'D:',
          '_delay' => '',
          '_arg4' => undef,
          '_Triggers' => ''
        };
------- Processing _DisplayMsg||~|~| - ||
Complex Format:_DisplayMsg,,~,~, - ,,
_DisplayMsg||~|~| - || ----> OK -
------- Processing DiskDisplayName||~|~| ||
Complex Format:DiskDisplayName,,~,~, ,,
DiskDisplayName||~|~| || ----> D:
------- Processing _DriveSizeGB|GB|Total||||
Complex Format:_DriveSizeGB,GB,Total,,,,
_DriveSizeGB|GB|Total|||| ----> Total=70.00GB,
------- Processing _UsedGB|GB|Used|| ||
Complex Format:_UsedGB,GB,Used,, ,,
_UsedGB|GB|Used|| || ----> Used=-31.01GB
------- Processing _Used%|%|~|~||(|)
Complex Format:_Used%,%,~,~,,(,)
_Used%|%|~|~||(|) ----> (-44.3%),
------- Processing _FreeGB|GB|Free|| ||
Complex Format:_FreeGB,GB,Free,, ,,
_FreeGB|GB|Free|| || ----> Free=101.01GB
------- Processing _Free%|%|~|~||(|)
Complex Format:_Free%,%,~,~,,(,)
_Free%|%|~|~||(|) ----> (144.3%),
---------- Building Up Performance Data
------- Processing _UsedGB|GB|{DiskDisplayName} Space
Complex Format:_UsedGB,GB,{DiskDisplayName} Space
_UsedGB|GB|{DiskDisplayName} Space (Field=_UsedGB) ----> 'D: Space'=-31.01GB;;;
------- Processing _Used%|%|{DiskDisplayName} Utilisation
Complex Format:_Used%,%,{DiskDisplayName} Utilisation
_Used%|%|{DiskDisplayName} Utilisation (Field=_Used%) ----> 'D: Utilisation'=-44.3%;;;
---------- Done
OUT:OK - D: Total=70.00GB, Used=-31.01GB (-44.3%), Free=101.01GB (144.3%)|'D: Space'=-31.01GB; 'D: Utilisation'=-44.3%;

ROW AFTER: $VAR1 = {
          '_submode' => '',
          '_QuerySum_Size' => '75161927680',
          'VolumeName' => 'Data1',
          '_TestResult' => 0,
          '_arg5' => '',
          '_UsedSpace' => '-33292873728',
          '_nodatamode' => '',
          '_Free%' => '144.3',
          'Size' => '75161927680',
          '_mode' => 'checkdrivesize',
          'FreeSpace' => '108454801408',
          '_DriveSizeGB' => '70.00',
          '_arg1' => 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:',
          '_arg2' => '',
          '_bytefactor' => 1024,
          '_UsedGB' => '-31.01',
          '_nodataexit' => '',
          '_nodatastring' => 'WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
',
          '_QuerySum_FreeSpace' => '108454801408',
          '_host' => 'ws-fs09-sd',
          '_savedbytefactor' => '',
          '_arg3' => '',
          '_Used%' => '-44.3',
          '_DisplayMsg' => 'OK',
          '_truncate_output' => 8192,
          'DiskDisplayName' => 'D:',
          '_timeout' => '',
          '_StatusType' => 'OK',
          '_FreeGB' => '101.01',
          'DeviceID' => 'D:',
          '_delay' => '',
          '_arg4' => undef,
          '_Triggers' => ''
        };
ROW BEFORE: $VAR1 = {
          'DeviceID' => 'E:',
          'Size' => '558342598656',
          '_QuerySum_Size' => '558342598656',
          'VolumeName' => 'Data2',
          'FreeSpace' => '58428981248',
          '_QuerySum_FreeSpace' => '58428981248'
        };
Testing TEST VALUES $VAR1 = {
          '_Used%' => '89.5',
          '_QuerySum_Size' => '558342598656',
          'VolumeName' => 'Data2',
          '_QuerySum_FreeSpace' => '58428981248',
          '_UsedSpace' => '499913617408',
          '_FreeGB' => '54.42',
          'DeviceID' => 'E:',
          '_Free%' => '10.5',
          'Size' => '558342598656',
          'FreeSpace' => '58428981248',
          '_DriveSizeGB' => '520.00',
          '_UsedGB' => '465.58'
        };
WARNING SPECS: $VAR1 = [
          '_FreeGB=10:'
        ];
CRITICAL SPECS: $VAR1 = [
          '_FreeGB=5:'
        ];
------------ Critical Check ------------
Testing SPEC: _FreeGB=5:
SPEC=_FreeGB,,5,,,
Range Spec - FIELD=_FreeGB, AT= MIN=5 MINMULTIPLIER= MAX= MAXMULTIPLIER=
Testing MIN: '5' for Field _FreeGB which has value: 54.42
TEST2 54.42 < 5
Test of <5 (5) vs 54.42 yields 0
Test Result = 0, Perf Spec=5, Trigger Display=, Field Tested=_FreeGB
------------ Warning Check ------------
Testing SPEC: _FreeGB=10:
SPEC=_FreeGB,,10,,,
Range Spec - FIELD=_FreeGB, AT= MIN=10 MINMULTIPLIER= MAX= MAXMULTIPLIER=
Testing MIN: '10' for Field _FreeGB which has value: 54.42
TEST2 54.42 < 10
Test of <10 (10) vs 54.42 yields 0
Test Result = 0, Perf Spec=10, Trigger Display=, Field Tested=_FreeGB
------------ End Check ------------
Test Results:
Warn Perf Specs=$VAR1 = {
          '_FreeGB' => '10',
          '_Free%' => '',
          '_Used%' => '',
          '_UsedGB' => ''
        };
Warn Results=$VAR1 = [
          ''
        ];
Critical Perf Spec=$VAR1 = {
          '_FreeGB' => '5',
          '_Free%' => '',
          '_Used%' => '',
          '_UsedGB' => ''
        };
Critical Results=$VAR1 = [
          ''
        ];
Data Passed back from check: $VAR1 = {
          '_Used%' => '89.5',
          '_DisplayMsg' => 'OK',
          '_QuerySum_Size' => '558342598656',
          'VolumeName' => 'Data2',
          '_TestResult' => 0,
          '_QuerySum_FreeSpace' => '58428981248',
          '_UsedSpace' => '499913617408',
          '_StatusType' => 'OK',
          '_FreeGB' => '54.42',
          'DeviceID' => 'E:',
          '_Free%' => '10.5',
          'Size' => '558342598656',
          'FreeSpace' => '58428981248',
          '_DriveSizeGB' => '520.00',
          '_UsedGB' => '465.58',
          '_Triggers' => ''
        };
---------- Building Up Display
Incoming Data $VAR1 = {
          '_submode' => '',
          '_QuerySum_Size' => '558342598656',
          'VolumeName' => 'Data2',
          '_TestResult' => 0,
          '_arg5' => '',
          '_UsedSpace' => '499913617408',
          '_nodatamode' => '',
          '_Free%' => '10.5',
          'Size' => '558342598656',
          '_mode' => 'checkdrivesize',
          'FreeSpace' => '58428981248',
          '_DriveSizeGB' => '520.00',
          '_arg1' => 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:',
          '_arg2' => '',
          '_bytefactor' => 1024,
          '_UsedGB' => '465.58',
          '_nodataexit' => '',
          '_nodatastring' => 'WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
',
          '_QuerySum_FreeSpace' => '58428981248',
          '_host' => 'ws-fs09-sd',
          '_savedbytefactor' => '',
          '_arg3' => '',
          '_Used%' => '89.5',
          '_DisplayMsg' => 'OK',
          '_truncate_output' => 8192,
          'DiskDisplayName' => 'E:',
          '_timeout' => '',
          '_StatusType' => 'OK',
          '_FreeGB' => '54.42',
          'DeviceID' => 'E:',
          '_delay' => '',
          '_arg4' => undef,
          '_Triggers' => ''
        };
------- Processing _DisplayMsg||~|~| - ||
Complex Format:_DisplayMsg,,~,~, - ,,
_DisplayMsg||~|~| - || ----> OK -
------- Processing DiskDisplayName||~|~| ||
Complex Format:DiskDisplayName,,~,~, ,,
DiskDisplayName||~|~| || ----> E:
------- Processing _DriveSizeGB|GB|Total||||
Complex Format:_DriveSizeGB,GB,Total,,,,
_DriveSizeGB|GB|Total|||| ----> Total=520.00GB,
------- Processing _UsedGB|GB|Used|| ||
Complex Format:_UsedGB,GB,Used,, ,,
_UsedGB|GB|Used|| || ----> Used=465.58GB
------- Processing _Used%|%|~|~||(|)
Complex Format:_Used%,%,~,~,,(,)
_Used%|%|~|~||(|) ----> (89.5%),
------- Processing _FreeGB|GB|Free|| ||
Complex Format:_FreeGB,GB,Free,, ,,
_FreeGB|GB|Free|| || ----> Free=54.42GB
------- Processing _Free%|%|~|~||(|)
Complex Format:_Free%,%,~,~,,(,)
_Free%|%|~|~||(|) ----> (10.5%),
---------- Building Up Performance Data
------- Processing _UsedGB|GB|{DiskDisplayName} Space
Complex Format:_UsedGB,GB,{DiskDisplayName} Space
_UsedGB|GB|{DiskDisplayName} Space (Field=_UsedGB) ----> 'E: Space'=465.58GB;;;
------- Processing _Used%|%|{DiskDisplayName} Utilisation
Complex Format:_Used%,%,{DiskDisplayName} Utilisation
_Used%|%|{DiskDisplayName} Utilisation (Field=_Used%) ----> 'E: Utilisation'=89.5%;;;
---------- Done
OUT:OK - E: Total=520.00GB, Used=465.58GB (89.5%), Free=54.42GB (10.5%)|'E: Space'=465.58GB; 'E: Utilisation'=89.5%;

ROW AFTER: $VAR1 = {
          '_submode' => '',
          '_QuerySum_Size' => '558342598656',
          'VolumeName' => 'Data2',
          '_TestResult' => 0,
          '_arg5' => '',
          '_UsedSpace' => '499913617408',
          '_nodatamode' => '',
          '_Free%' => '10.5',
          'Size' => '558342598656',
          '_mode' => 'checkdrivesize',
          'FreeSpace' => '58428981248',
          '_DriveSizeGB' => '520.00',
          '_arg1' => 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:',
          '_arg2' => '',
          '_bytefactor' => 1024,
          '_UsedGB' => '465.58',
          '_nodataexit' => '',
          '_nodatastring' => 'WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
',
          '_QuerySum_FreeSpace' => '58428981248',
          '_host' => 'ws-fs09-sd',
          '_savedbytefactor' => '',
          '_arg3' => '',
          '_Used%' => '89.5',
          '_DisplayMsg' => 'OK',
          '_truncate_output' => 8192,
          'DiskDisplayName' => 'E:',
          '_timeout' => '',
          '_StatusType' => 'OK',
          '_FreeGB' => '54.42',
          'DeviceID' => 'E:',
          '_delay' => '',
          '_arg4' => undef,
          '_Triggers' => ''
        };
ROW BEFORE: $VAR1 = {
          'DeviceID' => 'F:',
          'Size' => '26840395776',
          '_QuerySum_Size' => '26840395776',
          'VolumeName' => 'ClichesWindows',
          'FreeSpace' => '23539044352',
          '_QuerySum_FreeSpace' => '23539044352'
        };
Testing TEST VALUES $VAR1 = {
          '_Used%' => '12.3',
          '_QuerySum_Size' => '26840395776',
          'VolumeName' => 'ClichesWindows',
          '_QuerySum_FreeSpace' => '23539044352',
          '_UsedSpace' => 3301351424,
          '_FreeGB' => '21.92',
          'DeviceID' => 'F:',
          '_Free%' => '87.7',
          'Size' => '26840395776',
          'FreeSpace' => '23539044352',
          '_DriveSizeGB' => '25.00',
          '_UsedGB' => '3.07'
        };
WARNING SPECS: $VAR1 = [
          '_FreeGB=10:'
        ];
CRITICAL SPECS: $VAR1 = [
          '_FreeGB=5:'
        ];
------------ Critical Check ------------
Testing SPEC: _FreeGB=5:
SPEC=_FreeGB,,5,,,
Range Spec - FIELD=_FreeGB, AT= MIN=5 MINMULTIPLIER= MAX= MAXMULTIPLIER=
Testing MIN: '5' for Field _FreeGB which has value: 21.92
TEST2 21.92 < 5
Test of <5 (5) vs 21.92 yields 0
Test Result = 0, Perf Spec=5, Trigger Display=, Field Tested=_FreeGB
------------ Warning Check ------------
Testing SPEC: _FreeGB=10:
SPEC=_FreeGB,,10,,,
Range Spec - FIELD=_FreeGB, AT= MIN=10 MINMULTIPLIER= MAX= MAXMULTIPLIER=
Testing MIN: '10' for Field _FreeGB which has value: 21.92
TEST2 21.92 < 10
Test of <10 (10) vs 21.92 yields 0
Test Result = 0, Perf Spec=10, Trigger Display=, Field Tested=_FreeGB
------------ End Check ------------
Test Results:
Warn Perf Specs=$VAR1 = {
          '_FreeGB' => '10',
          '_Free%' => '',
          '_Used%' => '',
          '_UsedGB' => ''
        };
Warn Results=$VAR1 = [
          ''
        ];
Critical Perf Spec=$VAR1 = {
          '_FreeGB' => '5',
          '_Free%' => '',
          '_Used%' => '',
          '_UsedGB' => ''
        };
Critical Results=$VAR1 = [
          ''
        ];
Data Passed back from check: $VAR1 = {
          '_Used%' => '12.3',
          '_DisplayMsg' => 'OK',
          '_QuerySum_Size' => '26840395776',
          'VolumeName' => 'ClichesWindows',
          '_TestResult' => 0,
          '_QuerySum_FreeSpace' => '23539044352',
          '_UsedSpace' => 3301351424,
          '_StatusType' => 'OK',
          '_FreeGB' => '21.92',
          'DeviceID' => 'F:',
          '_Free%' => '87.7',
          'Size' => '26840395776',
          'FreeSpace' => '23539044352',
          '_DriveSizeGB' => '25.00',
          '_UsedGB' => '3.07',
          '_Triggers' => ''
        };
---------- Building Up Display
Incoming Data $VAR1 = {
          '_submode' => '',
          '_QuerySum_Size' => '26840395776',
          'VolumeName' => 'ClichesWindows',
          '_TestResult' => 0,
          '_arg5' => '',
          '_UsedSpace' => 3301351424,
          '_nodatamode' => '',
          '_Free%' => '87.7',
          'Size' => '26840395776',
          '_mode' => 'checkdrivesize',
          'FreeSpace' => '23539044352',
          '_DriveSizeGB' => '25.00',
          '_arg1' => 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:',
          '_arg2' => '',
          '_bytefactor' => 1024,
          '_UsedGB' => '3.07',
          '_nodataexit' => '',
          '_nodatastring' => 'WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
',
          '_QuerySum_FreeSpace' => '23539044352',
          '_host' => 'ws-fs09-sd',
          '_savedbytefactor' => '',
          '_arg3' => '',
          '_Used%' => '12.3',
          '_DisplayMsg' => 'OK',
          '_truncate_output' => 8192,
          'DiskDisplayName' => 'F:',
          '_timeout' => '',
          '_StatusType' => 'OK',
          '_FreeGB' => '21.92',
          'DeviceID' => 'F:',
          '_delay' => '',
          '_arg4' => undef,
          '_Triggers' => ''
        };
------- Processing _DisplayMsg||~|~| - ||
Complex Format:_DisplayMsg,,~,~, - ,,
_DisplayMsg||~|~| - || ----> OK -
------- Processing DiskDisplayName||~|~| ||
Complex Format:DiskDisplayName,,~,~, ,,
DiskDisplayName||~|~| || ----> F:
------- Processing _DriveSizeGB|GB|Total||||
Complex Format:_DriveSizeGB,GB,Total,,,,
_DriveSizeGB|GB|Total|||| ----> Total=25.00GB,
------- Processing _UsedGB|GB|Used|| ||
Complex Format:_UsedGB,GB,Used,, ,,
_UsedGB|GB|Used|| || ----> Used=3.07GB
------- Processing _Used%|%|~|~||(|)
Complex Format:_Used%,%,~,~,,(,)
_Used%|%|~|~||(|) ----> (12.3%),
------- Processing _FreeGB|GB|Free|| ||
Complex Format:_FreeGB,GB,Free,, ,,
_FreeGB|GB|Free|| || ----> Free=21.92GB
------- Processing _Free%|%|~|~||(|)
Complex Format:_Free%,%,~,~,,(,)
_Free%|%|~|~||(|) ----> (87.7%),
---------- Building Up Performance Data
------- Processing _UsedGB|GB|{DiskDisplayName} Space
Complex Format:_UsedGB,GB,{DiskDisplayName} Space
_UsedGB|GB|{DiskDisplayName} Space (Field=_UsedGB) ----> 'F: Space'=3.07GB;;;
------- Processing _Used%|%|{DiskDisplayName} Utilisation
Complex Format:_Used%,%,{DiskDisplayName} Utilisation
_Used%|%|{DiskDisplayName} Utilisation (Field=_Used%) ----> 'F: Utilisation'=12.3%;;;
---------- Done
OUT:OK - F: Total=25.00GB, Used=3.07GB (12.3%), Free=21.92GB (87.7%)|'F: Space'=3.07GB; 'F: Utilisation'=12.3%;

ROW AFTER: $VAR1 = {
          '_submode' => '',
          '_QuerySum_Size' => '26840395776',
          'VolumeName' => 'ClichesWindows',
          '_TestResult' => 0,
          '_arg5' => '',
          '_UsedSpace' => 3301351424,
          '_nodatamode' => '',
          '_Free%' => '87.7',
          'Size' => '26840395776',
          '_mode' => 'checkdrivesize',
          'FreeSpace' => '23539044352',
          '_DriveSizeGB' => '25.00',
          '_arg1' => 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:',
          '_arg2' => '',
          '_bytefactor' => 1024,
          '_UsedGB' => '3.07',
          '_nodataexit' => '',
          '_nodatastring' => 'WMI Query returned no data. The item you were looking for may NOT exist or the software that creates the WMI Class may not be running, or all data has been excluded.
',
          '_QuerySum_FreeSpace' => '23539044352',
          '_host' => 'ws-fs09-sd',
          '_savedbytefactor' => '',
          '_arg3' => '',
          '_Used%' => '12.3',
          '_DisplayMsg' => 'OK',
          '_truncate_output' => 8192,
          'DiskDisplayName' => 'F:',
          '_timeout' => '',
          '_StatusType' => 'OK',
          '_FreeGB' => '21.92',
          'DeviceID' => 'F:',
          '_delay' => '',
          '_arg4' => undef,
          '_Triggers' => ''
        };
OUT:OK - C: Total=59.66GB, Used=16.10GB (27.0%), Free=43.55GB (73.0%)     OK - D: Total=70.00GB, Used=-31.01GB (-44.3%), Free=101.01GB (144.3%)     OK - E: Total=520.00GB, Used=465.58GB (89.5%), Free=54.42GB (10.5%)     OK - F: Total=25.00GB, Used=3.07GB (12.3%), Free=21.92GB (87.7%)     |'C: Space'=16.10GB; 'C: Utilisation'=27.0%; 'D: Space'=-31.01GB; 'D: Utilisation'=-44.3%; 'E: Space'=465.58GB; 'E: Utilisation'=89.5%; 'F: Space'=3.07GB; 'F: Utilisation'=12.3%;

OK - C: Total=59.66GB, Used=16.10GB (27.0%), Free=43.55GB (73.0%)     OK - D: Total=70.00GB, Used=-31.01GB (-44.3%), Free=101.01GB (144.3%)     OK - E: Total=520.00GB, Used=465.58GB (89.5%), Free=54.42GB (10.5%)     OK - F: Total=25.00GB, Used=3.07GB (12.3%), Free=21.92GB (87.7%)     |'C: Space'=16.10GB; 'C: Utilisation'=27.0%; 'D: Space'=-31.01GB; 'D: Utilisation'=-44.3%; 'E: Space'=465.58GB; 'E: Utilisation'=89.5%; 'F: Space'=3.07GB; 'F: Utilisation'=12.3%;
And for

Code: Select all

[[email protected] ~]$ /usr/local/nagios/libexec/check_wmi_plus.pl -H xxxxx -u xxxxxx -p xxxxxx -m checkdrivesize -a 'C:|D:|E:|F:|G:|Q:|H:|I:|L:|M:|N:|R:' -w _FreeGB=10: -c _FreeGB=5:  --extrawmicarg "--debuglevel=4"
OK - C: Total=59.66GB, Used=16.10GB (27.0%), Free=43.55GB (73.0%)     OK - D: Total=70.00GB, Used=-31.01GB (-44.3%), Free=101.01GB (144.3%)     OK - E: Total=520.00GB, Used=465.58GB (89.5%), Free=54.42GB (10.5%)     OK - F: Total=25.00GB, Used=3.07GB (12.3%), Free=21.92GB (87.7%)     |'C: Space'=16.10GB; 'C: Utilisation'=27.0%; 'D: Space'=-31.01GB; 'D: Utilisation'=-44.3%; 'E: Space'=465.58GB; 'E: Utilisation'=89.5%; 'F: Space'=3.07GB; 'F: Utilisation'=12.3%;
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Check drives size displays too much information

Post by cdienger »

I don't believe this is necessarily a problem with the script or XI, the remote machine appears to be sending back data saying it has way more free space available. Can you confirm what it shows for free space when you run "wmic logicaldisk get freespace,deviceid,size" on the Windows machine's command line?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Check drives size displays too much information

Post by Frédéric GRANAT »

Hi,
Here's he output :

Code: Select all

C:\Windows\System32>wmic logicaldisk get freespace,deviceid,size
DeviceID  FreeSpace     Size
A:
C:        46765965312   64055406592
D:        108454801408  75161927680
E:        58427580416   558342598656
F:        23566716928   26840395776
G:
and the NAgios check at the same time :

Code: Select all

OK - C: Total=59.66GB, Used=16.10GB (27.0%), Free=43.55GB (73.0%) OK - D: Total=70.00GB, Used=-31.01GB (-44.3%), Free=101.01GB (144.3%) OK - E: Total=520.00GB, Used=465.58GB (89.5%), Free=54.41GB (10.5%) OK - F: Total=25.00GB, Used=3.05GB (12.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check drives size displays too much information

Post by scottwilkerson »

cdienger wrote:I don't believe this is necessarily a problem with the script or XI, the remote machine appears to be sending back data saying it has way more free space available. Can you confirm what it shows for free space when you run "wmic logicaldisk get freespace,deviceid,size" on the Windows machine's command line?
@cdienger is correct here, wmic on your Windows server is reporting more free space than the size of the device which is why the amount used is negative 75161927680 - 108454801408 = -31.01GB

Code: Select all

DeviceID  FreeSpace     Size
D:        108454801408  75161927680
Nagios plugins can only work with the data they are given, you are going to have to figure out why this server is reporting more space free than it has as a total
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: Check drives size displays too much information

Post by Frédéric GRANAT »

Hi,
You are going to have to figure out why this server is reporting more space free than it has as a total
... for a particular drive.

I'm going to go further into that question with the system administrator

Ok thanks for your help.

You can close the post.

Frederic
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check drives size displays too much information

Post by scottwilkerson »

Frédéric GRANAT wrote:Hi,
You are going to have to figure out why this server is reporting more space free than it has as a total
... for a particular drive.

I'm going to go further into that question with the system administrator

Ok thanks for your help.

You can close the post.

Frederic
Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked