Source
/*
** Copyright (C) 2001-2024 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** 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 Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/******************************************************************************
* *
* Purpose: Returns Zabbix process name *
* *
* Parameters: proc_type - [IN] process type; ZBX_PROCESS_TYPE_* *
* *
* Comments: used in internals checks zabbix["process",...], process titles *
* and log files *
* *
******************************************************************************/
const char *get_process_type_string(unsigned char proc_type)
{
switch (proc_type)
{
case ZBX_PROCESS_TYPE_POLLER:
return "poller";
case ZBX_PROCESS_TYPE_UNREACHABLE:
return "unreachable poller";
case ZBX_PROCESS_TYPE_IPMIPOLLER:
return "ipmi poller";
case ZBX_PROCESS_TYPE_PINGER:
return "icmp pinger";
case ZBX_PROCESS_TYPE_JAVAPOLLER:
return "java poller";
case ZBX_PROCESS_TYPE_HTTPPOLLER:
return "http poller";
case ZBX_PROCESS_TYPE_TRAPPER:
return "trapper";
case ZBX_PROCESS_TYPE_SNMPTRAPPER:
return "snmp trapper";
case ZBX_PROCESS_TYPE_PROXYPOLLER:
return "proxy poller";
case ZBX_PROCESS_TYPE_ESCALATOR:
return "escalator";
case ZBX_PROCESS_TYPE_HISTSYNCER:
return "history syncer";
case ZBX_PROCESS_TYPE_DISCOVERER:
return "discovery worker";
case ZBX_PROCESS_TYPE_DISCOVERYMANAGER:
return "discovery manager";
case ZBX_PROCESS_TYPE_ALERTER:
return "alerter";
case ZBX_PROCESS_TYPE_TIMER:
return "timer";
case ZBX_PROCESS_TYPE_HOUSEKEEPER:
return "housekeeper";
case ZBX_PROCESS_TYPE_DATASENDER: