Cleaned up code in razor tasks to use new function in asm/utils
ASM-2734: Setup nrpe