Page 1 of 1
check_license v1.2 fails if expiry exceeds 999 days
Posted: Sun Feb 09, 2020 4:52 pm
One of our customer renewed their XI license for 3 years and since then check_license.sh (version 1.2) plugin fails with
Code: Select all
UNKNOWN: The check failed for unknown reason
.
Most probably a comma sign in the output "
Current (Expires in 1,110 days on 2023-02-23 ..." causes the error.
Are you able to reproduce this bug?
Regards, Jørgen on behalf of
[email protected]
Re: check_license v1.2 fails if expiry exceeds 999 days
Posted: Mon Feb 10, 2020 8:21 am
by scottwilkerson
Can you provide us with the check_license.sh you are using as this is not distributed with XI.
Thanks
Re: check_license v1.2 fails if expiry exceeds 999 days
Posted: Tue Feb 11, 2020 9:57 am
Re: check_license v1.2 fails if expiry exceeds 999 days
Posted: Tue Feb 11, 2020 10:09 am
by scottwilkerson
Sorry about that, too many thing to keep track of I guess.
I modified the plugin to accommodate the comma and the new plugin is available at the same location
https://assets.nagios.com/downloads/nag ... license.sh
Re: check_license v1.2 fails if expiry exceeds 999 days
Posted: Tue Feb 11, 2020 5:15 pm
Thank you Scott. Could you perhaps bump the version number and modification date?
Regards, Jørgen van der Meulen
Re: check_license v1.2 fails if expiry exceeds 999 days
Posted: Tue Feb 11, 2020 5:21 pm
by scottwilkerson
[email protected] wrote:Thank you Scott. Could you perhaps bump the version number and modification date?
Regards, Jørgen van der Meulen
Yes, done.
Sorry about that
Re: check_license v1.2 fails if expiry exceeds 999 days
Posted: Tue Feb 11, 2020 5:39 pm
Thank you. Issue may be marked as resolved.
Re: check_license v1.2 fails if expiry exceeds 999 days
Posted: Tue Feb 11, 2020 5:58 pm
by scottwilkerson