Fix return code of monitoring scripts