don't log errors every x seconds by the sleep_time, it's too frequently.
supported the standard nagios plugin for checking