Fix problems with PNP4Nagios

fixes #7268