naemon / naemon-livestatus

Naemon - Livestatus Eventbroker Module
GNU General Public License v2.0
26 stars 30 forks source link

use schedule_event for calculating timeperiod transitions #19

Closed sni closed 7 years ago

sni commented 7 years ago

the callback NEBCALLBACK_TIMED_EVENT_DATA is never triggerd anymore (maybe it should be deprecated or removed), so use schedule_event instead and trigger a event every second to check if the timeperiod transitions have to be recalculated.

roengstrom commented 7 years ago

Sorry for pushing this, but if you think our suggested changes are okay, I can make the changes if you don't have the time. The reason we're pushing is because this issue is planned in our current sprint.

sni commented 7 years ago

Your proposed changes are ok, i just didn't had time to look into them. If you have time to do it, please do so. Just double check if the !sigshutdown && !sigrestart isn't required. Last time i checked it made naemon hang on shutdown/restart without.