puppetlabs/puppet — pull request #529 by joehillen (2012-02-27 21:17:38+00:00)
Title: Show matched processes for services in debug.

I was having a terrible time debugging why nrpe would not restart correctly on Ubuntu 10.04.

It turns out that puppet was sometimes matching the wrong process number, but I had to add a debug line to find this out.

Here is an example of someone else having this issue, though I did not find this to be a permanent fix:

http://redscreen.wordpress.com/2011/07/22/restarting-nagios-from-puppet-on-debian/

I see this debug message being useful for other situations, such as testing to make sure a process' regex matches correctly.