zorkian / nagios-api

A REST-like, JSON interface to Nagios
BSD 3-Clause "New" or "Revised" License
586 stars 173 forks source link

read_log function reads take too long blocking api requests. #49

Closed ev0ldave closed 9 years ago

ev0ldave commented 9 years ago

The read_log function can take up to 5 minutes to complete on large nagios deployments before diesel allows the next loops to take place. This PR adds a thread outside of diesel for the read_log function. Perhaps something similar should be added for read_status as the web framework shouldn't need to control these two definitions