Code

switched to nagios3 and other changes