opscode/cookbooks — comment on commit c41ffb38c90337b978926af671ca85b2d0f6c149
File: nagios/recipes/pagerduty.rb line 13
By clumpidy:

Ah. Thanks for the clarification.

I don't think this should be a problem unless you set node['nagios']['plugin_dir'] to be the same as node['nagios']['config_dir']. By default node['nagios']['plugin_dir'] is set to /usr/lib/nagios/plugins in nagios/attributes/default.rb and node['nagios']['config_dir'] is set to /etc/nagios in nagios/attributes/client.rb.

So that move command should expand to:

mv /etc/nagios/*_nagios*.cfg /etc/nagios/dist

and that shouldn't touch /usr/lib/nagios/plugins/pagerduty_nagios.pl