Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lic expiration not reported Windows #53

Closed
avelure opened this issue Dec 13, 2021 · 2 comments
Closed

Lic expiration not reported Windows #53

avelure opened this issue Dec 13, 2021 · 2 comments
Assignees
Labels

Comments

@avelure
Copy link

avelure commented Dec 13, 2021

Host operating system:

Windows 10

flexlm_exporter version:

From source c861cf6 ( flexlm_exporter --version produces blank version output, running make before gives an error File not found - *~ make: *** [Makefile:58: clean] Error 2)

flexlm_exporter command line flags and relevant YAML configuration file information

flexlm_exporter.exe --path.lmutil="C:\flexlm\lmutil.exe" --log.level=debug --web.disable-exporter-metrics

Are you running flexlm_exporter in Docker?

No

What did you do that produced an error?

Starting it normally

What did you expect to see?

Expiration dates in prometheus

What did you see instead?

Nothing

It seems like my issue is the same as in #28. Checking the code, it seems like only the code in lmstat_feature_exp_linux.go got updated, while the code in lmstat_feature_exp_windows.go still only supports the old method.

lmstat -i output

lmutil - Copyright (c) 1989-2019 Flexera. All Rights Reserved.
Mon 12/13/2021 13:35

NOTE: lmstat -i does not give information from the server,
      but only reads the license file.  For this reason,
      lmstat -a is recommended instead.

Feature                         Version     #licenses    Vendor        Expires
_______                         _________   _________    ______        ________
ACTEL_SUMMIT                    9.1          2           actlmgrd      24-jan-2022
microsemimsim                   2022.11      2           mgcld         24-jan-2022
microsemimsim                   2022.12      1           mgcld         2-dec-2022
actelmsimvhdl                   2022.11      2           mgcld         24-jan-2022
actelmsimvhdl                   2022.12      1           mgcld         2-dec-2022

flexlm_exporter output :

flexlm_exporter.exe --path.lmutil="C:\flexlm\lmutil.exe" --log.level=debug --web.disable-exporter-metrics
level=info ts=2021-12-13T12:15:14.559Z caller=flexlm_exporter.go:201 msg="Starting flexlm_exporter" version="(version=, branch=, revision=)"
level=info ts=2021-12-13T12:15:14.560Z caller=flexlm_exporter.go:202 msg="Build context" build_context="(go=go1.17.5, user=, date=)"
level=info ts=2021-12-13T12:15:15.152Z caller=flexlm_exporter.go:118 msg="Enabled collectors"
level=info ts=2021-12-13T12:15:15.153Z caller=flexlm_exporter.go:129 collector=lmstat
level=info ts=2021-12-13T12:15:15.155Z caller=flexlm_exporter.go:129 collector=lmstat_feature_exp
level=info ts=2021-12-13T12:15:15.155Z caller=config.go:48 msg="Loading license config file:"
level=info ts=2021-12-13T12:15:15.156Z caller=config.go:49 -=licenses.yml
level=info ts=2021-12-13T12:15:15.160Z caller=flexlm_exporter.go:220 msg="Listening on" address=:9319
level=info ts=2021-12-13T12:15:15.162Z caller=tls_config.go:191 msg="TLS is disabled." http2=false
level=debug ts=2021-12-13T12:15:19.450Z caller=flexlm_exporter.go:83 msg="collect query:" filters="unsupported value type"
level=debug ts=2021-12-13T12:15:21.152Z caller=collector.go:177 OK:=lmstat_feature_exp collectorsucceededafter:=1.7012057
level=debug ts=2021-12-13T12:15:35.378Z caller=collector.go:177 OK:=lmstat collectorsucceededafter:=15.9270528
@mjtrangoni
Copy link
Owner

Hi @avelure,
thanks for reporting. I will be checking the windows cases, and let you know if I need more information.

@mjtrangoni
Copy link
Owner

As @SuperSonicFlea confirmed, this issue is now resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants