refactored nagios config to be independent.