Icinga / icingadb-web

Icinga DB Web – UI for Icinga DB – Provides a graphical interface to your Icinga monitoring
GNU General Public License v2.0
67 stars 21 forks source link

Reporting throws ambiguous function get_sla_ok_percent when creating report #1018

Open jgaret opened 11 months ago

jgaret commented 11 months ago

Describe the bug

Fresh install of reporting module (v1.0.1) with icingadb v1.1.1 (with postgres database if it matters), everytime I access a report, I get the following error and so, report is not showing :

SQLSTATE[42725]: Ambiguous function: 7 ERROR: function get_sla_ok_percent(bytea20, unknown, unknown, unknown) is not unique LINE 1: SELECT (get_sla_ok_percent(host.id, NULL, '1640991600000', '... ^ HINT: Could not choose a best candidate function. You might need to add explicit type casts. (Connection.php:402)

To Reproduce

Steps to reproduce the behavior:

  1. Install and configure icingadb with postgresql
  2. Install reporting module
  3. Create a report

Expected behavior

Report should show up and not throw an error

Your Environment

yhabteab commented 10 months ago

Hi, thanks for reporting!