Re: check drive free space instead of percentage of free spa
Posted: Wed Apr 13, 2016 3:07 pm
I know it is an old thread, but I was trying to solve the same issue, and was not able to find a solution.
After going through check_wmi_plus.pl code and experimenting, I was able to get it right.
Get Warning and Critical when free space drops below certain number of GB instead of percentage.
in example mentioned
so part of the string will look something like
according to this
EXAMPLE RANGES
This table lists example WARN/CRIT criteria and when they will trigger an alert.
10 < 0 or > 10, (outside the range of {0 .. 10})
10: < 10, (outside {10 .. infinity})
~:10 > 10, (outside the range of {-infinity .. 10})
10:20 < 10 or > 20, (outside the range of {10 .. 20})
\@10:20 = 10 and = 20, (inside the range of {10 .. 20})
10 < 0 or > 10, (outside the range of {0 .. 10})
10G < 0 or > 10G, (outside the range of {0 .. 10G})
After going through check_wmi_plus.pl code and experimenting, I was able to get it right.
Get Warning and Critical when free space drops below certain number of GB instead of percentage.
in example mentioned
5G and 4G need to be appended with colonCommand view
$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -m checkdrivesize -a "$ARG3$" -w _FreeGB=$ARG4$ -c _FreeGB=$ARG5$ $ARG6$
ARG3=C|D|E|Q|H|I|L|M|N
ARG4=5G
ARG5=4G
Code: Select all
Command view
$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -m checkdrivesize -a "$ARG3$" -w _FreeGB=$ARG4$ -c _FreeGB=$ARG5$ $ARG6$
ARG3=C|D|E|Q|H|I|L|M|N
ARG4=5G:
ARG5=4G:Code: Select all
-w '_FreeGB=5:' -c '_FreeGB=4:'according to this
EXAMPLE RANGES
This table lists example WARN/CRIT criteria and when they will trigger an alert.
10 < 0 or > 10, (outside the range of {0 .. 10})
10: < 10, (outside {10 .. infinity})
~:10 > 10, (outside the range of {-infinity .. 10})
10:20 < 10 or > 20, (outside the range of {10 .. 20})
\@10:20 = 10 and = 20, (inside the range of {10 .. 20})
10 < 0 or > 10, (outside the range of {0 .. 10})
10G < 0 or > 10G, (outside the range of {0 .. 10G})