void zbx_sigusr_handler(int flags) { switch (ZBX_RTC_GET_MSG(flags)) { case ZBX_RTC_CONFIG_CACHE_RELOAD: zabbix_log(LOG_LEVEL_WARNING, "forced reloading of the configuration cache"); zbx_wakeup(); break; default: break; } }
void zbx_housekeeper_sigusr_handler(int flags) { if (ZBX_RTC_HOUSEKEEPER_EXECUTE == ZBX_RTC_GET_MSG(flags)) { if (0 < zbx_sleep_get_remainder()) { zabbix_log(LOG_LEVEL_WARNING, "forced execution of the housekeeper"); zbx_wakeup(); } else zabbix_log(LOG_LEVEL_WARNING, "housekeeping procedure is already in progress"); } }
void zbx_dbconfig_sigusr_handler(int flags) { if (ZBX_RTC_CONFIG_CACHE_RELOAD == ZBX_RTC_GET_MSG(flags)) { if (0 < zbx_sleep_get_remainder()) { zabbix_log(LOG_LEVEL_WARNING, "forced reloading of the configuration cache"); zbx_wakeup(); } else zabbix_log(LOG_LEVEL_WARNING, "configuration cache reloading is already in progress"); } }
void zbx_sigusr_handler(zbx_task_t task) { switch (task) { case ZBX_TASK_CONFIG_CACHE_RELOAD: if (ZBX_PROCESS_TYPE_CONFSYNCER == process_type) { zabbix_log(LOG_LEVEL_WARNING, "forced reloading of the configuration cache"); zbx_wakeup(); } break; default: break; } }