Fixed error in nagios migration
Minor changes to adjust the code to the new_model