# Icingadb version is not correct

**URL:** <https://community.icinga.com/t/icingadb-version-is-not-correct/12561>\
**Category:** Icinga Web\
**Created:** [September 7, 2023, 7:50pm UTC](https://community.icinga.com/t/icingadb-version-is-not-correct/12561 "2023-09-07T19:50:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfoucry1](https://community.icinga.com/user_avatar/community.icinga.com/jfoucry1/32/7064_2.png) [@jfoucry1](https://community.icinga.com/u/jfoucry1)\
**Post date:** [September 7, 2023, 7:50pm UTC](https://community.icinga.com/t/icingadb-version-is-not-correct/12561/1 "2023-09-07T19:50:45Z")

</div>

Hello folks,

According to this [post](https://community.icinga.com/t/icingadb-supported-on-freebsd-ports-packages/10351/4), 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:

```auto
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)

```auto
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`)

```auto
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`)

```auto
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](https://community.icinga.com/uploads/default/original/2X/f/f6fec5076d594f06ed1013312b19b34c8e8846ad.png)

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [September 8, 2023, 7:27am UTC](https://community.icinga.com/t/icingadb-version-is-not-correct/12561/2 "2023-09-08T07:27:52Z")

</div>

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](https://github.com/Icinga/icingadb-web)

---

<div class="post-metadata">

**Author:** ![jfoucry1](https://community.icinga.com/user_avatar/community.icinga.com/jfoucry1/32/7064_2.png) [@jfoucry1](https://community.icinga.com/u/jfoucry1)\
**Post date:** [September 8, 2023, 8:04am UTC](https://community.icinga.com/t/icingadb-version-is-not-correct/12561/3 "2023-09-08T08:04:23Z")

</div>

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:

```auto
.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.

⚠ some path differ from Linux and FreeBSD.

Jacques Foucry

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [September 8, 2023, 12:29pm UTC](https://community.icinga.com/t/icingadb-version-is-not-correct/12561/4 "2023-09-08T12:29:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jfoucry1](https://community.icinga.com/user_avatar/community.icinga.com/jfoucry1/32/7064_2.png) [@jfoucry1](https://community.icinga.com/u/jfoucry1)\
**Post date:** [September 9, 2023, 8:28am UTC](https://community.icinga.com/t/icingadb-version-is-not-correct/12561/5 "2023-09-09T08:28:24Z")

</div>

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
