Icinga / icingaweb2-module-cube

Drill-down view for Icinga web 2 based on custom variables
GNU General Public License v2.0
45 stars 12 forks source link

IcingaDB cube: Add sort control #106

Closed sukhwinder33445 closed 1 year ago

sukhwinder33445 commented 1 year ago

resolves #101

nilmerg commented 1 year ago

hosts?dimensions=host.vars.location%2Chost.vars.app%2Chost.vars.department&showSettings=1&sort=severity%20desc works.

hosts?dimensions=host.vars.location%2Chost.vars.app%2Chost.vars.os&showSettings=1&sort=severity%20desc does not:

Undefined array key 0

#0 /usr/share/icingaweb2-modules/cube/library/Cube/CubeRenderer.php(238): Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(Integer, String, String, Integer)
#1 /usr/share/icingaweb2-modules/cube/library/Cube/CubeRenderer.php(210): Icinga\Module\Cube\CubeRenderer->sortBySeverity(Array)
#2 /usr/share/icingaweb2-modules/cube/library/Cube/Cube.php(339): Icinga\Module\Cube\CubeRenderer->render(Object(Icinga\Web\View))
#3 /usr/share/icingaweb2-modules/cube/application/views/scripts/cube-index.phtml(20): Icinga\Module\Cube\Cube->render(Object(Icinga\Web\View))
#4 /icingaweb2/library/Icinga/Web/View.php(235): include(String)
#5 /icingaweb2/library/vendor/Zend/View/Abstract.php(877): Icinga\Web\View->_run(String)
#6 /usr/share/icingaweb2-modules/cube/library/Cube/Web/Controller.php(178): Zend_View_Abstract->render(NULL)
#7 /usr/share/icingaweb2-modules/cube/application/controllers/HostsController.php(19): Icinga\Module\Cube\Web\Controller->renderCube()
#8 /icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Cube\Controllers\HostsController->indexAction()
#9 /icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch(String)
#10 /icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#11 /icingaweb2/library/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response))
#12 /icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#13 /icingaweb2/public/index.php(4): require_once(String)
#14 {main}