Insert the following code fragment into your PNP4Nagios template in order to get some debugging output in the PNP4Nagios WebUI:
throw new Kohana_exception(print_r(<name of the variable>,TRUE));
Replace <name of the variable>
with the name of the variable or data structure which content you want to be printed.