Skip to content

Windows FlexLM_Exporter error: couldn't get lmstat version information: error while calling #196

@esimeon-hc

Description

@esimeon-hc

What did you do?

When you execute the FlexLM Exporter binary, as described below, you get this error message:
couldn't get lmstat version information: error while calling '<WINDOWS_INSTALL_PATH>'

Reproduce
content of lmutil directory:
[c:|d:|e:]\flexlm_exporter\lmutil
- lmutil.exe
- cpu_id
- ptc_d
- lmtools
- etc

Start Flex_LM
[c:|d:|e:]\flexlm_exporter\bin\flexlm_exporter.exe --path.config=[c:|d:|e:]\flexlm_exporter\config\licenses.yaml" --**path.lmutil="[c:|d:|e:]\flexlm_exporter\lmutil"** --log.level=debug

Error Message:
couldn't get lmstat version information: error while calling

Workaround
Create an empty lmutil file under "[c:|d:|e:]\flexlm_exporter\lmutil*lmutil*

Solution:
For Windows, add check if "lmutil.exe" exist, not just the lmutil (Unix file/directory)

What did you expect to see?

time=2025-11-06T17:09:41.252Z level=INFO source=tls_config.go:347 msg="Listening on" address=[::]:9319
time=2025-11-06T17:09:41.255Z level=INFO source=tls_config.go:350 msg="TLS is disabled." http2=false address=[::]:9319
time=2025-11-06T17:09:43.698Z level=DEBUG source=flexlm_exporter.go:91 msg="collect query:" filters=[]
time=2025-11-06T17:09:44.018Z level=DEBUG source=lmstat_feature_exp.go:108 msg=debug collector=lmstat_feature_exp matches="[10119 43.0 40 abc_d 10-mar-2026 10119 43.0 40 abc_d 10-mar-2026]"
time=2025-11-06T17:09:44.022Z level=DEBUG source=lmstat_feature_exp.go:108 msg=debug collector=lmstat_feature_exp matches="[FEATURE1 19.0 1 abc_d 10-mar-2026 FEATURE1 19.0 1 abc_d 10-mar-2026]"
time=2025-11-06T17:09:44.022Z level=DEBUG source=lmstat_feature_exp.go:108 msg=debug collector=lmstat_feature_exp matches="[266 19.0 1 abc_d 10-mar-2026 266 19.0 1 abc_d 10-mar-2026]"

What did you see instead? Under which circumstances?

time=2025-11-06T17:09:28.936Z level=INFO source=tls_config.go:350 msg="TLS is disabled." http2=false address=[::]:9319
time=2025-11-06T17:09:32.033Z level=DEBUG source=flexlm_exporter.go:91 msg="collect query:" filters=[]
time=2025-11-06T17:09:32.048Z level=DEBUG source=collector.go:187 msg="collector succeeded" name=lmstat_feature_exp duration_seconds=0
time=2025-11-06T17:09:32.051Z level=ERROR source=collector.go:182 msg="collector failed" name=lmstat duration_seconds=0.0006767 err="couldn't get lmstat version information: error while calling 'E:\Watchtower\flexlm_exporter\lmutil lmstat -v': exec: "E:\\flexlm_exporter\\lmutil": executable file not found in %PATH%:'unknown error'"

System information

No response

FlexLM Server information


FlexLM Exporter version


FlexLM Exporter configuration file

Logs


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions