added isNagiosUnit() and unit tests