added the nagios and error capture