Fixed error in the new nagios check.