implemented the logrotate for nagios logs