correcting code for worker and nrpe