summaryrefslogtreecommitdiffstats
path: root/application/controllers/MonitoringGraphController.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:21:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:21:36 +0000
commit9a9ff27e57ad3eb60909f0a4d0bd74755df52662 (patch)
tree38d91ef37d115b2baffd54f40c74aef7a724d7b6 /application/controllers/MonitoringGraphController.php
parentReleasing progress-linux version 1.2.2-3~progress7.99u1. (diff)
downloadicingaweb2-module-graphite-9a9ff27e57ad3eb60909f0a4d0bd74755df52662.tar.xz
icingaweb2-module-graphite-9a9ff27e57ad3eb60909f0a4d0bd74755df52662.zip
Merging upstream version 1.2.4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'application/controllers/MonitoringGraphController.php')
-rw-r--r--application/controllers/MonitoringGraphController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/application/controllers/MonitoringGraphController.php b/application/controllers/MonitoringGraphController.php
index 583c859..7b9f3f3 100644
--- a/application/controllers/MonitoringGraphController.php
+++ b/application/controllers/MonitoringGraphController.php
@@ -67,7 +67,7 @@ class MonitoringGraphController extends MonitoringAwareController
->fetchRow();
if ($host === false) {
- throw new HttpNotFoundException('%s', $this->translate('No such host'));
+ throw new HttpNotFoundException($this->translate('No such host'));
}
$this->supplyImage(new Host($this->backend, $hostName), $host->host_check_command, $host->$checkCommandColumn);
@@ -87,7 +87,7 @@ class MonitoringGraphController extends MonitoringAwareController
->fetchRow();
if ($service === false) {
- throw new HttpNotFoundException('%s', $this->translate('No such service'));
+ throw new HttpNotFoundException($this->translate('No such service'));
}
$this->supplyImage(
@@ -135,8 +135,8 @@ class MonitoringGraphController extends MonitoringAwareController
$charts[0]
->setFrom($this->graphParams['start'])
->setUntil($this->graphParams['end'])
- ->setWidth($this->graphParams['width'])
- ->setHeight($this->graphParams['height'])
+ ->setWidth((int) $this->graphParams['width'])
+ ->setHeight((int) $this->graphParams['height'])
->setBackgroundColor($this->graphParams['bgcolor'])
->setForegroundColor($this->graphParams['fgcolor'])
->setMajorGridLineColor($this->graphParams['majorGridLineColor'])
@@ -146,7 +146,7 @@ class MonitoringGraphController extends MonitoringAwareController
// not falling through, serveImage exits
default:
- throw new HttpBadRequestException('%s', $this->translate(
+ throw new HttpBadRequestException($this->translate(
'Graphite Web yields more than one metric for the given filter.'
. ' Please specify a more precise filter.'
));