diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php index 122e13dc0..1480e2834 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/IdoQuery.php @@ -832,7 +832,7 @@ abstract class IdoQuery extends DbQuery list($type, $name) = $this->customvarNameToTypeName($customvar); $alias = ($type === 'host' ? 'hcv_' : 'scv_') . $name; - $this->customVars[$customvar] = $alias; + $this->customVars[strtolower($customvar)] = $alias; if ($this->hasJoinedVirtualTable('services')) { $leftcol = 's.' . $type . '_object_id'; diff --git a/modules/monitoring/library/Monitoring/Controller.php b/modules/monitoring/library/Monitoring/Controller.php index 1dc1d28eb..e1c16c854 100644 --- a/modules/monitoring/library/Monitoring/Controller.php +++ b/modules/monitoring/library/Monitoring/Controller.php @@ -82,7 +82,7 @@ class Controller extends IcingaWebController 'service_description', 'servicegroup_name', function ($c) { - return preg_match('/^_(?:host|service)_/', $c); + return preg_match('/^_(?:host|service)_/i', $c); } )); foreach ($this->getRestrictions($name) as $filter) { diff --git a/modules/monitoring/library/Monitoring/DataView/DataView.php b/modules/monitoring/library/Monitoring/DataView/DataView.php index 97879d53d..50cd436fd 100644 --- a/modules/monitoring/library/Monitoring/DataView/DataView.php +++ b/modules/monitoring/library/Monitoring/DataView/DataView.php @@ -186,7 +186,7 @@ abstract class DataView implements QueryInterface, SortRules, FilterColumns, Ite public function isValidFilterTarget($column) { // Customvar - if ($column[0] === '_' && preg_match('/^_(?:host|service)_/', $column)) { + if ($column[0] === '_' && preg_match('/^_(?:host|service)_/i', $column)) { return true; } return in_array($column, $this->getColumns()) || in_array($column, $this->getStaticFilterColumns());