added support for pnp4nagios. These are upstream changes that will need to be brought back when time permits