check_license v1.2 fails if expiry exceeds 999 days

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 68
Joined: Wed Dec 27, 2017 2:20 pm
Location: Nieuwegein, The Netherlands
Contact:

check_license v1.2 fails if expiry exceeds 999 days

Post by [email protected] »

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]
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_license v1.2 fails if expiry exceeds 999 days

Post by scottwilkerson »

Can you provide us with the check_license.sh you are using as this is not distributed with XI.

Thanks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 68
Joined: Wed Dec 27, 2017 2:20 pm
Location: Nieuwegein, The Netherlands
Contact:

Re: check_license v1.2 fails if expiry exceeds 999 days

Post by [email protected] »

scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_license v1.2 fails if expiry exceeds 999 days

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 68
Joined: Wed Dec 27, 2017 2:20 pm
Location: Nieuwegein, The Netherlands
Contact:

Re: check_license v1.2 fails if expiry exceeds 999 days

Post by [email protected] »

Thank you Scott. Could you perhaps bump the version number and modification date?

Regards, Jørgen van der Meulen
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_license v1.2 fails if expiry exceeds 999 days

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
[email protected]
Posts: 68
Joined: Wed Dec 27, 2017 2:20 pm
Location: Nieuwegein, The Netherlands
Contact:

Re: check_license v1.2 fails if expiry exceeds 999 days

Post by [email protected] »

Thank you. Issue may be marked as resolved.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_license v1.2 fails if expiry exceeds 999 days

Post by scottwilkerson »

[email protected] wrote:Thank you. Issue may be marked as resolved.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked