[COOK-2721] Use n['foo'] instead of n.foo to support chef-solo.

This pull request make the nagios cookbook to be supported in chef-solo.
Please refer the ticket
http://tickets.opscode.com/browse/COOK-2721