Module: check_mk
Branch: master
Commit: 44335eed88429047f7b352e75ad93e1a9c8d1218
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=44335eed884290…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 29 17:13:24 2013 +0100
Fix PHP-Compatibility with Squeeze
---
pnp-templates/check_mk-livestatus_status.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/pnp-templates/check_mk-livestatus_status.php
b/pnp-templates/check_mk-livestatus_status.php
index 380b1a1..d92a22b 100644
--- a/pnp-templates/check_mk-livestatus_status.php
+++ b/pnp-templates/check_mk-livestatus_status.php
@@ -24,7 +24,9 @@
# Boston, MA 02110-1301 USA.
# Check Performance
-$site = explode("_", $servicedesc)[1];
+$site_parts = explode("_", $servicedesc);
+$site = $site_parts[1];
+
$opt[1] = "--vertical-label 'Checks per second' -X0 -l0 --title \"OMD
site $site / Check performance\" ";
$ds_name[1] = "Check performance";