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 block #57

Closed ev0ldave closed 8 years ago

ev0ldave commented 9 years ago

Fixes blocking function of read_log consuming too slowly in larger nagios installations by putting the function into its own thread. sleep(1) kept to avoid busy loop.

zorkian commented 9 years ago

What happens if read_loop throws an exception or something?

I suspect just the thread will die, and you'll be in a state where nobody will know that the log reader has stopped which seems bad.

zorkian commented 8 years ago

Closing for lack of update. Please re-submit if you want to update with the requested changes. Thank you! :)