Mikesch-mp / icingaweb2-module-grafana

Grafana module for Icinga Web 2 (supports InfluxDB & Graphite)
https://icinga.com/community/
GNU General Public License v2.0
240 stars 93 forks source link

After Upgrade to 2.0.0b Grapher not found #306

Closed TheCry closed 1 year ago

TheCry commented 1 year ago

I'd installed IcingaDB and switched from ido to IcingaDB. Then I'd installed the new version of icingaweb2-module-grafana.

Current Behavior

Uncaught Error: Class 'Icinga\Module\Grafana\ProvidedHook\Grapher' not found in /usr/share/icingaweb2/modules/grafana/application/controllers/DashboardController.php:47
Stack trace:
#0 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Grafana\Controllers\DashboardController->indexAction()
#1 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('indexAction')
#2 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#3 /usr/share/php/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#4 /usr/share/php/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#5 /usr/share/icingaweb2/public/index.php(4): require_once('/usr/share/php/...')
#6 {main}
thrown

#0 [internal function]: Icinga\Application\Web->Icinga\Application\{closure}()
#1 {main}

Steps to Reproduce (for bugs)

Rename existing grafana folder. Install icingaweb2-module-grafana with git. Open service with graph and oopen graph in new window.

Context

After upgrading icingaweb2-module-grafana from 1.4.2 to 2.0.0b the error exists

Your Environment

Mikesch-mp commented 1 year ago

YOu have also installed icingadb web? Error you have is when you still have the old monitoring module installed and active

TheCry commented 1 year ago

Yes... Everything was installed. But i got it working now. I'd changed one parameter in the grafana config (web) and saved it. After this the WebUi and Grafana Modul works. No more errors.