Idoreports installation error: HostSlaReport does not exist

I have attempted to install idoreports but there is an error in icingaweb2: Erraneous hook implementation, class “Icinga\Module\Idoreports\HostSlaReport” does not exist. I have noted that error is reported when the run.php file is present in the idereports folder. If its removed and the module disabled then enabled there is no error. Please assist.

root@reports:/usr/share/icingaweb2/modules/idoreports# ls
doc                library      README.md  ServiceSlaReport.php
HostSlaReport.php  LICENSE      run.php    tmp
IdoReport.php      module.info  schema
root@reports:/usr/share/icingaweb2/modules/idoreports#

Issue has been solved. First Imade sure the reporting module pointed to the right data source, reporting. Then tried copying the report files. Not sure exactly but I copied the reports php files into the reporting module folder.Then also copied them reports into the idoreports module folder. They were in the library/Idoreports subfolder.

root@reports:/usr/share/icingaweb2/modules/idoreports# ls -la
total 72
drwxr-xr-x  6 root root  4096 Jun 16 08:44 .
drwxr-xr-x 15 root root  4096 Jun 12 08:47 ..
drwxr-xr-x  3 root root  4096 Jun 12 08:23 doc
-rw-r--r--  1 root root  2815 Jun 12 08:53 HostSlaReport.php
-rw-r--r--  1 root root  7386 Jun 11 08:13 IdoReport.php
drwxr-xr-x  3 root root  4096 Jun 16 08:44 library
-rw-r--r--  1 root root 18091 Jun 16 08:44 LICENSE
-rw-r--r--  1 root root    83 Jun 16 08:44 module.info
-rw-r--r--  1 root root   285 Jun 16 08:44 README.md
-rw-r--r--  1 root root   379 Jun 16 08:44 run.php
drwxr-xr-x  4 root root  4096 Jun 12 08:15 schema
-rw-r--r--  1 root root  2915 Jun 11 08:13 ServiceSlaReport.php
drwxr-xr-x  2 root root  4096 Jun 12 08:48 tmp

Below is the reporting folder I copied the modules into:

root@reports:/usr/share/icingaweb2/modules/reporting/library/Reporting/Reports# ls -la
total 28
drwxr-xr-x 2 root root 4096 Jun 12 16:06 .
drwxr-xr-x 8 root root 4096 Jun  5 14:47 ..
-rw-r--r-- 1 root root 2815 Jun 12 15:48 HostSlaReport.php
-rw-r--r-- 1 root root 7386 Jun 12 15:55 IdoReport.php
-rw-r--r-- 1 root root 2915 Jun 12 15:55 ServiceSlaReport.php
-rw-r--r-- 1 root root 1023 Jun  5 14:47 SystemReport.php

Now the reports are available:

Hi Team,

Could you please provide me the proper link to install the idoreports module. I’m facing issue while installing this module.

Regards,
Pranav R N

Hey @pranavrn - I just want to clarify that this here is a community forum where users help other users - so there really isn’t a “team” here - just a bunch of people that want to help each other :slight_smile:

To your question, if you want to install a module there are a few ways to find a reliable documentation - the first one you should check (if it is a module released by Icinga) is the learn page on the Icinga.com website or the GitHub page of the module.
A lot of community modules can be found on the Icinga Exchange which link you to the documentation.
Generally speaking there should always be a documentation or a link to one where you got the module from.