check_license.sh script small bug
Posted: Thu Jan 11, 2018 12:32 pm
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
which currently causes an unknown error is $days = $crit
changing the above code to 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
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 ]]; thenchanging the above code to
Code: Select all
elif [[ $days -le $crit ]]; thenit only causes an error on the one day that they match, but thought id let you know