Page 1 of 1

check_license.sh script small bug

Posted: Thu Jan 11, 2018 12:32 pm
by askewdread
Hey,

just came across this small bug in the check license script that is available at http://assets.nagios.com/downloads/nagi ... license.sh

Line 197 is

Code: Select all

elif [[ $days -lt $crit ]]; then
which currently causes an unknown error is $days = $crit
changing the above code to

Code: Select all

elif [[ $days -le $crit ]]; then
fixes the error and makes it display properly

it only causes an error on the one day that they match, but thought id let you know

Re: check_license.sh script small bug

Posted: Thu Jan 11, 2018 1:22 pm
by lmiltchev
I updated the script. Thanks for reporting this bug!