Source
scope = (1 << ZBX_DIAGINFO_HISTORYCACHE) | (1 << ZBX_DIAGINFO_PREPROCESSING) | (1 << ZBX_DIAGINFO_LOCKS);
/*
** Zabbix
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
ZBX_PTR_VECTOR_IMPL(rtc_sub, zbx_rtc_sub_t *)
ZBX_PTR_VECTOR_IMPL(rtc_hook, zbx_rtc_hook_t *)
/******************************************************************************
* *
* Purpose: change log level of service process *
* *
******************************************************************************/
static void rtc_change_service_loglevel(int code)
{
if (ZBX_RTC_LOG_LEVEL_INCREASE == code)
{
if (SUCCEED != zabbix_increase_log_level())
{
zabbix_log(LOG_LEVEL_INFORMATION, "cannot increase log level:"
" maximum level has been already set");
}
else
{
zabbix_log(LOG_LEVEL_INFORMATION, "log level has been increased to %s",
zabbix_get_log_level_string());
}
}
else if (ZBX_RTC_LOG_LEVEL_DECREASE == code)
{
if (SUCCEED != zabbix_decrease_log_level())
{
zabbix_log(LOG_LEVEL_INFORMATION, "cannot decrease log level:"
" minimum level has been already set");
}
else
{
zabbix_log(LOG_LEVEL_INFORMATION, "log level has been decreased to %s",