Commit graph

10 commits

Author SHA1 Message Date
Alvar Penning
3e0bd96ec6 IcingaHealth: Fix version comparison
There are multiple possible outputs for an Icinga DB version. The
package version contain the git tag, with a leading "v". The development
version mimics git-describe(1), including a commit hash separated by a
dash after the semantic version.

The current version comparison uses PHP's builtin version_compare().

This results in leading "v"s to return invalid results. Furthermore, it
treats everything behind the version as an "any string"[^0], which is
smaller than dev, alpha, beta, and so on. Thus, any git-describe(1)
version of Icinga DB 1.4.0 would be considered smaller as 1.4.0.

Fixes #1230.

[^0]: https://www.php.net/manual/en/function.version-compare.php
2025-06-20 10:13:00 +02:00
Johannes Meyer
3a583811a3 IcingaHealth: Switch to critical in case Icinga DB is too old
The old redis schema is incompatible with v1.2.0 hence the
health check should report a critical incident instead.

Also updates the health view to show a proper message.
2025-06-18 11:12:19 +02:00
Johannes Meyer
2a3531033e health: Show icingadb version 2025-06-11 12:13:51 +02:00
Sukhwinder Dhillon
cb5373b49e
Models: Use MillisecondTimestamp instead of Timestamp behavior (#753)
The `Timestamp` behavior returns float values, which the database (pgsql) cannot convert properly.
We already have a `MillisecondTimestamp` behavior, so we should use that.
2023-05-30 16:05:11 +02:00
Johannes Meyer
e66dab1b8d Move VerticalKeyValue to ipl\Web\Widget 2021-08-20 17:17:45 +02:00
Johannes Meyer
3497fa5146 Move TimeSince to ipl\Web\Widget 2021-08-20 17:01:00 +02:00
Johannes Meyer
3c4c1e7fc4 Move TimeAgo to ipl\Web\Widget 2021-08-20 16:59:02 +02:00
Johannes Meyer
dba06b2eab Add missing/refactor existing localization markings 2020-04-24 15:01:29 +02:00
Johannes Meyer
5e441c93a0 Add license note to every file 2020-03-13 10:36:24 +01:00
Eric Lippmann
3b5c9af635 Introduce widget Health 2020-01-08 09:34:20 +01:00