check_license.sh script small bug

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
askewdread
Posts: 69
Joined: Wed Nov 16, 2016 4:54 pm

check_license.sh script small bug

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_license.sh script small bug

Post by lmiltchev »

I updated the script. Thanks for reporting this bug!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked