Refactored nrpe into client