Icingadb version is not correct

Hello folks,

According to this post, I try to compile (works great) and enable icingadb module. I install icingadb-web too.

Unfortunately the result is not what I’m expect. The module is enabled, but is version is set to 0.0.0 instead of 1.1.1 (see screenshot if it works).

How can I have the correct version?
Btw, /usr/local/bin/icingadb --version give this output:

Icinga DB version: 1.1.1-gc20f066

Build information:
  Go version: go1.20.7 (freebsd, amd64)
  Git commit: c20f066bd87528960ec095c2e6fd88d014156b6c

System information:
  Platform: FreeBSD
  Platform version: 13.2-RELEASE-p2
  • Icinga Web 2 version [2.11.4]
  • Used modules and their versions (System - About)
doc 		2.11.4 	
icingadb 		0.0.0 	
schema 		0.0.0 	
setup 		2.11.4 	
x509 		1.2.1 	
  • Web browser used [Firefox 117.0]
  • Icinga 2 version used (icinga2 --version)
System information:
  Platform: FreeBSD
  Platform version: 13.2-RELEASE-p2
# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.7-1)

Copyright (c) 2012-2023 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl2.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
  Platform: FreeBSD
  Platform version: 13.2-RELEASE-p2
  Kernel: FreeBSD
  Kernel version: 13.1-RELEASE-p7
  Architecture: amd64

Build information:
  Compiler: Clang 14.0.5
  Build host: 132amd64-quarterly-job-11
  OpenSSL version: OpenSSL 1.1.1t-freebsd  7 Feb 2023

Application information:

General paths:
  Config directory: /usr/local/etc/icinga2
  Data directory: /var/lib/icinga2
  Log directory: /var/log/icinga2
  Cache directory: /var/cache/icinga2
  Spool directory: /var/spool/icinga2
  Run directory: /var/run/icinga2

Old paths (deprecated):
  Installation root: /usr/local
  Sysconf directory: /usr/local/etc
  Run directory (base): /var/run
  Local state directory: /var

Internal paths:
  Package data directory: /usr/local/share/icinga2
  State path: /var/lib/icinga2/icinga2.state
  Modified attributes path: /var/lib/icinga2/modified-attributes.conf
  Objects path: /var/cache/icinga2/icinga2.debug
  Vars path: /var/cache/icinga2/icinga2.vars
  PID path: /var/run/icinga2/icinga2.pid
  • PHP version used (php --version)
PHP 8.1.20 (cli) (built: Aug  5 2023 01:23:42) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.20, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.20, Copyright (c), by Zend Technologies

  • Server operating system and version [FreeBSD 13.2-RELEASEp2]

Screenshot if available.
image

check this folder

/usr/share/icingaweb2/modules/icingadb

is it empty?

the content of the folder should be something like this:
https://github.com/Icinga/icingadb-web

Hello moreamazingnick,

Thanks for your reply.

I’d check the FreeBSD equivalent folder(/usr/local/etc/icinga2/modules) and there is no icingadb folder on it:

Theres is /usr/local/www/icingaweb2/modules/icingadb2 folder with this content:

.git			.mailmap		README.md		go.mod			schema
.gitattributes		AUTHORS			cmd			go.sum			tests
.github			CHANGELOG.md		config.example.yml	internal		tools
.gitignore		LICENSE			doc			pkg

Which is not the content of the github project.

So did need to clone the github into the first folder of in the second one?
Or there some things else to do?

Once again, thanks for your time and advise.

:warning: some path differ from Linux and FreeBSD.

Jacques Foucry

looks very wrong.
/usr/…/icingaweb2/modules should contain the modules somethink like the link i previously mentioned but not the sources of icingadb

etc/…/icingaweb2/modules should contain the config files for the modules, which are usually generated during setup or changing the configuration of modules

Hello Moreamazinfbick,

I look at the FreeBSD package list and the build or icingadb failes.

So there is, for now, no solution for me.

Once again thanks for your help and your time.

Jacques Foucry