File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 22
33namespace Icinga \Module \Graphite \Controllers ;
44
5+ use Icinga \Data \Filter \Filter ;
56use Icinga \Module \Graphite \Forms \TimeRangePicker \TimeRangePickerTrait as TimeRangePicker ;
67use Icinga \Module \Graphite \Forms \TimeRangePicker \TimeRangePickerTrait as TimeRangePickerFormTrait ;
78use Icinga \Module \Graphite \Web \Controller \MonitoringAwareController ;
@@ -40,6 +41,8 @@ public function hostsAction()
4041 $ this ->backend ->select ()->from ('hoststatus ' , ['host_name ' ])
4142 );
4243
44+ $ hostsQuery ->applyFilter (Filter::expression ('host_perfdata ' , '!= ' , '' ));
45+
4346 $ this ->view ->baseUrl = $ baseUrl = Url::fromPath ('monitoring/host/show ' );
4447 TimeRangePickerFormTrait::copyAllRangeParameters (
4548 $ baseUrl ->getParams (),
@@ -76,6 +79,8 @@ public function servicesAction()
7679 $ this ->backend ->select ()->from ('servicestatus ' , ['host_name ' , 'service_description ' ])
7780 );
7881
82+ $ servicesQuery ->applyFilter (Filter::expression ('service_perfdata ' , '!= ' , '' ));
83+
7984 $ this ->view ->hostBaseUrl = $ hostBaseUrl = Url::fromPath ('monitoring/host/show ' );
8085 TimeRangePickerFormTrait::copyAllRangeParameters (
8186 $ hostBaseUrl ->getParams (),
You can’t perform that action at this time.
0 commit comments