array("self::renderDiskPie") ); public function renderServicePerfdata($service) { if (isset(self::$RENDERMAP[$service->check_command])) { $fn = self::$RENDERMAP[$service->check_command]; $fn($service); } } public static function renderDiskPie($service) { $perfdata = $service->performance_data; if(!$perfdata) return ""; } }