Thanks to Thomas F. Sturm (https://tex.stackexchange.com/a/124688/15907), I have a little environment for creating nice-looking source code in LaTeX.
I started my environment with this here:
\begin{listingsbox}[label={lst:agent:logstash:configuration}]{mycode}{Konfiguration von LogStash auf Agent}
(The part in the square brackets are the same commands as for tcolorbox.)
And I have my own little ref command:
\newcommand{\myref}[1]{see \cref{#1} \nameref{#1} \vpageref{#1}}
So I get something like: "see figure 3.1: How to chuck wood on page 31", which is really nice.
If I do this with the label of the tcolorbox:
\myref{lst:agent:logstash:configuration}
I get: "see ?? 3.1: Konfiguration von LogStash on page 31".
As you can see, cleveref is not able to provide a correct name here.
I know I can change this when defining it with \crefname{<type>}{<singular>}{<plural>} but I can not figure out which type I have to provide.
Does anyone have a clue?

\namerefin my\myrefmarco. But it outputs the section title instead the title of the listing. Do you have any idea here? – Manuel Rauber Jul 23 '13 at 12:16